![]() |
Version 4.0.2: Using php.ini under suEXEC?
Hello,
After the release of version 4.0.2, I would like to know whether users can now use their local php.ini instead of .htaccess under suEXEC environment? Thank you. |
Yes, add Environment
PHPRC=$VH_ROOT/php to lsphp5 or lsphp4 external app at server level, will let user use php.ini in php directory under home directory. It apply to all accounts. |
Quote:
|
Please use 4.0.2 or latest 4.0.3 build.
There should be a PHPRC environment variable set in the phpinfo() output, make sure it points the directory contains the php.ini. |
Yes. The PHPRC environment variable points the directory contains the php.ini but still no luck. I have tried all that you have posted in this thread but it is not working still.
|
Could it be a permission problem with the php.ini or the directory?
The suEXEC PHP must have read permission to the file. If your lsphp5 external app configuration uses "-c <path_to_ini>" as a command line parameter, it must be removed, as it has higher priority than PHPRC. |
| All times are GMT -7. The time now is 02:13 AM. |