I'm on a CentOS 5.5 box trying to point the public_html directory to the latest app release. Symlinks are turned on and working okay in Apache. Here's an example of the issue:

symlink_foo => dir_baz

If dir_baz has an index.html file, it renders fine in the browser. If dir_baz has index.php, I get a 500 error. Both filetypes are set as index files.

suPHP and suExec are enabled.

This seems to be the same issue as this: Apache 500 Error When Using Symlinks, which was not solved.

Thanks!

link|improve this question
Post the relevant lines from your error log, 500 error could be anything from bad permissions to the script having an error. – sam May 17 '11 at 2:45
Thanks @samarudge.This was due to suPHP - symbolic links always have permissions of 777 and suPHP strictly enforces 755 on directories (and 644 for files). I switched PHP handlers to FastCGI and everything works. – Judd May 17 '11 at 3:06
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.