Re: Apache Permmisions error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-------- Original-Nachricht --------
> Datum: Thu, 23 Aug 2007 18:49:33 -0700 (PDT)
> Von: John Wyatt <jbwyatt4@xxxxxxxxx>
> An: users@xxxxxxxxxxxxxxxx
> Betreff:  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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux