Virtual Host Settings not saving

cyberzen

Active Member
#1
Hi I just installed server, and I'm trying to set the virtual host

Document Root $VH_ROOT/html/ << from this to
Document Root $VH_ROOT/public_html <<to this

but I cant seem to get it to save, when I click apply changes on the top left hand corner, it then brings me to the service manager, where on the bottom page, under virtual hosts, I see all my virtual hosts as disabled. when i try clicking enable on the right hand column, it doesn't enable it!

Please help!
 

cyberzen

Active Member
#4
Hmm I did an upgrade when I ran ./install.sh, and now I can't even get to my server on any of my domains. Before the upgrade I could punch in any of my domains and it would go to the default "congragulations page you just installed Lsws"

I went into admin and tried to save the virtual host root, but still cannot save changes. When I try to apply changes it brings me back to service page, but now the service page has no formatting.

Please help
 

cyberzen

Active Member
#6
Ok I uninstalled lsws completely, then did a fresh installation of RC5, however Im still having problems in the admin interface. Is this due to javascript? I can never seem to apply changes!

I've tried on IE and firefox, both with javascript enabled
 

cyberzen

Active Member
#9
I can restart server, but when I try to enable virtual host or reload virtual host, then it just pops up the confirm box, but when I press ok, it doesn';t do anything after reloading the page.
 

mistwang

LiteSpeed Staff
#10
any thing in the error log?
Any firewall rules to block connections to port 7000-8000 on localhost?
Please check lsws/logs/stderr.log as well.
 
#11
got these from tail stderr.log

PHP Warning: socket_connect() unable to connect [111]: Connection refused in /opt/lsws/admin/html.2.0RC5/admin/scripts/Service.php on line 279
failed to connect to server!

PHP Warning: socket_connect() unable to connect [111]: Connection refused in /opt/lsws/admin/html.2.0RC5/admin/scripts/Service.php on line 279
failed to connect to server!

PHP Warning: socket_connect() unable to connect [111]: Connection refused in /opt/lsws/admin/html.2.0RC5/admin/scripts/Service.php on line 279
failed to connect to server!
 

mistwang

LiteSpeed Staff
#12
IPtable is configured to block connections to localhost on your server, I believe. Please change your firewall rule, otherwise, you have to restart lsws from command line.

Anything in lsws/logs/error.log?
 
#13
tail error.log

2005-01-19 14:50:06.220 [NOTICE] [AutoRestarter] child process with pid=2386 exited with status=0!
2005-01-19 14:50:12.300 [NOTICE] Reload configuration for virtual host zenhentai!
2005-01-19 14:50:12.301 [ERROR] [config:vhost:zenhentai] Path for document root is not accessible: /opt/lsws/zhentai/public_html/
2005-01-19 14:50:12.301 [ERROR] [config:vhost:zenhentai] configuration failed!

I tried changing the config for the document root to an absolute path to my home dir, but like I said can't modify it. I'll try modifying my firewall.
 

mistwang

LiteSpeed Staff
#14
Please check the permission of that directory, does that directory exist? it is a permission problem which is not related to the function of the web admin interface.
 
#16
Man, now my listener got problem

005-01-19 16:05:52.786 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2005-01-19 16:05:53.094 [ERROR] HttpListener::start(): Can't listen at address adminListener: Address already in use!
2005-01-19 16:05:53.094 [ERROR] HttpServer::addListener(adminListener) failed to create new listener
2005-01-19 16:05:53.094 [ERROR] [config:admin:listener:adminListener] failed to start listener on address *:7080!
2005-01-19 16:05:53.094 [ERROR] [config:admin:listener] No listener is available for admin virtual host!
2005-01-19 16:05:53.095 [ERROR] Fatal error in configuration, exit!
 
#20
I noticed this line in error.log

2005-01-19 16:30:54.926 [NOTICE] [ADMIN] server socket: 127.0.0.1:7777

how do I change the localhost address to hardcoded IP? I think this is the one causing problems
 
Top