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).
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.
Add following codes in the file:
max_execution_time = 60
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 :
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:
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.
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
Check your server settings as explained in the previous article to make sure changes are applied.
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.