Because of server configurations, Cloud Sites doesn’t allow modification of the php.ini file in order to configure php settings. Instead, php variable settings are available in the .htaccess file of your site. If you're unfamiliar with an .htaccess file, you can learn more in our article What Is an .htaccess File?.
The initial settings for Cloud Sites .htaccess PHP limits are:
php_value memory_limit 128M
php_value upload_max_filesize 8M
php_value post_max_size 8M
php_value max_execution_time 30
php_value max_input_time 60
You will notice, the PHP settings syntax is slightly different in Cloud Sites than other WordPress PHP settings on a traditional server configuration. You must use php_value at the beginning of each line in order to change the PHP settings in Cloud Sites.
All values, except for the two time related ones, are set in Megabytes. The time values are in seconds and do not have anything following the number of seconds. Make sure to use the same syntax when making your changes.
To increase your PHP settings to their MAX levels, make the following changes to your .htaccess file:
php_value memory_limit 512M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 259200
Note: Setting MAX Limits - While you can adjust the PHP limits to any number up to the values indicated above, setting them any higher will not actually increase the limits. Cloud Sites caps your PHP limits to protect your site and our service from changes that may slow down performance.
Comments
0 comments
Article is closed for comments.