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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Swapping between Apache and LSWS

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2009, 07:50 AM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Default Swapping between Apache and LSWS

I know that you can do this on the fly in the LSWS Admin CP but I was wondering from others experiences what was the best Apache configuration to allow swapping between the two without causing PHP issues.

I'd been running suPHP so long I cannot remember which php configuration for Apache allows php_flag and php_value - I was thinking DSO.

I'm also looking at bringing Apache online on a secondary port for testing (something other than 80) but I've not looked into it in any real depth so if anybody has any suggestions on that I am all ears as it will prevent my need of swapping between LSWS/Apache

Thanks
Reply With Quote
  #2  
Old 08-17-2009, 10:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
suPHP does not support php_value, php_flag in .htaccess, it uses php.ini for that account. php_value and php_flag is safer as certain PHP configurations are not allowed.
Litespeed can be configured to use the per user php.ini via PHPRC environment variable in lsphp5 external app configuration.

If you want to run Apache and LSWS in parallel, you can use our "Port Offset" feature. You can change the official Apache port to something like "78" with tweek configuration in WHM, then set "Port Offset" to 2, so LSWS will run at port 80.
The same for HTTPS port.
Reply With Quote
  #3  
Old 08-17-2009, 10:15 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
for using per user php.ini, please check

http://www.litespeedtech.com/support...ighlight=PHPRC
Reply With Quote
  #4  
Old 08-18-2009, 08:36 AM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Quote:
Originally Posted by mistwang View Post
If you want to run Apache and LSWS in parallel, you can use our "Port Offset" feature. You can change the official Apache port to something like "78" with tweek configuration in WHM, then set "Port Offset" to 2, so LSWS will run at port 80.
The same for HTTPS port.
Exactly what I was looking for

I would like to do this on my test server so that I can compare the two as-needed.
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:00 PM.



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