Wednesday, July 7, 2010

deploy with Capistrano raise "Symbolic link not allowed or link target not accessible:" when access on site using SUSE 11.1 Linux

When i'm deploying my project to server, i can't access the site (Forbidden Access) then i check the log file at > tail -f /var/log/apache2/error_log
there are raise something like this "Symbolic link not allowed or link target not accessible:". I had tried everything, change owner, change permissions, set "Options FollowSymlinks" in my Vhost conf.. etc, but it didn't work.

Next, i'm checking conf at httpd.conf.. wahh there are got thing wrong script, like the following.

> vi /etc/apache2/httpd.conf



# forbid access to the entire filesystem by default
<directory>
    Options None 
    AllowOverride None
    Order deny,allow
    Deny from all
</directory>

"Options None", it's should be "FollowSymlinks".
Well, the solution i must change a line script below:

# forbid access to the entire filesystem by default
<directory>
    Options FollowSymlinks
    AllowOverride None
    Order deny,allow
    Deny from all
</directory>

Final, next i just to restart my server

> /etc/init.d/apache2 restart

It's All.. hope helpful.

No comments:

Post a Comment