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

Go Back   LiteSpeed Support Forums > External Applications > PHP > PHP Files on one account have error "503 Service Unavailable"

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2008, 01:19 PM
iUnknown iUnknown is offline
Member
 
Join Date: Nov 2008
Posts: 38
Default PHP Files on one account have error "503 Service Unavailable"

Hello,

As said in the thread title, I have a problem with one hosting account's PHP files. Some of the PHP files are encoded with ioncube, and some are not. All give this error. I have another account with files encoded with ioncube in and they work fine.

This account works fine with apache though.

Thanks.
Reply With Quote
  #2  
Old 11-09-2008, 02:33 PM
iUnknown iUnknown is offline
Member
 
Join Date: Nov 2008
Posts: 38
I posted this in another thread about another issue I was having, and it relates to this:

Quote:
Originally Posted by iUnknown View Post
I've just found that I shouldn't really need to compile PHP because the "Build Matching PHP Binary" actually did work. The reason I thought it didn't was because I thought it was missing a few on the phpinfo() page I made showing the modules... infact it was just missing '--with-apxs2=/usr/local/apache/bin/apxs'...... obviously, because it's not apache.

I originally thought compiling php again would fix the problem I am having here:

http://www.litespeedtech.com/support...2403#post12403

Now this is even more puzzling because both apache's PHP and litespeed's PHP contain the same modules... so that shouldn't be a problem... What could be causing this?
Reply With Quote
  #3  
Old 11-09-2008, 05:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Maybe it is due to file permission issue if you are using PHP suEXEC.
Reply With Quote
  #4  
Old 11-09-2008, 05:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Run LiteSpeed on another port with port offset, then build matching PHP binary. If Apache does not use "PHP suEXEC", then "build matching PHP binary", then you can try disabling PHP suEXEC from LiteSpeed.
Reply With Quote
  #5  
Old 11-10-2008, 09:04 AM
iUnknown iUnknown is offline
Member
 
Join Date: Nov 2008
Posts: 38
This is what I did originally. My apache uses suEXEC and I used the build matching php binary feature. It now won't let me use it again because it's already matching.

Must I disable suEXEC before doing this litespeed build?

Thanks

Edit: Just realised PHP suEXEC and suEXEC are two different things... I believe that I use both... is that a problem?

Last edited by iUnknown; 11-10-2008 at 09:54 AM..
Reply With Quote
  #6  
Old 11-10-2008, 01:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
suEXEC is for CGI script, PHP suEXEC is for PHP script.
If you are using Apache mod_php, then your Apache does not do PHP suEXEC.

In easy apache, you can enable "suphp" to enable PHP suEXEC.
Reply With Quote
  #7  
Old 11-10-2008, 01:33 PM
iUnknown iUnknown is offline
Member
 
Join Date: Nov 2008
Posts: 38
Ok, but how does this affect litespeed's php?
Reply With Quote
  #8  
Old 11-10-2008, 01:42 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Apache's PHP wont affect LiteSpeed PHP. those two are independent.
However, it is a good idea to have Apache and LiteSpeed has similar PHP setup, so you can easily trouble shoot one or another by means of comparison.

If you need to rebuild matching PHP no matter the configuration is match or not, you can remove lsws/fcgi-bin/lsphp-5.x.x.
Reply With Quote
  #9  
Old 11-10-2008, 01:45 PM
iUnknown iUnknown is offline
Member
 
Join Date: Nov 2008
Posts: 38
I used the "build matching PHP binary" function originally to rebuild litespeed's php to what I have for apache... so surely it should be identical? Can litespeed's php not have php suexec or something?
Reply With Quote
  #10  
Old 11-11-2008, 08:16 AM
iUnknown iUnknown is offline
Member
 
Join Date: Nov 2008
Posts: 38
Please can someone help me with this because there is no point in me having this product if it isn't working for me...
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 07:53 AM.



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