; PHP Configuration for WordPress ; Place this file in your site's root directory or public_html folder ; Note: Some hosts may require different filenames like php.ini, .user.ini, or php5.ini ; =========================== ; MEMORY & EXECUTION LIMITS ; =========================== ; Maximum amount of memory a script may consume memory_limit = 256M ; Maximum execution time of each script, in seconds max_execution_time = 300 ; Maximum amount of time each script may spend parsing request data max_input_time = 300 ; Maximum input variable nesting level max_input_nesting_level = 64 ; Maximum number of input variables max_input_vars = 3000 ; =========================== ; FILE UPLOAD SETTINGS ; =========================== ; Whether to allow HTTP file uploads file_uploads = On ; Maximum allowed size for uploaded files upload_max_filesize = 64M ; Maximum size of POST data that PHP will accept post_max_size = 64M ; Maximum number of files that can be uploaded via a single request max_file_uploads = 20 ; =========================== ; ERROR HANDLING & LOGGING ; =========================== ; Error reporting level ; For production: E_ALL & ~E_DEPRECATED & ~E_STRICT ; For development: E_ALL error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT ; Display errors to the browser (turn OFF for production) display_errors = Off ; Display startup errors display_startup_errors = Off ; Log errors to a file log_errors = On ; Path to error log file (make sure this directory is writable) error_log = /home/zedlvkaibr/aumitao.com/php_errors.log ; =========================== ; SESSION SETTINGS ; =========================== ; Handler used to store/retrieve data session.save_handler = files ; Argument passed to save_handler session.save_path = "/tmp" ; Name of the session (used in cookies) session.name = PHPSESSID ; Lifetime of cookie in seconds session.cookie_lifetime = 0 ; Initialize session on request startup session.auto_start = 0 ; Lifetime of session data in seconds session.gc_maxlifetime = 1440 ; =========================== ; SECURITY SETTINGS ; ========================== ; Allow or disallow PHP scripts to open remote files allow_url_fopen = On allow_url_include = Off ; =========================== ; DATE & TIMEZONE ; =========================== ; Default timezone date.timezone = "Australia/Melbourne" ; =========================== ; PERFORMANCE SETTINGS ; =========================== ; Enable output buffering output_buffering = 4096 ; Enable realpath cache realpath_cache_size = 4096K realpath_cache_ttl = 600 ; =========================== ; OPCACHE (if available) ; =========================== ; Enable OPcache opcache.enable = 1 ; Memory consumption opcache.memory_consumption = 128 ; Maximum number of cached scripts opcache.max_accelerated_files = 10000 ; Validate timestamps opcache.validate_timestamps = 1 ; How often to check timestamps (in seconds) opcache.revalidate_freq = 2 ; =========================== ; WORDPRESS SPECIFIC ; =========================== ; Increase for large imports/exports max_allowed_packet = 64M ; Useful for WooCommerce and large product catalogs pcre.backtrack_limit = 5000000 pcre.recursion_limit = 100000