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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Working PHP accelerator for PHP 5.2.8

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2009, 02:18 PM
Henk Poley Henk Poley is offline
New Member
 
Join Date: May 2008
Posts: 6
Default Working PHP accelerator for PHP 5.2.8

Is there a working PHP accelerator when building PHP 5.2.8 with the web interface? PHP build fine, and the .so's seem to load, but I only get "Error 503" on my PHP sites (the phpinfo page by Litespeed works though).
Reply With Quote
  #2  
Old 01-11-2009, 03:02 PM
MindTooth MindTooth is offline
Member
 
Join Date: Apr 2008
Posts: 41
Hello.

Just received the same problem. And the fix is that the lsphp file inside fcgi-php isn't updated. You need to create a symlink to lsphp-5.2.8 inside the same folder.

Guide:
Navigate to your lsws folder, open fcgi-php and first move lsphp to lsphp.bak2, next is to create a symlink to lsphp-5.2.8. Can be achived by following command: sudo ln -s lsphp-5.2.8 lsphp.

I hope this fix it.

Birger
Reply With Quote
  #3  
Old 01-11-2009, 03:19 PM
Henk Poley Henk Poley is offline
New Member
 
Join Date: May 2008
Posts: 6
Thank you, that put me on the right track. btw, a better way would be to point your Virtual Host "External App" config to $SERVER_ROOT/fcgi-bin/lsphp5 (instead of lsphp).

Some old tutorials from before when Litespeed buildscripts supported PHP5 told you to just replace the default lsphp with the PHP5 binary you built by hand. Apparently I have been running a PHP5 from dec 8 2007 all along, only with new PHP5 script-libraries. Whoops..

Last edited by Henk Poley; 01-11-2009 at 03:29 PM..
Reply With Quote
  #4  
Old 01-11-2009, 03:44 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
I think 3.3.24 fixes this problem. No problems with 5.2.8 on my server.
Reply With Quote
  #5  
Old 01-11-2009, 04:00 PM
Henk Poley Henk Poley is offline
New Member
 
Join Date: May 2008
Posts: 6
Quote:
Originally Posted by anewday View Post
I think 3.3.24 fixes this problem. No problems with 5.2.8 on my server.
When you never built PHP5 by hand and replaced lsphp (PHP4), you won't have this problem. Also, 3.3.24 doesn't seem to be released.
Reply With Quote
  #6  
Old 01-11-2009, 05:43 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
You can just change the version on the download link.
Reply With Quote
  #7  
Old 01-11-2009, 07:27 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The newly built PHP5 binary will be copied to lsws/fcgi-bin/lsphp-5.xxxx , and symbolic linked to lsws/fcgi-bin/lsphp5 . So, use "lsphp5" will always give you the latest.
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 11:16 AM.



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