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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > max_execution_time did not changed

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2007, 08:41 AM
piper piper is offline
Senior Member
 
Join Date: Jan 2007
Posts: 58
Default max_execution_time did not changed

My server is running great with litespeed (buying commercial license soon!!)

however i'm having problem changing values in php.ini, my php.ini is in ./conf

and when i change the value and restart the server the new value such as max_execution_time did not changed on phpinfo

any assistance greatly appriciated

Thanks
Reply With Quote
  #2  
Old 01-24-2007, 09:24 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
There is a problem with the conf/php.ini permission when PHP is started in suEXEC mode. For security reason, conf directory is only readable by the user that lshttpd run as, usually "nobody" user. And it is not recommended to change permission mask of conf/ directory.

So, it can be fixed by moving php.ini to somewhere else and adding "-c <path_to_php.ini>" command parameter for the lsphp external app.
Reply With Quote
  #3  
Old 01-24-2007, 09:36 AM
piper piper is offline
Senior Member
 
Join Date: Jan 2007
Posts: 58
can you give me the full command on how to do it? i'm pretty lost at it right now

i tried lsphp -c /opt/phpconf (where i copied over php.ini from ./conf) and it just stalled
Reply With Quote
  #4  
Old 01-24-2007, 09:41 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
What you did is correct. Maybe something wrong with the php.ini, you need to check lsws/log/error.log and lsws/log/stderr.log see if any information regarding it.

You can remove the php.ini under /opt/phpconf, see if it works again, if yes, it is the php.ini.
Reply With Quote
  #5  
Old 01-24-2007, 09:49 AM
piper piper is offline
Senior Member
 
Join Date: Jan 2007
Posts: 58
I removed php.ini and it still stalled

on error and sterr doesnt show anything wrong with it, any other pointer?
Reply With Quote
  #6  
Old 01-24-2007, 09:57 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Maybe it is extension mismatch or missing extension.
Please try
Code:
 cd lsws/fcgi-bin
./lsphp -c /opt/phpconf -i
You should get some error messages if something is wrong.
Reply With Quote
  #7  
Old 01-24-2007, 09:42 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
the full command should be "$SERVER_ROOT/fcgi-bin/lsphp -c /opt/phpconf"
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:23 PM.



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