Discussion:
[TYPO3-english] GraphicsMagick not working
David van der Linde
2014-10-02 21:43:45 UTC
Permalink
Hi,

Today I successfully installed Typo3 on a VPS with Ubuntu 14.04 LTS 64bit + Plesk 12.0.
Configuring Linux Servers and Typo3 are new to me, so I'm trying and learning :-)

I'm quite satisfied so far, but the "image effects" on the demo page aren't working.
I installed GraphicsMagick, but the Install Tool still can't find GraphicsMagick (nor ImageMagick, and I installed that too).

I followed the instructions on this page: wiki.typo3. o r g/GraphicsMagick.
Now I have the GraphicsMagick files in the /usr/local/bin/ folder:

root at h2349742:/usr/local/bin# ls -l
total 7208
lrwxrwxrwx 1 root root 2 Okt 2 20:56 animate -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 compare -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 composite -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 conjure -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 convert -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 display -> gm
-rwxr-xr-x 1 root root 7369881 Okt 2 20:56 gm
-rwxr-xr-x 1 root root 1207 Okt 2 20:56 GraphicsMagick-config
-rwxr-xr-x 1 root root 1251 Okt 2 20:56 GraphicsMagickWand-config
lrwxrwxrwx 1 root root 2 Okt 2 20:56 identify -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 import -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 mogrify -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 montage -> gm


When I have a look in the Install Tool --> System Environment --> PHP Info, then GraphicsMagick isn't mentioned, but it should, or? I restarted the server, in case that matters.

I keep getting the error "GraphicsMagick was not found in standard system paths. If it is installed in an unusual location on your system, set the path in the input box above and search again." on the Configuration Presets page.

What do I need to do? Set some paths? If yes, how?

Thanks for your help!

Best regards,
David
David van der Linde
2014-10-02 21:47:36 UTC
Permalink
Maybe I wasn't quite clear in my previous post. In the Install Tool --> "Configuration Presets" I entered the path /usr/local/bin/ and several other versions (as a matter of trying), but GraphicsMagick still wasn't found, even though I can SEE the files in that location in my FTP-client.
Finees Mendez
2014-10-03 01:52:27 UTC
Permalink
I had the same issue. For me, it meant the default PHP configuration did
not have certain extensions activated by default that Typo3 depends on.

I moved a copy of the default /usr/local/lib/php.ini file to
/home/theuseraccount/public_html/php.ini with the necessary extensions
enabled.

You have to add some code to your .htaccess file to make sure you are using
the new, custom php.ini file:

### Begin: include custom php.ini file ###

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/theuseraccount/public_html/
</IfModule>

<Files php.ini>
order allow,deny
deny from all
</Files>

### End: php.ini include ###


You should now see ImageMagic and GraphicsMagick in <? phpinfo(); ?> and
your image effects demos in typo3/install should now all work. I hope it
helps!

Thanks. Finees.

On Thu, Oct 2, 2014 at 5:43 PM, David van der Linde <
Post by David van der Linde
Hi,
Today I successfully installed Typo3 on a VPS with Ubuntu 14.04 LTS 64bit + Plesk 12.0.
Configuring Linux Servers and Typo3 are new to me, so I'm trying and learning :-)
I'm quite satisfied so far, but the "image effects" on the demo page aren't working.
I installed GraphicsMagick, but the Install Tool still can't find
GraphicsMagick (nor ImageMagick, and I installed that too).
I followed the instructions on this page: wiki.typo3. o r g/GraphicsMagick.
root at h2349742:/usr/local/bin# ls -l
total 7208
lrwxrwxrwx 1 root root 2 Okt 2 20:56 animate -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 compare -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 composite -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 conjure -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 convert -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 display -> gm
-rwxr-xr-x 1 root root 7369881 Okt 2 20:56 gm
-rwxr-xr-x 1 root root 1207 Okt 2 20:56 GraphicsMagick-config
-rwxr-xr-x 1 root root 1251 Okt 2 20:56 GraphicsMagickWand-config
lrwxrwxrwx 1 root root 2 Okt 2 20:56 identify -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 import -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 mogrify -> gm
lrwxrwxrwx 1 root root 2 Okt 2 20:56 montage -> gm
When I have a look in the Install Tool --> System Environment --> PHP
Info, then GraphicsMagick isn't mentioned, but it should, or? I restarted
the server, in case that matters.
I keep getting the error "GraphicsMagick was not found in standard system
paths. If it is installed in an unusual location on your system, set the
path in the input box above and search again." on the Configuration Presets
page.
What do I need to do? Set some paths? If yes, how?
Thanks for your help!
Best regards,
David
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
David van der Linde
2014-10-03 20:24:30 UTC
Permalink
Hi Finees,

thanks a lot for your answer. I now managed to get GraphicsMagick enabled, at least kind of. In the "Install Tool - Configuration Presets" it now says "GraphicsMagick was found in path /usr/local/bin/ " in a green message, so it was found.

However, when i do the image tests, I get an error message saying "ImageMagick / GraphicsMagick handling is enabled, but the execute command returned an error. Please check your settings, especially ['GFX']['im_path'] and ['GFX']['im_path_lzw'].".

Also the image effects on the demo page still don't work.

The following is set:
['GFX']['im_path'] = /usr/local/bin/
['GFX']['im_path_lzw'] = /usr/local/bin/
['GFX']['im_version_5'] = gm

I tried what you suggested with the .htaccess file, but when I add that block (adapted with my paths) to my .htaccess, then the whole site doesn't work. I've tried different paths, but no success. The server's error log says "Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration ".

The error log doesn't provide any other relevant error messages.

Any further ideas?

Thanks again!
David

Loading...