I've created a link like this:
/var/log/httpd/access_log -> /var/www/html/mylog.txt
with the command:
ln -s /var/log/httpd/access_log /var/www/html/mylog.txt
I have made sure that the following files/directories can be read (0666):
/var/
/var/log/
/var/log/httpd/
/var/log/httpd/access_log
/var/www
/var/www/html
/var/www/html/mylog.txt
But even so, when I try to access mylog.txt
I get a 403:
Forbidden
You don't have permission to access /mylog.txt on this server.
I've tried other methods like:
readfile("/var/log/httpd/access_log");
echo file_get_contents("/var/log/httpd/access_log");
However, within PHP, they both return false.
I'm sure I got all the permissions right though. What am I doing wrong?