Welcome Guest | Login

Is cPanel Restricting use of Custom php.ini files?

I tried using my own php.ini file following what Will gave a link to in a previous post of mine http://www.kics.bc.ca/faq/phpini.html

I went ahead and tried following it and I created a folder to hold my php.ini file and then placed an .htaccess file in the folder that was to reference that php.ini file by doing:

$ echo >.htaccess 'SetEnv PHPRC /home/<MY DOMAIN>/<MY_PHP_CUSTOM_FOLDER>'

<MY_PHP_CUSTOM_FOLDER> is the folder that holds my custom php.ini file.

I set my session.save_path =/tmp

The problem is that the .htaccess file in the folder that needs to  reference the custom php.ini file is not picking up that path.

after a lot of forum searching I have heard that the combination of cPanel + PHP5 restric the use of custom php.ini files.

Is that still true? and why am I not able to get this working?

2007-03-02 01:12 PM

Hello Tony,

I am not able to find a workaround for your issue. Instead we have set the session.save_path =/tmp globally on our servers. I hope the server wide change will solve your issue.

2007-03-03 06:53 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.