hey , yesterday i installed fresh apache and php in CentOs 5.5 pc ,

my problem is my php is not working well ,, every time showing errors .....how i solve this error please help me ...
for eg:
while i run a simple code snippet

<?php

echo "php execution is ok";

?>

showing an error

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

Fatal error: Unknown: Failed opening required '/var/www/html/as.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0

what i need to do ?

Recommended Answers

All 2 Replies

Hi remshad! I think its a permission issue. You need to change permission settings on your www or html or both.

Hi remshad! I think its a permission issue. You need to change permission settings on your www or html or both.

i am beginer ....

can you please help to change permission ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.