ImageMagick 6.7.4-2 Installed But Not Executing in Gallery
rsokhi
Joined: 2010-01-03
Posts: 15 |
Posted: Mon, 2011-12-26 03:09 |
I'm trying to get ImageMagick binaries to work with G2 but can't seem to figure it out. I installed the most recent binaries (ImageMagick 6.7.4-2) with root access (painful, but figured it out) but I'm not able to point the G2 toolkit to the right path. Not sure how to determine where that path is. I know I unpacked the tar to the following directory: /usr/local/src/. When I point to it in G2, I get a "The path you entered is not a valid directory or is not accessible" error. Note that I'm on a 1and1 VPS and my site is actually at var/www/vhosts...etc, etc. I know /usr/local/src/ is not accessible without root access, but I unpacked the tar there to install the binaries per instructions I found here and here. However, these are just the installation files...where are the binaries installed to? Another thing to note, I know ImageMagick installed successfully as when I run "identify -version", the following returns: Quote:
Version: ImageMagick 6.7.4-2 2011-12-25 Q16 http://www.imagemagick.org Another note: I've installed ImageMagick before on a similar system before and got it to work. The path to the binaries that worked in G2 was /var/www/vhosts/DOMAINNAME.com/httpdocs/ImageMagick-6.7.0.9/bin/ (accessible through regular http access). I have no idea how I got the identify, convert and composite binaries into that folder. Entering Quote:
locate identify in shell, I get the following results: Quote:
/usr/local/src/ImageMagick-6.7.4-2/magick/identify.c Pointing to these directories does nothing: directory does not exist or not accessible. Any ideas? |
|
Posts: 15
System info as follows:
Posts: 8339
instead of "locate identify" try "which identify"
and they usually install to /usr/bin or /usr/local/bin
the binaries need to be 755
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 15
Yes! It was /usr/local/bin. The thing is I still get a "The path you entered is not a valid directory or is not accessible." error after chmod to 755. What am I doing wrong? Note that G2 adds a forward slash at the end (/usr/local/bin/). Is this a problem?
Posts: 8339
sounds like a open_basedir restriction
https://www.google.com/search?q=open_basedir+restriction+site%3Agallery.menalto.com
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 15
suprsidr you magnificent bastard! It worked!!
Initially, I was having some problems getting your instructions to work from the following forum post. So I thought I would let people know what I did.
Turns out the instructions are for gallery3. What I did was (with root access) create a vhost.conf file in the /var/www/vhosts/cmnycakes.com/conf directory, and added the following text (note that it needs to have main.php as obviously G2 uses that file, rather than index.php):
Restarted apache with /etc/init.d/httpd restart
And voila...imagemagick tests pass in G2!