Contact

Knowledge Portal

How do I use my custom php.ini, How to change PHP settings

Take full control over all of your PHP settings via php.ini. You can copy the php.ini or create a new one in your public_html directory and edit as needed.

If you are not sure of this please do not do anything or else your site can receive errors.

 

Alternatively you can also use .htaccess.

 

For each PHP configuration setting you would like to adjust, simply add a line similar to the following to your .htaccess file in your public_html directory (or desired directory):

php_value php_setting on

For example, if you wanted to disable register_globals in your entire account, you would add the following to the .htaccess file in your public_html directory:

php_value register_globals off

If you need your upload file size limit adjusted, you can add the following to your .htaccess file:

php_value upload_max_filesize 100M 

If you prefer to change settings for only a specified portion of your site, simply update the .htaccess file in the sub-directory. The .htaccess PHP setting adjustments will take precedence for all subfolders under the folder with the .htaccess file.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

You may also want to read

img