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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Issue with symbolic links?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2007, 09:52 AM
vanne vanne is offline
New Member
 
Join Date: Nov 2006
Posts: 5
Default Issue with symbolic links?

Is there an issue with symlinks in the latest version (3.0.3) of Litespeed ? For some reason when I try to add a new virtual host under the EasyRailsWithSuEXEC template, it gives me the following error:


Code:
Warning: is_dir() [function.is-dir]: Stat failed for /home/www/rails/my_app/current (errno=13 - Permission denied) in /opt/lsws/admin/html.3.0.3/classes/ConfValidation.php on line 571
and on top of the VH input:

Code:
*path /home/www/rails/my_app/current does not exist. Please create manually.
the path : /home/www/rails/my_app/current points to a symlink created by capistrano, this worked with previous versions of LS and now for some odd reason it doesn't seem to work.

It works fine when I point the VH to a standard directory. I thought it was a permissions issues so I checked the permissions and I even chmod 755 -R on the whole directory just to make sure and it still didn't even work. Any help would be appreciated.

Thanks,

--
Vann
Reply With Quote
  #2  
Old 04-28-2007, 11:05 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Have you checked the permission of the symbolic link itself as well as its parent directories?
Reply With Quote
  #3  
Old 04-29-2007, 12:23 PM
vanne vanne is offline
New Member
 
Join Date: Nov 2006
Posts: 5
I just set 755 permissions on all directories and the symlink in there and it is still giving me those issues. Think I should just downgrade?
Reply With Quote
  #4  
Old 04-29-2007, 12:36 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You can try downgrade, but I think it will not help.
It still looks like a permission issue to me, you can try something like
Code:
sudo -u <user_lshttpd_run_as> ls /home/www/rails/my_app/current
See what do you get.
Reply With Quote
  #5  
Old 04-29-2007, 02:02 PM
vanne vanne is offline
New Member
 
Join Date: Nov 2006
Posts: 5
I get :

Code:
/bin/ls: /home/www/rails/my_app/current/: Permission denied
Reply With Quote
  #6  
Old 04-29-2007, 05:13 PM
vanne vanne is offline
New Member
 
Join Date: Nov 2006
Posts: 5
I Figured out the problem, I had set my deploy_to path in my cap recipe to a symlink'd path within my user path that I use when logged in via ssh. So when trying to 'ls' on the deployed path with the lsws_user it would deny permission, I simply changed the deployed path to the absolute path without any symlinks involved and it worked! Thanks for your help anyways I really appreciated it.
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 06:11 PM.



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