php fopen

Lars Seipel lars.seipel at gmail.com
Wed Aug 13 22:57:44 UTC 2014


On Wed, Aug 13, 2014 at 07:33:43PM +0200, Daniel Leveque wrote:
> *Warning*: fopen(guestbook.txt): failed to open stream: Permission denied in
> */var/www/html/IAAM/guestbook/index.php*

You might want to ask such questions on the users list as this list is
intended for discussion regarding the development of the Fedora server
variant, not for general server questions.

Anyway, the path you are passing to fopen appears to be just
"guestbook.txt"? This would try to open the file guestbook.txt in the
working directory of the running process (the httpd, presumably). Are
you sure you have write permissions there?

Try passing an absolute path to the appropriate file and also check the
audit log for SELinux AVCs. Journalctl should show you those, too, I
think.

Lars


More information about the server mailing list