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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > 4.2 - 503 Errors

Reply
 
Thread Tools Display Modes
  #21  
Old 02-13-2013, 07:26 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
Quote:
Also, why can't you use PHP suEXEC daemon mode when configuring a vhost via vhost template?
I think daemon mode should apply for server level ext app lsphp only.

in daemon mode, root lsphp process is running as root, it can fork child php process with userid:group id.

demon mode lsphp should serve for all users, not for a single user.

for a single user, non-daemon mode is enough.
Reply With Quote
  #22  
Old 02-13-2013, 08:16 PM
bzerangue bzerangue is offline
Member
 
Join Date: Jun 2007
Posts: 23
I had it set to suEXEC in the server level (for all users) not the app level, so that's why I don't understand the original response to why it's causing a 503 error and to get rid of the 503 you have to turn off suEXEC mode altogether for no 503 to occur.
Reply With Quote
  #23  
Old 02-13-2013, 08:49 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
Quote:
server level ext app lsphp
should change to
lsadmin console->Server->External App->lsphp5
to be more clear

to summary, external app lsphp defined at virtual host level can't set "Run On Start Up" to "suEXEC Daemon", otherwise 503 error. other values are ok.

Virtual Host Template >> PHP_SuEXEC
implement php suEXEC by:
External App:$VH_NAME_lsphp ->
suEXEC User:Not Set
suEXEC Group:Not Set

and

Security->ExtApp Set UID Mode: DocRoot UID
Reply With Quote
  #24  
Old 02-14-2013, 06:06 AM
bzerangue bzerangue is offline
Member
 
Join Date: Jun 2007
Posts: 23
@mistwang and @Nitewave -

OK, now things are making sense. Forgive me for my frustration above. Thanks for being patient with me.

The issue was that I needed to have my Virtual Host Template > PHP_SuEXEC > External App > Run On Start Up set to "Not Set" and my Server Level set to suEXEC daemon mode.

The problem is that I had it set to suEXEC daemon mode on both the Virtual Host Level and the Server Level. To fix it was so I could use suEXEC daemon mode was not to set Run On Start Up to "No" at the Virtual Host Level, BUT to set it to "Not Set" at the Virtual Host Level.

So now everything works correctly. Sorry for the confusion that I caused. Thank you both for your gracious and patient help.
Reply With Quote
  #25  
Old 02-14-2013, 06:12 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
Hi,

Quote:
The problem is that I had it set to suEXEC daemon mode on both the Virtual Host Level and the Server Level. To fix it was so I could use suEXEC daemon mode was not to set Run On Start Up to "No" at the Virtual Host Level, BUT to set it to "Not Set" at the Virtual Host Level.
since I've not tested this special setting, so need discuss with you more and make it clear.

to ensure a specific site is served by daemon mode lsphp, need check the process's parent process, if it's litespeed process, then not daemon mode lsphp; if parent process is lsphp running at root, then it's daemon mode lsphp. can check it by "pstree -p" as well.
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 06:05 AM.



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