coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: k-rug on August 23, 2004, 07:44:40 PM

Title: Install problem: File is not within the allowed path(s)
Post by: k-rug on August 23, 2004, 07:44:40 PM
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.
Title: Re: Install problem: File is not within the allowed path(s)
Post by: kiig on August 23, 2004, 08:22:28 PM
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.

Title: Re: Install problem: File is not within the allowed path(s)
Post by: k-rug on August 23, 2004, 10:10:51 PM
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.
Title: Re: Install problem: File is not within the allowed path(s)
Post by: kiig on August 23, 2004, 10:29:13 PM
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 :-(
Title: Re: Install problem: File is not within the allowed path(s)
Post by: Joachim Müller on August 23, 2004, 10:32:13 PM
Kim is right, I recommend you try using GD for a start (it comes bundled with the most recent versions of php).

GauGau
Title: Re: Install problem: File is not within the allowed path(s)
Post by: k-rug on August 23, 2004, 10:44:22 PM
The GD installation worked fine. Oh well...

Thanks guys. Now to test drive this sucker.