Re: safe mode problem
| From: | Chris Hayes | Date: | Mon, 03 Feb 2003 11:13:43 +0000 |
| Subject: | Re: safe mode problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134099@lists.php.net to get a copy of this message | ||
At 11:39 3-2-03, you wrote:
what you did should work (you must be root to change owner). You can use -R switch to change owner recursively Gurvinder Singh wrote:Safe mode writes files with chmod 750, so now effectively 0 for the php script that tries to reach it. In stead of chowning, you can also chmod the file to read (file.php) to 777, if you do not mind the security too much, if possible take the file out of the www directory. I have a big problem with safe mode now with a script that needs to create subdirectories itself, so with every new added course i would need to go and change the chmod by FTP.hi i create a php page dynamically in my php script. this page include one of my other php file. when i run the newly created script i get this error Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access file.php owned by uid 831 Is there a way to handle this. i even tried chown to change the newly created file's owner to be 831 but it doesnt seem to work I think you did it just the wrong way round, the way i read it the owner of the file you wanted to read already was 831, so try to chown it to 48.