Permission denied when opening localhost
localhost, permissions, php, ubuntu
Solution
According to this article, you need to give read/execute permissions to Owner, Group, and Everyone.
Set permissions on the problem file to 777. Note, you should avoid doing this on a server that's accessible from the internet.
http://webomania.wordpress.com/2007/03/12/permission-denied-in-unknown-on-line-0/
Problem
I had recently installed Apache, PHP and MySQL in Ubuntu. And copied the files I created to the `var/www` directory. But when I open `http://localhost` it is showing Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0 How can I run my project normally? It was working fine in windows.