PHP symlink (symbolic link) is giving 500 errors

Problem:

When creating a symlink to a php page, I get a 500 error. I am able to use symlinks to other files and folders fine.

Solution:

We do not allow symlinking PHP files on our server, as this could cause security issues. There is not a way around this unfortunately, even if you parse HTML as application/x-httpd-php. You will be able to symlink to other files and folders, only PHP should give you the error.

  • 27 Users Found This Useful
Was this answer helpful?

Related Articles

Configuring the PHP Environment With php.ini

Problem: How do I change the PHP environment for my site with php.ini? Solution:   To...

PHP with FastCGI

Problem: What is FastCGI for PHP? Solution: FastCGI for PHP makes all your PHP applications...

Upload_Max_Filesize

Problem: How do I change my upload_max_filesize? Solution: Summary Locate the php.ini...

Cron Jobs with PHP Files

How do I run a php file using Cron jobs?   From the cPanel, click the Cron Jobs icon and enter...

Basic Site Security Checklist

Remove malicious files and/or files you are not familiar with. While many PHP applications...