Jump to content

[SOLVED] php error


SetToLoki

Recommended Posts

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

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 :D

Link to comment
https://forums.phpfreaks.com/topic/162658-solved-php-error/#findComment-858454
Share on other sites

Archived

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

×
×
  • Create New...

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.