Install problem: File is not within the allowed path(s) Install problem: File is not within the allowed path(s)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Install problem: File is not within the allowed path(s)

Started by k-rug, August 23, 2004, 07:44:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

k-rug

I get the following error message when I try to install Coppermine. I click the "Let's Go!" button and this is what happens:

Warning: is_dir(): open_basedir restriction in effect. File(/usr/X11R6/) is not within the allowed path(s): (/home/httpd/vhosts/domain.com/httpdocs:/tmp) in /home/httpd/vhosts/domain.com/httpdocs/photo_album/install.php on line 95

I've searched the forums regarding open_basedir but can't seem to find anything related to allowed paths. I downloaded and installed ImageMagick using the RedHat RPM as I am running Apache and RedHat Enterprise. Any help you can give would be appreciated. Thanks in advance.

kiig

Hi K-rug.

It's a security thing that kicks in. Not really really sure what it's all about, - but you're running coppermine from a virtual domain (i guess), - and the open basedir restriction is to 'limit' the access to other parts of the filesystem. In /etc/httpd/conf/httpd.conf you can actually find the "open_basedir" statements and see where the different domains on your server is allowed to look, - and you might edit the file directly, - or use some tool to change it, - if needed.

Normal problem, - I guess, - is to have a number of virtual domains on a server (Coppermine, - phpbb, weblog) and try to have a 'global' stat-tool monitor them all. Here you need to let all virtual domains have access to at least the virtual domain that your stat tool is placed in.... get it ?

Apart from the above, - I don't know why you shouldnt' be able to access the Imagemagick 'executable', - which I guess you're trying to do. Try to chmod the 'convert' file that you're system is trying to access (try "chmod 777 convert" as root) (mine is called convert at least..), - but again, - the install script should be able to handle that.


Maybe it's better, - if I'm right in assuming that Imagemagick is the problem here (which line 95 indicates), - try selecting GD1 or 2, - if possible, - but....when thinking about it, you probably can't do anything but press 'Go' at this point, - but maybe some editing of the install.php file, - or if you rename 'convert' at install time, - the script should figure out not to use Imagemagick.. and suggest you use Gd1 or gd2 (just by looking at the script briefly)....

Hope some of this helps a bit.

Kim Igel.

Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

k-rug

Thanks Kiig,
I do run virtual domains. I explicitly set permission for all hosts to access the directory but that didn't fix it.

I've uninstalled and reinstall Image Magick both by RPM and manually and I get the same result.

kiig

Have you tried installing copermine without Imagemagick ? Looks like the install.php should be able to handle that... but hopefully someone else has some ideas... I dont :-(
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

Joachim Müller

Kim is right, I recommend you try using GD for a start (it comes bundled with the most recent versions of php).

GauGau

k-rug

The GD installation worked fine. Oh well...

Thanks guys. Now to test drive this sucker.