Jump to content


This topic is now archived and is closed to further replies.


error on LAMP localhost, plz help :-)

Recommended Posts

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Warning: Unknown: Failed opening '/var/www/00/index.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

this page works fine at [url=http://listenlight.net/00/]http://listenlight.net/00/[/url]  but on my localhost (default ubuntu LAMP) it throws that error.  all the other pages work fine, and the code/markup is nearly identical.  thank you kindly for your time

Share this post

Link to post
Share on other sites
Hi, it's a permission problem.

In the shell type the following commands
[code]chmod -R 777 /var/www
chown www-data:www-data /var/www[/code]
It should be /var/www if it's the LAMP from Ubuntu.

NOTE: You have to be root to use these functions there. If you a using Ubuntu you may prepend 'sudo'.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.