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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [Solved] Symlink issue after app build process

Reply
 
Thread Tools Display Modes
  #1  
Old 06-09-2011, 01:46 PM
djl djl is offline
New Member
 
Join Date: Apr 2011
Posts: 5
Default [Solved] Symlink issue after app build process

For some reason we're not able to get LSWS to follow symlinks our deployment script sets. Symlinks work okay when set initially, but not when changed. (We're using Capistrano for a PHP app if that helps.)

Our symbolic links are set up as follows:
  • public_html => current/public
  • current => releases => latest

ls -la shows that the symlinks are set properly, however the content shown to the user is from an earlier build. A graceful restart doesn't get it to 'take.' I don't know if it's some sort of caching issue.

The same script is working fine on our dev server that runs Apache and has identical OS, packages, etc.

Running LSWS: 4.0.20 / CentOS 5.6 / WHM 11.3b27

Any help greatly appreciated!
Reply With Quote
  #2  
Old 06-09-2011, 02:41 PM
djl djl is offline
New Member
 
Join Date: Apr 2011
Posts: 5
Default Fixed via restart config

I wasn't triggering the restart properly.

In case this helps somebody in the future:
  • Add your user to your sudoers file w/ appropriate abilities
  • Comment out "Defaults requiretty" in your sudoers file
  • Add "default_run_options[ty] = true" to your Capfile
Reply With Quote
Reply

Tags
deployment, symlinks

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 08:20 PM.



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