no WHM, but replicating the apache/litespeed confguration ?

eva2000

Well-Known Member
#1
Just setup a local virtualised CentOS 5.5 64bit server which has apache 2.2.3 and PHP 5.3.5 compiled as per this thread http://www.litespeedtech.com/support/forum/showthread.php?t=4592 then installed litespeed 4.0.18 enterprise and recompiled LSAPI 5.5 with PHP 5.3.4

But I want to replicate WHM/litespeed's usage of pulling apache virtualhost/doc roots etc for testing where i can switch between apache or litespeed. But how would I configure litespeed to do this ? Under admin -> server -> configuration -> general -> Using Apache Configuration File ?

Apache 2.2.3 settings

binary path = /usr/sbin/httpd
configuration path = /etc/httpd/conf/httpd.conf
doc root = /var/www/html

Litespeed settings
Default virtual host example doc root = /usr/local/lsws/DEFAULT/html/

Also is it possible to have some virtualhosts pulled from apache httpd.conf while some solely from litespeed admin virtual host created ?
 
Last edited:

mistwang

LiteSpeed Staff
#2
In your case, you can just let LiteSpeed load Apache's configuration file, no need to override the httpd binary, when you need to switch between LiteSpeed and Apache, just stop one then start the other from command line.

When you copy httpd.conf from another cPanel machine, you may need to update the IP address of the vhost configuration to use your local IP.

Yes, you can configure vhosts in native Litespeed configuration, they will coexist with vhosts from httpd.conf, native vhost has higher priority if the same domain name is used. It is recommended to bind individual IP instead of the wildcard when you create a listener shared with httpd.conf.
 

eva2000

Well-Known Member
#3
Thanks George, so if i am not overriding htpd binary, what do i set for the option

Auto Reload On Changes ? Yes or No ?

i tried with it set No and used config path /etc/httpd/conf/httpd.conf and no apache offset port specified

but after switching from litespeed to apache and back

service lsws stop
service httpd start
service httpd stop
service lsws start

i can con't get litespeed to stay up ?

firefox browser says

Unable to connect

Firefox can't establish a connection to the server at 192.168.56.101:7080.


* The site could be temporarily unavailable or too busy. Try again in a few
moments.

* If you are unable to load any pages, check your computer's network
connection.

* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
error.log for lsws

2011-01-20 21:54:21.837 [NOTICE] [Child: 3729] LiteSpeed/4.0.18 Enterprise starts successfully!
2011-01-20 21:54:21.837 [NOTICE] [AutoRestarter] new child process with pid=3729 is forked!
2011-01-20 21:54:21.837 [INFO] Stop listener 10.0.2.15:443.
2011-01-20 21:54:21.837 [INFO] Stop listener 10.0.2.15:80.
2011-01-20 21:54:21.837 [INFO] Stop listener 127.0.0.1:443.
2011-01-20 21:54:21.837 [INFO] Stop listener 127.0.0.1:80.
2011-01-20 21:54:21.837 [INFO] Stop listener *:7080.
2011-01-20 21:54:21.837 [NOTICE] [child: 3730] Successfully change current user to nobody
2011-01-20 21:54:21.837 [NOTICE] [Child: 3730] Core dump is enabled.
2011-01-20 21:54:21.837 [NOTICE] [Child: 3730] Setup swapping space...
2011-01-20 21:54:21.837 [NOTICE] [Child: 3730] LiteSpeed/4.0.18 Enterprise starts successfully!
2011-01-20 21:54:21.837 [NOTICE] [AutoRestarter] new child process with pid=3730 is forked!
2011-01-20 21:54:22.205 [NOTICE] [AutoUpdate] Checking for new releases..., pid=3732
2011-01-20 21:54:22.212 [NOTICE] Start to clean up cache directory, pid=3733
2011-01-20 21:54:22.890 [INFO] [AutoUpdate] No new update.
2011-01-20 21:54:23.014 [ERROR] [LICENSE] License key operation failure: ERR LCR.1: This license has been migrated. If you still want to use this server, please try to register a new key.
2011-01-20 21:54:23.115 [INFO] Stop listener 10.0.2.15:443.
2011-01-20 21:54:23.115 [INFO] Stop listener 10.0.2.15:80.
2011-01-20 21:54:23.115 [INFO] Stop listener 127.0.0.1:443.
2011-01-20 21:54:23.115 [INFO] Stop listener 127.0.0.1:80.
2011-01-20 21:54:23.115 [INFO] Stop listener 192.168.56.101:443.
2011-01-20 21:54:23.115 [INFO] Stop listener 192.168.56.101:80.
2011-01-20 21:54:23.115 [INFO] Stop listener *:8088.
2011-01-20 21:54:23.115 [INFO] Stop listener *:7080.
2011-01-20 21:54:23.115 [INFO] Stop listener *:8080.
2011-01-20 21:54:23.115 [NOTICE] [Child: 3730] Start shutting down gracefully ...
2011-01-20 21:54:23.115 [NOTICE] New litespeed process is ready, stop listeners
2011-01-20 21:54:23.115 [INFO] Stop listener 192.168.56.101:443.
2011-01-20 21:54:23.115 [INFO] Stop listener 192.168.56.101:80.
2011-01-20 21:54:23.115 [INFO] Stop listener *:8088.
2011-01-20 21:54:23.115 [INFO] Stop listener *:8080.
2011-01-20 21:54:23.115 [NOTICE] [Child: 3730] Shut down successfully!
2011-01-20 21:54:23.116 [NOTICE] [Child: 3729] Start shutting down gracefully ...
2011-01-20 21:54:23.116 [NOTICE] New litespeed process is ready, stop listeners
2011-01-20 21:54:23.116 [INFO] Stop listener 10.0.2.15:443.
2011-01-20 21:54:23.116 [INFO] Stop listener 10.0.2.15:80.
2011-01-20 21:54:23.116 [INFO] Stop listener 127.0.0.1:443.
2011-01-20 21:54:23.116 [INFO] Stop listener 127.0.0.1:80.
2011-01-20 21:54:23.116 [INFO] Stop listener *:8088.
2011-01-20 21:54:23.116 [INFO] Stop listener *:7080.
2011-01-20 21:54:23.116 [INFO] Stop listener *:8080.
2011-01-20 21:54:23.116 [NOTICE] [Child: 3729] Shut down successfully!
2011-01-20 21:54:24.006 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=3729 !
2011-01-20 21:54:24.107 [NOTICE] [AutoRestarter] child process with pid=3729 exited with status=0!
2011-01-20 21:54:24.107 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=3730 !
2011-01-20 21:54:24.209 [NOTICE] [AutoRestarter] child process with pid=3730 exited with status=0!
2011-01-20 21:54:24.209 [NOTICE] [PID:3725] Server Stopped!
something about license key

2011-01-20 21:54:23.014 [ERROR] [LICENSE] License key operation failure: ERR LCR.1: This license has been migrated. If you still want to use this server, please try to register a new key.
I did have problems with dhcp assigning NIC ips for this server when i tried adding a 2nd NIC to the virtual guest install, so for a few hours it was assigned different ips from what it initially was setup for.
 
Last edited:
Top