LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   LSWS 4.1 Release (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=26)
-   -   Version 4.0.2: Using php.ini under suEXEC? (http://www.litespeedtech.com/support/forum/showthread.php?t=2915)

JLHC 04-24-2009 09:33 PM

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.

mistwang 04-25-2009 07:36 PM

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.

JLHC 05-02-2009 07:45 AM

Quote:

Originally Posted by mistwang (Post 14805)
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.

I have tried this but it seems that individual hosting account are not able to use the local php.ini file. Please note that this is under suEXEC.

mistwang 05-02-2009 11:30 AM

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.

techsupport 05-02-2009 07:11 PM

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.

mistwang 05-02-2009 07:30 PM

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.