Re: 404 ErrorDocument in safe mode
| From: | Petr Kodytek | Date: | Fri, 14 Oct 2005 09:21:39 +0000 |
| Subject: | Re: 404 ErrorDocument in safe mode | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224109@lists.php.net to get a copy of this message | ||
darren kirby wrote:
quoth the Petr Kodytek:It looks like a different access method to the script on 404 error. I've tryed to create 404 script by other php script (to get server process uid on file), but it's still not working. -- kodyHallo, I've problem with 404 ErrorDocument in safe mode on version 5.1.0RC1. I'm using error script to redirect nonexisting URLs to pages with content from database (something like mod_rewrite). After when my webhosting provider upgrades to 5.1.0RC1 my pages returns this error message : =========================================================================== ===================== *Warning*: Unknown: SAFE MODE Restriction in effect. The script whose uid is 46790 is not allowed to access /path/to/404.phtml owned by uid 23708 in *Unknown* on line *0* *Warning*: Unknown: failed to open stream: No such file or directory in *Unknown* on line *0* *Warning*: Unknown: Failed opening '/path/to/404.phtml' for inclusion (include_path='.') in *Unknown* on line *0 *========================================================================== ====================== Note : /path/to/404.phtml is not real path, I'm changed it only for illustration * *When I'm trying to open 404.phtml script directly from browser everything gone OK. Have anyone idea to fix this. Sorry for my English. -- KodyFirst thing to check is that your server has permissions to read the script, as there seems to be a permissions problem here. More details about your server setup might help to diagnose this further... -d When I open 404.phtml directly from browser ererything gone OK, no error message displayed.