Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.