You are not logged in.
I get this error after I follow the steps in this document on the arch wiki:
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Warning: Unknown: Failed opening '/home/httpd/html/index.php' for inclusion (include_path='.:/usr/share/pear') in Unknown on line 0
(document on wiki is: http://wiki2.archlinux.org/index.php/Ap … nd%20MySQL
What is this kind of error ??
Offline
i expect your apache running as nobody so try this on the file you're trying to access:
$ chown nobody /home/httpd/html/index.php
$ chmod u+r /home/httpd/html/index.php
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline
I hope I dont have to do that for every file I put in my webroot ?
Offline
well, you have to make sure the files you put there are at least readable by the user apache is running as. the default in arch is nobody.
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline
And how would one to that?
Offline
simple, don't chmod files. they should always automaticly be readable to anyone per default when you create them.
when you simply copy them over from somewhere else make sure the source file's permissions are like you expect your target to be. if you doubt that cp preserves the permissions run
$ cp -a source destination
this might only work as root though.
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline