Jump to content

Issue with apache following symlinks


Crazytje

Recommended Posts

I've just reinstalled Apache with php on my centos server and for some reason it's not following symlinks.

 

The error that's in the error log is:

Symbolic link not allowed or link target not accessible: /var/www/html/test

 

I just do what I've always done in the past, my httpd.conf settings:

 

 

User apache

Group apache

 

DocumentRoot "/var/www/html"

 

<Directory />

    Options FollowSymLinks

    AllowOverride All

</Directory>

 

<Directory "/var/www/html">

    Options FollowSymLinks Indexes

 

    AllowOverride All

 

    Order allow,deny

    Allow from all

</Directory>

 

 

The symlink in /var/www/html

lrwxrwxrwx 1 apache apache  28 Dec 27 10:40 test -> /usr/local/site/test/

 

for testing i did a chmod 0777 on the directory, and everything is owned by apache.

 

What am I missing here?, It always worked in the past.

 

 

I hope someone can help, using google turned up nothing :(

Link to comment
https://forums.phpfreaks.com/topic/138563-issue-with-apache-following-symlinks/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.