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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Running PHP 4 and 5 in parallel

Reply
 
Thread Tools Display Modes
  #11  
Old 04-25-2007, 02:07 AM
Rob T Rob T is offline
New Member
 
Join Date: Apr 2007
Posts: 5
Sorry to resurrect this old thread, but is there a good how-to anywhere on how to do this? I'd like to be running both php4 and php5 on our servers, and if this can be done easily with lsapi that would be great! However, I can't find any documentation on how to accomplish this in the forums or in the wiki. Ideas?
Reply With Quote
  #12  
Old 04-25-2007, 08:01 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You need to compile your own PHP5 LSAPI binary, then duplicate the existing configuration for PHP4, just make sure the script handler is for ".php5" suffix.
Reply With Quote
  #13  
Old 04-25-2007, 06:36 PM
Rob T Rob T is offline
New Member
 
Join Date: Apr 2007
Posts: 5
I understand the concepts involved, I was wondering if there was more of a "step-by-step how-to" that existed anywhere that would speed up the learning curve a bit for someone who doesn't spend much time compiling software at the command line.

If I end up diving in and giving it a shot, perhaps I'll write something up to make it easier for others in the future.
Reply With Quote
  #14  
Old 04-25-2007, 06:52 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Step by step wiki for compiling your own PHP binary is available
http://www.litespeedtech.com/support...wiki:php:lsapi

You don't need to replace the old php binary, just name the php binary as "lsphp5" instead of "lsphp".

Once you get the lsphp5 binary, just duplicate the existing server level php external app configuration and php script handler configuration, that's pretty easy.

You are welcome to add your step by step guide to our wiki if you do write something.
Reply With Quote
  #15  
Old 05-21-2007, 12:46 AM
clarocque clarocque is offline
Member
 
Join Date: May 2007
Posts: 12
Default Did anyone end up doing a step by step for this?

Did anyone end up doing a step by step for this?

With my very limited experience with server stuff - I seem to get along up to the part about php.ini in the WIKI instructions. I sem to only have one ini file for php4???

Anyone have any thoughts?

Chris
Reply With Quote
  #16  
Old 05-21-2007, 12:42 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You can creat a php.ini for php5, like something at lsws/php5/php.ini.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing system php felosi PHP 3 07-16-2007 11:23 PM
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
Running Rails and PHP in parallel under the same virtual domain/host adriatic Ruby/Rails 1 11-10-2006 08:52 AM
Best configuration for PHP LiteSpeed SAPI jeff Install/Configuration 6 10-19-2005 09:54 AM
1.5RC1 context xing Bug Reports 2 04-28-2004 09:27 AM


All times are GMT -7. The time now is 11:37 AM.



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