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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Help?!? LSWS no longer recognizing any of my folders as present?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2009, 11:24 PM
jdash jdash is offline
Member
 
Join Date: Jul 2007
Posts: 11
Exclamation Help?!? LSWS no longer recognizing any of my folders as present?

I have several different domains served up on my server by lsws went to the control panel to add another added to the PHP Virtual Host Template went to Instantiate and it kept telling me the folder was not valid for the host root. After trying several times deleting, re-adding, etc. I went and clicked over to one of my existing domains and this is the error I am getting on every single one of them:

/home/username/sites/domain.com/config/domain.com.xml is not a valid file.

I checked the server settings still configured to use the www-data user group which the entire "sites" folder is configured under, I haven't changed anything with these folders, but all of a sudden they are "invisible" to LSWS.

Help greatly appreciated!
Reply With Quote
  #2  
Old 08-26-2009, 03:24 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
are you using latest 4.0.10?
Reply With Quote
  #3  
Old 08-26-2009, 06:32 AM
xendex xendex is offline
New Member
 
Join Date: May 2009
Location: Ukraine
Posts: 9
Yes, I have the same problem with 4.0.10. I think that this happens due to AdminWebConsole suexec mode - so AWC cannot access vhost configuration files that are outside SERVER_ROOT, though server process can read them fine.
Here is what admin console error.log is showing:
Code:
2009-08-26 14:22:02.634 [NOTICE] [MY_IP_ADDRESS:3730-3#_AdminVHost] [STDERR] PHP Warning:  is_file() [<a href='function.is-file'>function.is-file</a>]: Stat failed for /[path to con-file outside server root]/conf.xml (errno=13 - Permission denied) in /usr/local/lsws/admin/html.4.0.10/classes/XmlTreeBuilder.php on line 13
2009-08-26 14:22:02.647 [NOTICE] [MY_IP_ADDRESS:3730-3#_AdminVHost] [STDERR] /[path to con-file outside server root]/conf.xml is not a valid file.
Sounds like a bug...
Reply With Quote
  #4  
Old 08-26-2009, 07:00 AM
jdash jdash is offline
Member
 
Join Date: Jul 2007
Posts: 11
Yes, I am using 4.0.10, in fact I redownloaded it from here and ran a manual upgrade just to make sure (all before I posted here)
Reply With Quote
  #5  
Old 08-26-2009, 07:09 AM
jdash jdash is offline
Member
 
Join Date: Jul 2007
Posts: 11
I pulled up my error log getting the same thing:

Code:
2009-08-26 00:17:41.862 [NOTICE] [ipaddress-3#_AdminVHost] [STDERR] PHP Warning:  is_file() [<a href='function.is-file'>function.is-file</a>]: Stat failed for /**path to config**/config/domain.com.xml (errno=13 - Permission denied) in /usr/local/lsws/admin/html.4.0.10/classes/XmlTreeBuilder.php on line 13
2009-08-26 00:17:41.862 [NOTICE] [ipaddress-3#_AdminVHost] [STDERR] /**path to config**/config/domain.com.xml is not a valid file.

Last edited by jdash; 08-26-2009 at 07:14 AM..
Reply With Quote
  #6  
Old 08-26-2009, 07:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You need to update the file ownership and permission as the admin console is running in suEXEC mode with 4.0.10.

make the configuration file owned by "lsadm" and make sure lsadm user/group can access the directory holding the configuration file.
Reply With Quote
  #7  
Old 08-26-2009, 08:34 AM
xendex xendex is offline
New Member
 
Join Date: May 2009
Location: Ukraine
Posts: 9
Thanks, mistwang, that solves the problem.
Just note, that it's needed to change owner(to lsadm) not only for the conf-file, but also for the destination folder that cantains this file.
Reply With Quote
  #8  
Old 08-26-2009, 01:48 PM
jdash jdash is offline
Member
 
Join Date: Jul 2007
Posts: 11
Any security reason not to just add the lsadm user to the www-data group? That fixes the issue as well.
Reply With Quote
  #9  
Old 08-27-2009, 10:42 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Yes, you can do that.
You still need to change the owner of configuration files to lsadm, otherwise, it cannot be changed via web console.

The purpose of this is to prevent the user/group that lshttpd run as to access any configuration file, only the web console can.
Reply With Quote
  #10  
Old 08-27-2009, 05:31 PM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
How do I disable this or downgrade? My file permissions are just fine as-is.

Also, I would like to ask you to properly document such changes in the version history, because for me 'changing the admin to suExec' does not mean add a new user and require changing the file permissions on a zillion vhosts.

Thanks.
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


All times are GMT -7. The time now is 09:59 PM.



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