RE: mkdir permission errors

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

 



On Tue, 2008-07-15 at 12:19 -0400, Wei, Alice J. wrote:
> ________________________________________
> From: Robert Cummings [robert@xxxxxxxxxxxxx]
> Sent: Tuesday, July 15, 2008 12:16 PM
> To: Wei, Alice J.
> Cc: Peter Ford; php-general@xxxxxxxxxxxxx
> Subject: RE:  mkdir permission errors
> 
> On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote:
> > This portion is to answer Rob's question:
> >
> > [root@localhost var]# ls -la
> > total 92
> > drwxrwxrwx 22 root root 4096 2008-06-24 08:34 .
> > drwxr-xr-x 21 root root 4096 2008-07-14 08:17 ..
> > drwxrwxrwx  2 root root 4096 2008-06-24 08:25 account
> > drwxrwxrwx 13 root root 4096 2008-07-14 16:07 cache
> > drwxrwxrwx  2 root root 4096 2008-02-19 20:47 cvs
> > drwxrwxrwx  3 root root 4096 2008-06-24 08:25 db
> > drwxrwxrwx  3 root root 4096 2008-06-24 08:29 empty
> > drwxrwxrwx  2 root root 4096 2008-04-07 17:44 games
> > drwxrwxrwx  2 root root 4096 2008-05-01 22:45 gdm
> > drwxrwxrwx 35 root root 4096 2008-07-14 16:07 lib
> > drwxrwxrwx  2 root root 4096 2008-04-07 17:44 local
> > drwxrwxrwx  5 root root 4096 2008-07-15 04:10 lock
> > drwxrwxrwx 17 root root 4096 2008-07-15 04:10 log
> > lrwxrwxrwx  1 root root   10 2008-06-24 08:24 mail -> spool/mail
> > drwxrwxrwx  6 root root 4096 2008-06-24 08:26 named
> > drwxrwxrwx  2 root root 4096 2008-04-07 17:44 nis
> > drwxrwxrwx  2 root root 4096 2008-04-07 17:44 opt
> > drwxrwxrwx  2 root root 4096 2008-04-07 17:44 preserve
> > drwxrwxrwx 27 root root 4096 2008-07-14 16:12 run
> > drwxrwxrwx 13 root root 4096 2008-06-24 08:35 spool
> > drwxrwxrwx  2 root root 4096 2008-07-14 16:10 tmp
> > drwxrwxrwx  8 root root 4096 2008-07-14 16:07 www
> > drwxrwxrwx  3 root root 4096 2008-06-24 08:29 yp
> 
> Umm... all your base are bel^H^H^H^H^H^H^H^H^H^H^H^H
> 
> Umm, you've made your entire system world readable/writeable? That's not
> good. And the ownership of www is root, not apache. Change directory to
> www and do ls -al again. Maybe your html directory is ok for ownerships.
> 
> > And does your PHP script have the correct path?
> >
> > This is the latest error I got:
> >
> > Warning: mkdir() [function.mkdir]: Permission denied in /var/www/html/file_linux.php on line 15
> > Cannot create directory
> 
> The error indicates what script is generating the error. Not the path to
> the directory you want to create. Maybe echo the name of the directory
> you are trying to create when you get a failure for mkdir().
> 
> Nope, I have set mine to 755, and it does not seem to be giving me any errors. This is the safer way to do it, right?

755 are better permissions in general than 777, but to what does "mine"
refer in the above context?

Cheers,
Rob.

Ps. what's wrong with your mail client? It doesn't quote content to
which you reply making it difficult to see where the previous person's
post ends and your response begins.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux