Re: Re: Problems with open_basedir
| From: | Patrik Jansson | Date: | Fri, 20 Oct 2006 08:40:40 +0000 |
| Subject: | Re: Re: Problems with open_basedir | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243381@lists.php.net to get a copy of this message | ||
Colin Guthrie wrote:
Patrik Jansson wrote: I ran into problems with openbase_dir when using symlinks... They only really reared their ugly head when I upgraded to 5.1.6 before that they were OK (tho' if memory serves I had to add both the symlink location and the directory it pointed to. Anyway, are symlinks to blame here? I've added the real path into open_basedir, I also removed the // errorbut still I get the restriction message: *Warning*: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/web25637/domains/abc.ssf.scout.se/public_html/components/com_sef/sef.php) is not within the allowed path(s): (/home/web25637/:/usr/home/web25637/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/:/var/uploads/:/var/squirrelmail) in */usr/home/web25637/domains/abc.ssf.scout.se/public_html/index.php* on line *46 * So then I changed the absolute path in Joomla from /home/... to /usr/home/... and now I don't get the error anymore so it seems like it has something to do with the symbolic link after all. Is this considered a bug? We're running PHP 5.1.6. If it could work using the symbolic link /home too I would really appreciate. -Patrik