httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Peng" <jeffp...@gmx.net>
Subject Re: [users@httpd] Apache Permmisions error
Date Fri, 24 Aug 2007 02:05:50 GMT

-------- Original-Nachricht --------
> Datum: Thu, 23 Aug 2007 18:49:33 -0700 (PDT)
> Von: John Wyatt <jbwyatt4@yahoo.com>
> An: users@httpd.apache.org
> Betreff: [users@httpd] Apache Permmisions error

> Hey folks, i'm coding a php blog from a IBM's developerWorks tutorial and
> I get this error with permissions.
> 
> Main blog page
> 
>  
>  Warning:  mkdir() [function.mkdir]: Permission denied in
> /home/www/edit/index.php on line 9
>  
>  Warning:  fopen(../blogs/Aug 2007/Aug 23 2007 18 13) [function.fopen]:
> failed to open stream: No such file or directory in /home/www/edit/index.php
> on line 11
>  
>  Warning:  fwrite(): supplied argument is not a valid stream resource in
> /home/www/edit/index.php on line 12
>  
>  Warning:  fclose(): supplied argument is not a valid stream resource in
> /home/www/edit/index.php on line 13
>  Blog entry saved/updated
> 
> 

This is most likely because PHP doesn't have the privileges to read/write special directory
or files.By default apache/php are running as nobody user,so at first you take a look at that
php program to find out which directory/file it try to access,then set the correct privileges
to that directory/file.

Under unix,you can use 'chmod' or 'chown' to ajust the privileges on dir/files.

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message