Jump to content


Photo

error on LAMP localhost, plz help :-)


  • Please log in to reply
1 reply to this topic

#1 tefflox

tefflox
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 08 July 2006 - 03:54 AM

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 http://listenlight.net/00/  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

#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 08 July 2006 - 05:35 AM

Hi, it's a permission problem.

In the shell type the following commands
chmod -R 777 /var/www
chown www-data:www-data /var/www
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'.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users