How Do I Change PHP Setting X?

In order to change a php.ini setting you would simply create a php.ini file in your home directory and input the needed variables inside, like below:

In order to change the memory_limit to 128M:
memory_limit = 128M

If you wanted to change upload_max_filesize to 20M you would put:
upload_max_filesize = 20M

Once you have the options you want in the file, you will need to manually edit the .htaccess file in public_html and add the below line to it:

SetENV PHPRC /home/username
Please remember to change "username" to your actual cPanel username!

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

500 Error

If your site occurs a 500 Internal Server Error the most common are php settings in your...

How do I increase the PHP Memory Limit?

Create  a blank text file called php.ini (if one doesn't already exist).Put the...

How do I increase the PHP Upload Limit?

To raise the PHP Upload Limit for your website simply do the following:Create a blank text file...

How do I use PHP5?

PHP5 is now the default on all our servers nothing extra needs to be done to use it.If you come...

Wildcard Subdomain hosting

To do this all you need to do is:1) Login to Cpanel for the domain you need this on then go to...

Powered by WHMCompleteSolution