Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Options set to none for my webroot directory. I also have a symmlink /var/coderoot -> /var/webroot/coderoot

In the php script I can do include("/var/coderoot/file"); and it works fine. Regardless of the option (yes I save and restart apache.) Does follow symlinks only apply to symlinks used in a certain way? Is there a performance loss using the include with a symmlink?

share|improve this question
up vote 1 down vote accepted

The Apache httpd option FollowSymLinks is only valid for Apache httpd and modifies only the web server's behavior. PHP (whether implemented as an Apache module or through CGI/FastCGI) does not know about this option at all.

From a pure technical standpoint, resolving the symbolic link and then opening the target file is a little more complicated than opening the target file directly but in practice you won't see a difference.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.