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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Virtual Host Settings not saving

Reply
 
Thread Tools Display Modes
  #21  
Old 01-19-2005, 06:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The permission should be set properly not only for public_html, but also for all of its parent directories, the user that the web server running as should be able to access that directory.

Your changes has been saved to the configuration file, but "public_html" is not accessible, error log shows that already.

For the failed listener problem, please do "killall lshttpd" from command line to make sure all lshttpd process had stoped.
check if any application using port "7080", do "netstat -an | grep 7080".
Reply With Quote
  #22  
Old 01-19-2005, 06:19 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by cyberzen
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
You cannot and it is not the problem.
The problem is that your firewall rule blocks connections to that address, so you can not apply changes from admin interface.

Your changes made in the admin interface has been saved to configuration file, what you need is just a manual restart from command line.

Then the permission of "/opt/lsws/zhentai/public_html/" is not set properly somewhere alone the path, so lshttpd can not access that directory, fix the permssion problem, then restart web server, you problem should be solved.

Those two problems does not related to each other, you need to fix them one by one. :-)
Reply With Quote
  #23  
Old 01-19-2005, 07:58 PM
cyberzen cyberzen is offline
Member
 
Join Date: Sep 2004
Posts: 29
Ok I turned off my firewall, and also chmod my entire home dir to 777, I reinstalled lsws to home dir under /home/lsws

Basically what I do after install if, I copy the dir DEFAULT to whatever name my domain is like mydomain dir, then I acces web admin and I configure the paths.

I was able to setup one listener, but the rest are not running, virtual hosts are up now tho. It just doesnt seem to be mapping correctly.

Am I doing something wrong?

[/img]
Reply With Quote
  #24  
Old 01-19-2005, 08:03 PM
cyberzen cyberzen is offline
Member
 
Join Date: Sep 2004
Posts: 29
Ok I found out whats wrong, even though I specified document root for one of my domains to be

/home/mydomain/public_html

it's still pointing doc root to

/home/lsws/mydomain/html

why? I've double checked my settings in the web admin and doc root is set to /home/mydomain/public_html
Reply With Quote
  #25  
Old 01-19-2005, 08:53 PM
cyberzen cyberzen is offline
Member
 
Join Date: Sep 2004
Posts: 29
Yay finally got one of my domains working! However my other listeners are still not working for my other domains

Also I still don't understand why my doc root is still going to /home/lsws/zhentai/html

basically to get it to work I just copied my html files over, so its just a stop gap fix, what i'd really want is to specify that my doc root goes to

/home/zhentai/public_html

any suggestions?
Reply With Quote
  #26  
Old 01-19-2005, 09:42 PM
cyberzen cyberzen is offline
Member
 
Join Date: Sep 2004
Posts: 29
Another problem, is that I put in index.html,index.htm for the index files in general server settings, but when I enter http://mydomain.com/subdir i still cannot access the index.htm file.
Reply With Quote
  #27  
Old 01-19-2005, 09:48 PM
cyberzen cyberzen is offline
Member
 
Join Date: Sep 2004
Posts: 29
YAY finally managed to get everything to work!! Thanks for all your help dude.
Reply With Quote
  #28  
Old 01-19-2005, 09:48 PM
cyberzen cyberzen is offline
Member
 
Join Date: Sep 2004
Posts: 29
BTW found the answer for the index prob, I had to specify in the virtual host setting to use the server setting.
Reply With Quote
  #29  
Old 01-19-2005, 10:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by cyberzen
Yay finally got one of my domains working! However my other listeners are still not working for my other domains
Are those listeners started properly, is the listener to vhost mapping set properly? Please check the error log and make proper adjustment.


Quote:
Also I still don't understand why my doc root is still going to /home/lsws/zhentai/html

basically to get it to work I just copied my html files over, so its just a stop gap fix, what i'd really want is to specify that my doc root goes to

/home/zhentai/public_html

any suggestions?
Make sure permissions for /home and /home/zhentai are set properly in addition to public_html, if those files are owned by another user, then you should let nobody join the group of that user. You really need to read some document and have a good understanding of Unix security model. ;-)
Reply With Quote
  #30  
Old 01-20-2005, 04:13 AM
cyberzen cyberzen is offline
Member
 
Join Date: Sep 2004
Posts: 29
Its a dedicated server, plus I have 34wldsf;ksdf90 password heh
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Host List Not Updating on CP ryanwood Bug Reports 3 04-17-2007 10:48 AM
Virtual Host Mappings mghaught Install/Configuration 2 02-12-2007 07:48 PM
chroot virtual host possible with php? sofatime Install/Configuration 19 07-20-2006 11:07 PM
Virtual host can not be enabled, reload first! mega023 Bug Reports 6 05-15-2006 09:09 PM
Help setting up reverse proxy virtual host joe Install/Configuration 4 11-23-2005 12:33 PM


All times are GMT -7. The time now is 08:35 AM.



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