Changing PHP Settings

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.

  • 3 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

How to log into cPanel

There are two different methods to log into your cPanel control panel in order to manage every...

What's the difference between Aliases, Addon and Subdomains?

### Aliases An Alias domain does not have a unique website. It is a domain that is masked to...

Creating a MySql Database

If your website uses PHP or you need to hold a collection of records which need to be accessed...

Importing a MySql Database

You can import a MySQL database via phpMyAdmin which is available in the cPanel control panel....

Exporting a MySql Database

You can export a MySQL database via phpMyAdmin, available in cPanel, if you want to keep a backup...