LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LSWS 4.1 Release > Version 4.0.2: Using php.ini under suEXEC?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2009, 09:33 PM
JLHC JLHC is offline
Member
 
Join Date: Dec 2008
Location: MY - US
Posts: 31
Default 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.
Reply With Quote
  #2  
Old 04-25-2009, 07:36 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #3  
Old 05-02-2009, 07:45 AM
JLHC JLHC is offline
Member
 
Join Date: Dec 2008
Location: MY - US
Posts: 31
Quote:
Originally Posted by mistwang View Post
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.
Reply With Quote
  #4  
Old 05-02-2009, 11:30 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #5  
Old 05-02-2009, 07:11 PM
techsupport techsupport is offline
New Member
 
Join Date: May 2009
Posts: 1
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.
Reply With Quote
  #6  
Old 05-02-2009, 07:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:01 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.