[PHP] Problems with the safe mode...

2002-08-26 Thread Sebastian Tomasino

Hi everyone...
I have some problem with the safe mode of php.
i get this errors when i try to access the file.
--
PHP Warning:  SAFE MODE Restriction in effect.  The script whose uid/gid 
is -1/-1 is not allowed to access data.txt owned by uid/gid 0/0 in 
/var/www/htdocs/ntfs/cap10/handlefile.php on line 7

PHP Warning:  fopen(data.txt, a+) - No such file or directory in 
/var/www/htdocs/ntfs/cap10/handlefile.php on line 7
-
I don´t know why uid-gid = -1/-1 ??. i che the user and permissions more 
than once and everything is ok. It´s seems like php not recognize the 
permissions of the script but yes recognize well the permissions of the 
data.txt.
Hi read that php 4.2.2 have alpha support for apache 2.0.39/40. is that it?

In my winXP configuration (apache 2.0.40 php 4.2.2) have the same 
problem but, when i switch from isapi mode and run php in the normal 
mode, recognize the correct file user/group permissions.
But in my slack 8.1 conf (apache 2.0.39 php 4.2.2) i dont know what to 
do... Any Ideas ???

Thanks for your help...
Sebastian


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




Re: [PHP] Problems with the safe mode...

2002-08-26 Thread @ Edwin
I'm not sure but...

Check your httpd.conf and see if you're running Apache as "Group -1". 
Change this to "nobody" or better yet make a new user/group (like 
apache/apache for example) for your Apache and change the lines-

  User nobody
  Group -1

to 

  User apache
  Group apache

Then, restart Apache after making the changes.

Also, try chmod(ing) 777 "data.txt" and see what happens... (You can even 
try changing the owner of "data.txt" itself...)

- E


Hi everyone...
I have some problem with the safe mode of php.
i get this errors when i try to access the file.
--
PHP Warning:  SAFE MODE Restriction in effect.  The script whose 
uid/gid is -1/-1 is not allowed to access data.txt owned by uid/gid 
0/0 in /var/www/htdocs/ntfs/cap10/handlefile.php on line 7

PHP Warning:  fopen("data.txt", "a+") - No such file or directory in 
/var/www/htdocs/ntfs/cap10/handlefile.php on line 7
-
I don$B%((Bt know why uid-gid = -1/-1 ??. i che the user and permissions 
more than once and everything is ok. It$B%((Bs seems like php not 
recognize the permissions of the script but yes recognize well the 
permissions of the data.txt.
Hi read that php 4.2.2 have alpha support for apache 2.0.39/40. is 
that it?

In my winXP configuration (apache 2.0.40 php 4.2.2) have the same 
problem but, when i switch from isapi mode and run php in the normal 
mode, recognize the correct file user/group permissions.
But in my slack 8.1 conf (apache 2.0.39 php 4.2.2) i dont know what 
to do... Any Ideas ???

Thanks for your help...
Sebastian


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




_
$B%O%$%;%s%9$J>$r5$7Z$K9XF~(B MSN $B%7%g%C%T%s%0(B http://shopping.msn.co.jp/


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