Migration from Apache to Litespeed

#1
Hi Team,

Am a newbie to Litespeed WS, all i see a active participants on this forum.

Thanks for contribution it.

I have few Web servers running on Apache, as initiative migration one of the server to Lite speed.

Lite speed installation went fine successfully and Thanks for such a Quick installation :)

When i tried to migrate my current Apache server by running below command

./apimport.sh /etc/XXX/XXXXX/XXXX/httpd.conf

I don't see any error but it outputs as below

include file = /etc/XXX/XXXXX/XXXX/php.conf
include file = /etc/XXX/XXXXX/XXXX/proxy_ajp.conf
include file = /etc/XXX/XXXXX/XXXX/welcome.conf
include file = /etc/XXX/XXXXX/XXXX/manual.conf
include file = /etc/XXX/XXXXX/XXXX/ssl.conf
include file = /etc/XXX/XXXXX/XXXX/python.conf
include file = /etc/XXX/XXXXX/XXXX/perl.conf
include file = /etc/XXX/XXXXX/XXXX/webalizer.conf


Also i don't see Apache config imported to LS config.

Please provide any suggestion and Thanks in Advance.

Bharathvn
 

NiteWave

Administrator
#5
please don't run apimport.sh, it's old and not tested for some time.

instead, after install lsws, in admin console,try config:

Server-->
-->General
-->Using Apache Configuration File

this should be better than running apimport.sh
 
#6
Thanks, after configuring Apache part.

it created a new listeners on port 160 and 523.

am able to browse original site configured on Apache.

How can i move those listeners to port 80?

Thank you,
Bharathvn
 

NiteWave

Administrator
#7
stop apache;
then restart litespeed, check if litespeed running at port 80.

if not, check apache httpd.conf and update it.

since apache and litespeed can't listen to same IP:port.

configure apache httpd.conf as before, just think apache is replaced by litespeed, and litespeed read and parse httpd.conf
 
#8
stopped apache and removed port 80 on Apache Port Offset ( LSWS config)

restarted lsws and it started working on port 80 /443.

But my site went down saying its error "Error establishing a database connection"

Not sure what else need to change
 

NiteWave

Administrator
#9
back to apache, run phpinfo(). save the build options.

then rebuild php under admin console --> Actions --> Compile PHP using same options as apache (remove 1 or 2 related to apache)

please try yourself or refer our wiki page regarding how to rebuild php under litespeed.
 
Top