How to modify PHP settings using your .htaccess file

To make it easier to get in touch with us, from the 24th of March 2016 all support tickets will need to be submitted from your Crucial Control Panel.

Before using this method, be aware that you can also edit most common PHP variables easily in cPanel using the Select PHP Version option. Click here for a guide on how to use that tool.


To access your .htaccess file click here for a guide.


With our cPanel servers running FastCGI, we have installed htscanner. This allows you, and most of the common CMS's out there these days, to set custom values for most PHP environment settings using the websites .htaccess file. The .htaccess file can usually be found in the public_html directory, but this can change depending on site requirements.


Example tags:

<IfModule mod_php5.c>
php_value upload_max_filesize 10M
php_value post_max_size 20M


For a list of PHP values that can be altered click here.

You can view a live readout of your PHP settings by creating a phpinfo file. Click here for a guide on doing that.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk