Pointing the Virtual Hosts to beta site

gkamp

Active Member
#1
Not sure if I am using the correct terminology but I can't get the site past "It Works!". We have a full website in the htdocs. It am just unable to there through the browser.


Help!

Greg Kamp
 

gkamp

Active Member
#3
I am not really that saive w/ this but I am all I got. The errors say that vhconf.xml file has no element. I don't know what to do with that.

2011-02-24 16:10:20.694 [NOTICE] [15739] Loading LiteSpeed/4.0.20 Standard ...
2011-02-24 16:10:20.765 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7008
2011-02-24 16:10:20.765 [NOTICE] Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
2011-02-24 16:10:20.772 [NOTICE] Recovering server socket: [*:8088]
2011-02-24 16:10:20.772 [NOTICE] Recovering server socket: [*:7080]
2011-02-24 16:10:20.772 [INFO] old priority: -19, new priority: -19
2011-02-24 16:10:20.773 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2011-02-24 16:10:20.802 [NOTICE] [PID: 15741]: start cgid: 15742, /usr/local/lsws/bin/httpd
2011-02-24 16:10:20.806 [NOTICE] The maximum number of file descriptor limit is set to 4096.
2011-02-24 16:10:20.814 [ERROR] [/var/www/beta.grunt.com/htdocs/conf/vhconf.xml:1] no element found
2011-02-24 16:10:20.814 [ERROR] [config:server:vhosts] cannot load configure file - /var/www/beta.grunt.com/htdocs/conf/vhconf.xml !
2011-02-24 16:10:20.834 [ERROR] [config:template:centralConfigLog] Listener [Default] does not exist
2011-02-24 16:10:20.836 [ERROR] [config:vhost:BETA] Path for vhost root is not accessible: /usr/local/lsws/BETA/
2011-02-24 16:10:20.841 [ERROR] [config:template:EasyRailsWithSuEXEC] Listener [Default] does not exist
2011-02-24 16:10:20.844 [NOTICE] litespeed (15741) is ready
2011-02-24 16:10:20.865 [NOTICE] [AutoRestarter] new child process with pid=15744 is forked!
2011-02-24 16:10:20.872 [NOTICE] [child: 15744] Successfully change current user to nobody
2011-02-24 16:10:20.873 [NOTICE] [Child: 15744] Core dump is enabled.
2011-02-24 16:10:20.874 [NOTICE] [Child: 15744] Setup swapping space...
2011-02-24 16:10:20.874 [NOTICE] [Child: 15744] LiteSpeed/4.0.20 Standard starts successfully!
2011-02-24 16:10:21.118 [NOTICE] [AutoUpdate] Checking for new releases..., pid=15746
2011-02-24 16:10:21.299 [NOTICE] Start to clean up cache directory, pid=15747
2011-02-24 16:10:21.316 [INFO] [AutoUpdate] No new update.
2011-02-24 16:10:28.283 [NOTICE] [Child: 40383] Shut down successfully!
2011-02-24 16:10:28.284 [NOTICE] [AdminPHP] stop worker processes
2011-02-24 16:16:06.509 [INFO] Remove pid: 15809
 

webizen

Well-Known Member
#4
Looks like your config of vhost root and vhost config file path are wrong.

2011-02-24 16:10:20.836 [ERROR] [config:vhost:BETA] Path for vhost root is not accessible: /usr/local/lsws/BETA/
You need to make sure the path /usr/local/lsws/BETA/ is writable by lsadm user (i.e. running user of LSWS web admin console).

2011-02-24 16:10:20.814 [ERROR] [/var/www/beta.grunt.com/htdocs/conf/vhconf.xml:1] no element found
2011-02-24 16:10:20.814 [ERROR] [config:server:vhosts] cannot load configure file - /var/www/beta.grunt.com/htdocs/conf/vhconf.xml !
You need to point your vhost Config File to be $VH_ROOT/conf/vhost.xml instead of $DOC_ROOT/conf/vhost.xml

Go to LSWS Web Admin console -> Configuration -> Virtual Hosts -> BETA -> Basic -> Base:
Virtual Host Root => $SERVER_ROOT/BETA
Config File => $VH_ROOT/conf/vhconf.xml

Also make sure path $VH_ROOT/conf (i.e. /usr/local/lsws/BETA/conf) is writable by lsadm user.

Save and Apply Changes. Then Graceful Restart LSWS and see if you have further errors.
 
Last edited:

gkamp

Active Member
#5
here is the new errors.

2011-02-25 10:02:07.668 [NOTICE] [8798] Loading LiteSpeed/4.0.20 Standard ...
2011-02-25 10:02:07.727 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7414
2011-02-25 10:02:07.727 [NOTICE] Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
2011-02-25 10:02:07.736 [NOTICE] Recovering server socket: [*:8088]
2011-02-25 10:02:07.736 [NOTICE] Recovering server socket: [*:7080]
2011-02-25 10:02:07.737 [INFO] old priority: -19, new priority: -19
2011-02-25 10:02:07.737 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2011-02-25 10:02:07.755 [NOTICE] [PID: 8800]: start cgid: 8801, /usr/local/lsws/bin/httpd
2011-02-25 10:02:07.759 [NOTICE] The maximum number of file descriptor limit is set to 4096.
2011-02-25 10:02:07.767 [ERROR] [config:vhost:BETA] missing <docRoot> in <virtualHostConfig>
2011-02-25 10:02:07.767 [ERROR] [config:vhost:BETA] configuration failed!
2011-02-25 10:02:07.768 [ERROR] [config:template:centralConfigLog] Listener [Default] does not exist
2011-02-25 10:02:07.769 [ERROR] [config:vhost:BETA] Path for document root is not accessible: /usr/local/lsws/BETA/public_html/
2011-02-25 10:02:07.769 [ERROR] [config:vhost:BETA] configuration failed!
2011-02-25 10:02:07.770 [ERROR] [config:template:EasyRailsWithSuEXEC] Listener [Default] does not exist
2011-02-25 10:02:07.772 [NOTICE] litespeed (8800) is ready
2011-02-25 10:02:07.797 [NOTICE] [AutoRestarter] new child process with pid=8802 is forked!
2011-02-25 10:02:07.804 [NOTICE] [child: 8802] Successfully change current user to nobody
2011-02-25 10:02:07.805 [NOTICE] [Child: 8802] Core dump is enabled.
2011-02-25 10:02:07.806 [NOTICE] [Child: 8802] Setup swapping space...
2011-02-25 10:02:07.807 [NOTICE] [Child: 8802] LiteSpeed/4.0.20 Standard starts successfully!
2011-02-25 10:02:08.103 [NOTICE] [AutoUpdate] Checking for new releases..., pid=8803
2011-02-25 10:02:08.226 [INFO] [AutoUpdate] No new update.
2011-02-25 10:02:08.228 [NOTICE] Start to clean up cache directory, pid=8804
2011-02-25 10:02:15.213 [NOTICE] [Child: 8371] Shut down successfully!
2011-02-25 10:02:15.214 [NOTICE] [AdminPHP] stop worker processes
2011-02-25 10:09:17.575 [INFO] Remove pid: 8862
 

webizen

Well-Known Member
#6
2011-02-25 10:02:07.767 [ERROR] [config:vhost:BETA] missing <docRoot> in <virtualHostConfig>
2011-02-25 10:02:07.767 [ERROR] [config:vhost:BETA] configuration failed!

You need to point your Document Root to /var/www/beta.grunt.com/htdocs

Go to LSWS Web Admin console -> Configuration -> Virtual Hosts -> BETA -> General -> General:
Document Root => /var/www/beta.grunt.com/htdocs

Make sure path /var/www/beta.grunt.com/htdocs is readable by web server user (i.e. nobody).
 

gkamp

Active Member
#7
Thank you very much. It knocked the number of errors:

2011-02-25 12:44:23.034 ERROR [config:template:centralConfigLog] Listener [Default] does not exist
2011-02-25 12:44:23.036 ERROR [config:template:EasyRailsWithSuEXEC] Listener [Default] does not exist
 

webizen

Well-Known Member
#8
These errors are no harm as long as your virtual host BETA is working.

If you want to get rid of these errors, do one of the followings:
1. Create a listener (Admin Console -> Configuration -> Listeners) called 'Default'.
or
2. Go to Virtual Host Templates (Admin Console -> Configuration -> Virtual Host Templates -> centralConfigLog/EasyRailsWithSuEXEC) and change Mapped Listeners to one of the existing listeners*.

* To find out existing listeners, go to Admin Console -> Configuration -> Listeners.
 

webizen

Well-Known Member
#13
VHR of VH Template is $SERVER_ROOT/$VH_NAME/. The one for virtual host can be the same or different (e.g. $SERVER_ROOT/actual_vhost_name/).

dev.* doesn't respond. Maybe you have firewall block it. Make sure VH (BETA) is added to your listener virtual host mappings with domains include dev.*).
 

gkamp

Active Member
#14
firewall doesn't matter right now. this is completely internal. I set the domain to *.grunt.com. If go to dev.grunt.com:8088 I get a blank screen.
 

webizen

Well-Known Member
#15
create a test file (e.g. phpinfo.php) under the vhost document root and request http://dev.grunt.com:8088/phpinfo.php to see if it works for you. if so, what version of PHP are you running?
$ cat phpinfo.php
<?php phpinfo(); ?>
$

also check error log when you request http://dev.grunt.com:8088 for any errors.

I suspect that you are still using the default php (with limited extensions) that comes with lsws. Your package requires a different php. If that's the case, you need to build new php in LSWS.
 

gkamp

Active Member
#16
http://dev.grunt.com:8088 is looking at the phpinfo.php file that is located at /usr/local/lsws/lsphp5/lib not the one located /var/www/dev.grunt.com/htdocs


We are using version PHP 5.3.5

No errors. But Notices:

2011-02-25 16:24:15.215 NOTICE [53284] Loading LiteSpeed/4.0.20 Standard ...
2011-02-25 16:24:15.257 NOTICE [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7829
2011-02-25 16:24:15.257 NOTICE Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
2011-02-25 16:24:15.261 NOTICE Recovering server socket: [*:8088]
2011-02-25 16:24:15.261 NOTICE Recovering server socket: [*:7080]
2011-02-25 16:24:15.262 INFO old priority: -19, new priority: -19
2011-02-25 16:24:15.262 INFO [config:server:basic] For better obscurity, server version number is hidden in the response header.
2011-02-25 16:24:15.291 NOTICE [PID: 53286]: start cgid: 53287, /usr/local/lsws/bin/httpd
2011-02-25 16:24:15.295 NOTICE The maximum number of file descriptor limit is set to 4096.
2011-02-25 16:24:15.300 INFO [config:vhost:BETA:logging] no separate logging set up.
2011-02-25 16:24:15.302 INFO [config:template:pHP_SuEXEC] Virtual host BETA already exists, skip template configuration.
2011-02-25 16:24:15.304 NOTICE litespeed (53286) is ready
2011-02-25 16:24:15.317 NOTICE [AutoRestarter] new child process with pid=53288 is forked!
2011-02-25 16:24:15.322 NOTICE [child: 53288] Successfully change current user to nobody
2011-02-25 16:24:15.322 NOTICE [Child: 53288] Core dump is enabled.
2011-02-25 16:24:15.324 NOTICE [Child: 53288] Setup swapping space...
2011-02-25 16:24:15.325 NOTICE [Child: 53288] LiteSpeed/4.0.20 Standard starts successfully!
2011-02-25 16:24:16.106 NOTICE [AutoUpdate] Checking for new releases..., pid=53291
2011-02-25 16:24:16.198 NOTICE Start to clean up cache directory, pid=53292
2011-02-25 16:24:16.226 INFO [AutoUpdate] No new update.
 
Last edited:

webizen

Well-Known Member
#17
It seems the document root for your virtual host (BETA) is still wrong. please paste your vhost config (i.e. /usr/local/lsws/BETA/conf/vhconf.xml) here.
 

webizen

Well-Known Member
#19
If that's all in there, then your vhost is missing a lot of stuff. You may want to re-create the vhost from web admin console or pm the server access for us to take a look.
 
Top