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

Go Back   LiteSpeed Support Forums > External Applications > PHP > php4 and php5 together questions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2007, 01:34 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
Default php4 and php5 together questions

I had a vps customer recently telling me they needed php4 for something. I have replaced the php that comes with it, with 5.24,
I tried to add this one line
addType application/x-httpd-php4 php

but we got a forbidden. So I replaced lsphp with the original and his script worked.
How can we keep php5 as the main php and call php4 from htaccess?
Reply With Quote
  #2  
Old 09-11-2007, 04:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Just rename the original lsphp to lsphp4, then add an external application for lsphp4, then add a script handler for "php4" suffix with the lsphp4 external application.
Reply With Quote
  #3  
Old 09-11-2007, 05:13 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
what do I put for the address?
I tried this uds://tmp/lshttpd/lsphp4.sock and it didnt work
Reply With Quote
  #4  
Old 09-11-2007, 06:13 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
should be fine. please check your error log,
Reply With Quote
  #5  
Old 09-12-2007, 01:29 AM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
Keep on getting this
2007-09-11 22:49:32.518 [INFO] [uds://tmp/lshttpd/lsphp4.sock] Connection refused, restart!
2007-09-11 22:49:32.518 [INFO] [uds://tmp/lshttpd/lsphp4.sock] Connection refused, restart!
2007-09-11 22:49:32.518 [INFO] [uds://tmp/lshttpd/lsphp4.sock] Connection refused, restart!
2007-09-11 22:52:51.375 [INFO] [uds://tmp/lshttpd/lsphp4.sock] Connection refused, restart!


For the command to run I got $SERVER_ROOT/fcgi-bin/lsphp4 -c ../php4

when entered from the command line it appears to work. Its just when I try to call a script I get a 503 and connect refused in error log
Reply With Quote
  #6  
Old 09-12-2007, 08:39 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Does /tmp/lshttpd/lsphp4.sock exist? has "auto start" being checked?
If it is a lsphp4 executable problem you should be able find some clue in stderr.log and error.log.
Reply With Quote
  #7  
Old 09-13-2007, 11:53 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
hey, just updating you to let you know that putting on auto-start fixed the issue and its working like a charm
Thanks
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:30 AM.



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