Configuring Server Settings
Configuring server settings requires some technical knowledge. A site owner needs to be familiar with php.ini, .user.ini files and using FTP softwares.
Note: If you’re not a technical user, Please contact your host provider to configure the settings for you.

Configuring the settings in php.ini and .user.ini files

PHP configuration file (php.ini) is a special file which holds the settings when PHP runs. In almost of the servers, we can override the default configuration by creating a php.ini in the root directory (public_html).
  1. 1.
    Create an empty file called php.ini in the root directory of your website where WordPress is installed. Note: You can access to website directory thought Cpanel or using FTP softwares. In most of the servers, it’s in the public_html folder.
  2. 2.
    Add following codes in the file:
    memory_limit=128M
    post_max_size=16M
    upload_max_filesize=16M
    max_input_vars=10000
    max_execution_time = 60
  3. 3.
    Check your server settings as explained in the previous article to make sure changes are applied. If you see no change, try to rename php.ini file to .user.ini. It’s possible your server does not allow overriding server settings.
Note: To increase the memory limit, you can also add the code below to your WordPress wp-config.php :
define(‘WP_MEMORY_LIMIT’, ‘128M’);

Configuring the settings in .htaccess file

If the above method cannot work, you can try to config via .htaccess file.
.htaccess is a configuration file for the web servers running Apache Web Server software. You can also use this file to configure some of the server settings.
To add the settings in the file:
  1. 1.
    Open .htaccess file in an editor. You can find the file in the root directory of WordPress installation. Note: You can access to website directory thought Cpanel or using FTP softwares. In most of the servers, it’s in the public_html folder.
  2. 2.
    add the code below at the end of the file:
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 16M
    php_value max_input_vars 10000
    php_value max_execution_time = 60
  3. 3.
    Check your server settings as explained in the previous article to make sure changes are applied.

Troubleshooting

If the settings do not apply Please follow the below steps:
  • Contact Host Provider: If you can not find the php.ini or .htaccess file or the changes don’t work as expected, It’s best to contact the host provider. They will happy to help you with these issues.
  • Contact Support: please contact us via Themeforest Support.
Copy link
On this page
Configuring the settings in php.ini and .user.ini files
Configuring the settings in .htaccess file
Troubleshooting