PHP Runtime Configuration for Cloud Litespeed

Categories Web HostingScriptingPHP Tags php

On our Litespeed Cloud hosting servers all PHP runtime configuration changes can be made via the .htaccess file. If one does not exist you can easily create one with a simple text editor.

If you are required to change your PHP configurations, including the PHP memory limit, Max Upload File Size or the Max Input Variable Limit, you will need to edit your PHP runtime configurations.

The most common changes requested are outlined below, along with the line of code to address you need to use to address the issue:

Increase the PHP Memory Limit:

php_value memory_limit 64M

Increase the Max File Upload Size:
upload_max_filesize = 40M

Maximum Form Post Size:

post_max_size = 40M

Note: This amount must be equal to or greater than the Max File Upload Size

Max Input Varible Size

php_value max_input_vars 6000

Turn off Magic Quotes

php_flag magic_quotes_gpc off

Show PHP Errors:
php_flag display_errors on

You can check what the current PHP runtime settings are as well. For instructions on how to do this, click here.

Rate this article
Get more leads