Client Login

Email Address

Password

Remember Me

More services

More information

Legal documents

Knowledgebase

You are here: Home > Knowledgebase > How do I override php.ini settings?

How do I override php.ini settings?

Many people need the ability to change php.ini settings from the defaults set on the server. The best way to accomplish this is by following these steps:

1. Create a file named .htaccess in your home directory (/home/user, where user is your control panel username.)

2. In the .htaccess file, place this single line:

SetEnv PHPRC /home/user

(Again, change user to your control panel username.)

3. Create a php.ini file with settings as you like them, and place it in your home directory.

That's it! Now you can control PHP settings for your PHP scripts.



Was this answer helpful?

Add to Favourites
Print this Article