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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > on request #0, error: Connection timed out!

Reply
 
Thread Tools Display Modes
  #1  
Old 01-01-2008, 03:23 AM
adriatic adriatic is offline
New Member
 
Join Date: Oct 2006
Posts: 9
Default on request #0, error: Connection timed out!

If I upgrade to 3.3.3 my php application causes a 503 error. When I switch back to 3.2.4 the very same application works flawlessly. How is it? Thanks!
Reply With Quote
  #2  
Old 01-01-2008, 09:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please check stderr.log for php startup errors, either missing library or bad php configuration. Fix those errors, it will work fine with 3.3.3
Reply With Quote
  #3  
Old 01-01-2008, 03:48 PM
adriatic adriatic is offline
New Member
 
Join Date: Oct 2006
Posts: 9
Hello, thank you for your reply.

I deleted the existing "stderror.log" and the "error.log" files, and then switched back to 3.3.3 (from 3.2.4). I still get a 503 error when accessing the site. The content of the "stderror.log" doesn't show any PHP-related error (see: http://pastie.caboo.se/133848 ), while the error.log content is this one: http://pastie.caboo.se/133849

Any hints will be appreciated. Thank you!
Reply With Quote
  #4  
Old 01-02-2008, 06:57 AM
adriatic adriatic is offline
New Member
 
Join Date: Oct 2006
Posts: 9
Hello, please let me know if you need additional debug info on my end. At the time being I'm running the site having switched back to 3.2.4. Thanks!
Reply With Quote
  #5  
Old 01-02-2008, 07:16 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please try sudo -u nobody /opt/lsws/fcgi-bin/lshphp -i, it should show some warning/errors.
Reply With Quote
  #6  
Old 01-02-2008, 12:11 PM
adriatic adriatic is offline
New Member
 
Join Date: Oct 2006
Posts: 9
I compiled PHP from the LSWS web interface and it went well with the default parameters proposed by the admin user interface php-compilation form. My "opt/lsws/fcgi-bin/" directory contains the following files:

-r-xr-xr-x 1 root root 3317 Dec 30 23:09 lsperld.fpl
-r-xr-xr-x 1 nobody nobody 1878016 Oct 23 2006 lsphp
lrwxrwxrwx 1 root nobody 13 Jan 1 01:44 lsphp5 -> ./lsphp-5.2.5
-rwxr-xr-x 1 root nobody 15697031 Jan 1 01:44 lsphp-5.2.5
-r-xr-xr-x 1 root root 651 Dec 30 23:09 RailsRunner.rb

Issuing the "./lsphp-5.2.5 -i | more" command I get a lot of informations but not warnings or error (let me know if you need to examine the output and I can send it privately). I issued the same command to "lsphp" (I had to make it exacecutale) and it reavelead to be a php 4 executable, which showed some errors, but I suppose I'm using php5 at the moment.

What do you suggest to do? Thanks.
Reply With Quote
  #7  
Old 01-02-2008, 01:00 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
check the lsphp or lsphp5 external app configuration to make sure the right executable has been used.
Also always use "sudo -u <non_root_user_name> ./lsphp... -i" to check it, sometimes there are permission problem which does not exist for root user.
Reply With Quote
  #8  
Old 01-03-2008, 02:06 AM
adriatic adriatic is offline
New Member
 
Join Date: Oct 2006
Posts: 9
Solved!

What happened:

As suggested by mistwang, at first I made sure to use php5 in all places where it is requested (external app). I thus, finally, discovered an error in my application which clearly was missing a function used to call a mysql database (mysql_connect). At this point I noticed that php4 was compiled (by default) with the mysql switch, while php5 is compiled (by default, through the LSWS admin interface) with the mysqli one. I thus recompiled php5 too with the mysql switch and everything worked again. Probably the 3.2.4 configuration was linked to the use of php4 while the 3.3.3 was linket to the use of php5 and since the mysql compilation switch was missing this was the reason of the issues I encountered.

All is well what ends 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 05:23 AM.



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