SetToLoki Posted June 17, 2009 Share Posted June 17, 2009 I have set up a ubuntu server running php5 on lamp all went well untill I make a page containg php all I did was <? echo "test"; ?> and I recived this error Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/test.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0 I have set permissions on my www folder to 777 so I can ftp to it. if that helps? the installation is default all the way through haven'yt touched php.ini etc I have set up a virtual host on a seperate port that is having the same issues aswell. any help appriciated Link to comment https://forums.phpfreaks.com/topic/162658-solved-php-error/ Share on other sites More sharing options...
SetToLoki Posted June 17, 2009 Author Share Posted June 17, 2009 I have set up a ubuntu server running php5 on lamp all went well untill I make a page containg php all I did was <? echo "test"; ?> and I recived this error Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/test.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0 I have set permissions on my www folder to 777 so I can ftp to it. if that helps? the installation is default all the way through haven'yt touched php.ini etc I have set up a virtual host on a seperate port that is having the same issues aswell. any help appriciated chmoded files back to 755 Link to comment https://forums.phpfreaks.com/topic/162658-solved-php-error/#findComment-858454 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.