RE: [PHP] mkdir permission errors

2008-07-15 Thread Wolf
> 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? > > Alice Alice, At this point, you need to re-install the OS or prepare to get your machine completely hacked and trashed. With your permissions that badly screwed up, it

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
> > From: Robert Cummings [EMAIL PROTECTED] > Sent: Tuesday, July 15, 2008 12:16 PM > To: Wei, Alice J. > Cc: Peter Ford; php-general@lists.php.net > Subject: RE: [PHP] mkdir permission errors > > On Tue, 2008-07-15 at 08:16 -0

RE: [PHP] mkdir permission errors

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 12:19 -0400, Wei, Alice J. wrote: > > From: Robert Cummings [EMAIL PROTECTED] > Sent: Tuesday, July 15, 2008 12:16 PM > To: Wei, Alice J. > Cc: Peter Ford; php-general@lists.php.net > Subject: RE: [PHP] mkdir permiss

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Robert Cummings [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 12:16 PM To: Wei, Alice J. Cc: Peter Ford; php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote: > This portion

RE: [PHP] mkdir permission errors

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote: > This portion is to answer Rob's question: > > [EMAIL PROTECTED] 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 acc

Re: [PHP] mkdir permission errors

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 09:06 +0100, Peter Ford wrote: > Wei, Alice J. wrote: > > Hi, Rob: > > > > I forgot to mention that I have been using yum install. > > I have reinstalled the entire thing, put back all the packages, and then > > I went to /var and did a chmod -R 777 var, and then did a >

Re: [PHP] mkdir permission errors

2008-07-15 Thread Wolf
Daniel Brown <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 7:05 AM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > > > > Do I really have to reinstall the entire Fedora? > > You may be a prime candidate for Windows. Well, you *could* load Fedora on another machine, fully update it, a

Re: [PHP] mkdir permission errors

2008-07-15 Thread Daniel Brown
On Tue, Jul 15, 2008 at 7:05 AM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > > Do I really have to reinstall the entire Fedora? You may be a prime candidate for Windows. -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, V

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: > > -Original Message- > From: Peter Ford [mail

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: > > -Original Message- > From: Peter Ford [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 1

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM To: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
-Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM To: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: > Hi, Rob: > > I forgot to mention that I have been using yum install. &

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I have reinstalled the entire thing, put back all the packages, and then I went to /var and did a chmod -R 777 var, and then did a [EMAIL PROTECTED] var]# chown -R apache:apache . Interestingly, I do

RE: [PHP] mkdir permission errors

2008-07-14 Thread Robert Cummings
On Mon, 2008-07-14 at 22:09 -0400, Wei, Alice J. wrote: > > This is the output I have got from using your script. > > I have made a following quick change: > > > > [EMAIL PROTECTED] var]# chown -R root:root . > > > > Not surprisingly, I am still not able to make a new directory using PHP > > with

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
> This is the output I have got from using your script. > I have made a following quick change: > > [EMAIL PROTECTED] var]# chown -R root:root . > > Not surprisingly, I am still not able to make a new directory using PHP with > the HTTP. > Could there be anything else I missed? I knew who you wer

RE: [PHP] mkdir permission errors

2008-07-14 Thread Robert Cummings
On Mon, 2008-07-14 at 16:45 -0400, Wei, Alice J. wrote: > Hi, Wolf: > > Like I guessed, I am still defined as the root user. > > [EMAIL PROTECTED] html]# php test.php > root > root/var/www/html > /var/www/html > > This is the output I have got from using your script. > I have made a following

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wolf
Alice: Bottom post like everyone else... "Wei wrote: > Hi, Wolf: > > Like I guessed, I am still defined as the root user. > > [EMAIL PROTECTED] html]# php test.php > root > root/var/www/html > /var/www/html > > This is the output I have got from using your script. > I have made a follow

Re: [PHP] mkdir permission errors

2008-07-14 Thread Daniel Brown
On Mon, Jul 14, 2008 at 4:45 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] html]# php test.php > root > root/var/www/html > /var/www/html Stop testing from the CLI when you need to see results for HTTP then. -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starti

Re: [PHP] mkdir permission errors

2008-07-14 Thread Daniel Brown
On Mon, Jul 14, 2008 at 4:37 PM, Wolf <[EMAIL PROTECTED]> wrote: > > $whoami=system('whoami'); > echo $whoami; > > $pwd=system('pwd'); > echo $pwd; > > That should tell you what ID you are and the path you are in. Conversely, so will this method: -- Dedicated Servers - Intel 2.4GHz w/2TB

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
] From: Wolf [EMAIL PROTECTED] Sent: Monday, July 14, 2008 4:37 PM To: Wei, Alice J. Cc: Robert Cummings; php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors "Wei wrote: > Hi, Rob: > > I forgot to mention that I have been using yum insta

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wolf
"Wei wrote: > Hi, Rob: > > I forgot to mention that I have been using yum install. > I have reinstalled the entire thing, put back all the packages, and then I > went to /var and did a chmod -R 777 var, and then did a > >[EMAIL PROTECTED] var]# chown -R apache:apache . > > Interes

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
et Subject: RE: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:49 -0400, Wei, Alice J. wrote: > Hi, Rob: > > I did follow the instruction of putting in chown apache:apache htdocs. Now > when I run the ls -la command, I get this: > > [EMAIL PROTECTED] apache]# ls -la >

RE: [PHP] mkdir permission errors

2008-07-14 Thread Robert Cummings
On Mon, 2008-07-14 at 15:49 -0400, Wei, Alice J. wrote: > Hi, Rob: > > I did follow the instruction of putting in chown apache:apache htdocs. Now > when I run the ls -la command, I get this: > > [EMAIL PROTECTED] apache]# ls -la > total 68 > drwxr-xr-x 15 root root4096 2008-06-24 09:36 .

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:42 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:37 -0400, Wei, Alice J. wrote: > Hi, Rob: > > He

RE: [PHP] mkdir permission errors

2008-07-14 Thread Robert Cummings
On Mon, 2008-07-14 at 15:37 -0400, Wei, Alice J. wrote: > Hi, Rob: > > Here is the updated version from the correct command: > > [EMAIL PROTECTED] htdocs]# ps awxu | grep -E 'apache|httpd' > root 30957 0.0 0.5 27576 11016 ?Ss 14:27 0:00 > /usr/sbin/httpd > apache 30959 0.

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
PROTECTED] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:35 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:23 -0400, Wei, Alice J. wrote: > Hi, Rob: > > This is the output: >

RE: [PHP] mkdir permission errors

2008-07-14 Thread Robert Cummings
On Mon, 2008-07-14 at 15:23 -0400, Wei, Alice J. wrote: > Hi, Rob: > > This is the output: > > root 31232 0.0 0.0 4120 672 pts/1R+ 15:22 0:00 grep > apache|httpd > > Does this help? Sorry... my bad, can you do the following: ps awxu | grep -E 'apache|httpd' I hav

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
[EMAIL PROTECTED] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:21 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:11 -0400, Wei, Alice J. wrote: > Hi, > &g

RE: [PHP] mkdir permission errors

2008-07-14 Thread Robert Cummings
On Mon, 2008-07-14 at 15:11 -0400, Wei, Alice J. wrote: > Hi, > >The apache is running currently on root as the user. >The parent directory, test, is set to 0755. These are permissions btw, and not ownerships. Ownerships denote user and group owners of the directory... specifically the e

RE: [PHP] mkdir permission errors

2008-07-14 Thread Robert Cummings
On Mon, 2008-07-14 at 15:11 -0400, Wei, Alice J. wrote: > Hi, > >The apache is running currently on root as the user. >The parent directory, test, is set to 0755. >I have no problems making new directories directly from the terminal > prompt, and it does not give me user execution er

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
University Bloomington [EMAIL PROTECTED] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:07 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:01 -0400, Wei, Alice J

Re: [PHP] mkdir permission errors

2008-07-14 Thread Robert Cummings
On Mon, 2008-07-14 at 15:01 -0400, Wei, Alice J. wrote: > Hi, Guys: > >I have a very strange incident here that may seem very stupid. Since the > power went out last night, I have restarted my server. However, now the > permission is never working right. I have set the permission of my htdoc

[PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
Hi, Guys: I have a very strange incident here that may seem very stupid. Since the power went out last night, I have restarted my server. However, now the permission is never working right. I have set the permission of my htdocs folder iof my Apache server to 0755, and then started executing