There was a problem loading the comments.

Changing PHP Settings

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
You can create a custom php.ini on your account by creating a file inside your public_html folder called php.ini. In this file you can place PHP configurations in php.ini format, such as:
  • register_globals = on;
  • display_errors = off;
Once this is done, this php.ini will work for all files inside your public_html folder. You can place different php.ini files in different folders. However, if you want your php.ini to work for your whole account, you need to open or create a file inside your public_html called .htaccess, and place this line in it:
  • suPHP_ConfigPath /home/username/public_html/php.ini
This will then apply the php.ini to all of your sub folders. Please note You will need to replace ‘username' with your own account username. You can create a combination of php.ini and .htaccess files in an unlimited amount of sub folders, so it's very flexible.

Share via
Did you find this article useful?  

Related Articles

© Eco Hosting