Page 1 of 1
ImageMagick on 1and1
Posted: 2012-06-27T01:39:00-07:00
by pbpatil519
Hi
I am trying to install Imagemagick on 1and1 server, but facing following error
cc1: out of memory allocating 408 bytes after a total of 61668524 bytes
make[1]: * [wand/wand_libMagickWand_la-mogrify.lo] Error 1
make[1]: Leaving directory `/homepages/39/d389525088/htdocs/imagemagick'
make: * [all] Error 2
(uiserver):u66440623:~/imagemagick > wand/wand_libMagickWand_la-mogrify.lo]
ImageMagick version is - ImageMagick-6.7.7-9
Re: ImageMagick on 1and1
Posted: 2012-06-27T03:59:02-07:00
by magick
wand/mogrify is a large source module, we may need to break it up. In the mean-time, compile wand/mogrify.c without optimization. It should compile without complaint.
Re: ImageMagick on 1and1
Posted: 2012-06-27T04:24:21-07:00
by pbpatil519
How can I compile ImageMagick without wand/mogrify.c module?
Re: ImageMagick on 1and1
Posted: 2012-06-27T05:38:13-07:00
by magick
No, compile wand/mogrify.c. Just change its optimization level from 2 to say 1 or 0. Changing the optimization level is compiler dependent. For gcc, you might use -O1 or -O0.
Re: ImageMagick on 1and1
Posted: 2012-06-27T05:50:25-07:00
by pbpatil519
I tried with following command but no luck
./configure CFLAGS=-O1 --disable-openmp --prefix=/kunden/homepages/93/d3563895288/htdocs/imagemagick/
It is still giving me the same error.
Also I only needed convert and composite commands no other commands are needed.
if I try following command from SSH it works
/usr/bin/convert -background none -gravity center -font /kunden/homepages/93/d389525088/htdocs/components/com_virtuemart/shop_image/custom_fonts/arialbd.ttf -fill \#000000 -pointsize 80 label:"YOUR TEXT HERE" /kunden/homepages/93/d389525088/htdocs/components/com_virtuemart/shop_image/output/00cfaf813e76c370631c62f36a8749c3_text.png
But if I try same command using php exec function it doesn't work
can you please help me in this.
Re: ImageMagick on 1and1
Posted: 2012-06-27T06:46:51-07:00
by magick
It looks like you need to increase your memory on the system or perhaps remove a system memory limit if its enforced.
Re: ImageMagick on 1and1
Posted: 2012-06-27T07:24:33-07:00
by Bonzo
Have you checked that Imagemagick is not already installed?
Re: ImageMagick on 1and1
Posted: 2012-06-27T09:57:24-07:00
by fmw42
Bonzo wrote:Have you checked that Imagemagick is not already installed?
As Bonzo said, many ISPs (and presumably 1&1) have a precompiled IM version available typically at /usr/local/bin or /usr/bin.
Ask your ISP if that is the case. Also other 1&1 users have reported that 1&1 have been willing to help in private installs of IM, though I have no direct confirmation.
If you are planning to run IM under PHP, then you can test for the location of an existing IM by using
<?php
echo "<pre>";
system("type -a convert");
echo "</pre>";
?>
or
<?php
echo "<pre>";
system("which -a convert");
echo "</pre>";
?>
Re: ImageMagick on 1and1
Posted: 2012-06-27T22:34:18-07:00
by pbpatil519
Thank you all of you, it was already installed there. But it was a old version and I was trying to install new one, I manage to do so but I have to change the path of all the commands to my hosting root and the folder we created while installing, hope this will not make any difference.
Instead of using /usr/bin/convert this I used /kunden/homepages/93/d389525088/htdocs/imagemagick/bin/convert and this is working perfectly but I don't know this make any difference or not.
Re: ImageMagick on 1and1
Posted: 2012-06-28T18:22:29-07:00
by anthony
magick wrote:wand/mogrify is a large source module, we may need to break it up. In the mean-time, compile wand/mogrify.c without optimization. It should compile without complaint.
IMv7 CLI development is working to break up the mogrify.c module. using "operation.c".
eventually mogrify.c will be a LOT smaller.
It may be however that operation.c will need to be broken up for similar reasons.
UPDATE: or not!
Re: ImageMagick on 1and1
Posted: 2012-08-02T15:34:51-07:00
by leiacg
Hi,
I had the same problem in 1and1, they told me that I need a dedicated hosting.... but at the end I used their Imagemagick instalation....
it's available at /kunden/usr/bin and although it works correctly on shell, I had problem when I used it via php...
To solve this problem I use this:
putenv("MAGICK_THREAD_LIMIT=1");
I hope it helps someone
Re: ImageMagick on 1and1
Posted: 2012-08-08T09:00:48-07:00
by Bonzo
I had somebody ask me about the same problem and the answer posted by leiacg worked for them as well.
Re: ImageMagick on 1and1
Posted: 2016-05-11T04:33:59-07:00
by BlissDirect
Hello,
I know this is an old post. But I am using 1and1 shared hosting and nothing is working for me... I see "leiacg" could make it work.
I am working with the customer support team, since a week now. One agent said you can install the imagemagick with the following steps: "
https://help.1and1.com/hosting-c37630/w ... 49013.html". After following the steps, I couldn't find anything on phpinfo(). On asking about that, they mentioned- "Upon checking, You have successfully installed the ImageMagick, that will not show up in phpinfo, since this was not installed in our server's backend, this was installed within you're hosting space. You need to use the path where you installed the ImageMagick so you can use it. " But I have no clue, where should I use path?
But when I asked I want to install imagick extension for PHP they said "Please be informed that to enable PECL, you will need to add this extension “extension=php_imagick.dll” to an existing php.ini or create one if you don't have it yet. You will need to add it on a php.ini in a directory where the domain is pointing to. However, please be reminded that not all php directives can be enabled for it might be a limitation on our server." So I decided to create new php.ini file as requested. But when I started adding extension, I couldn't find php_imagick.dll file in any folder and later when I called over the phone one agent said need to have dedicated server.
Today some other support agent replied "It appears you are trying to run a script that utilizes an Imagemagick module which is not installed on our shared hosting service. Please be advised that installation of Imagemagick via SSH will only let you use the commands to execute within SSH. Unfortunately installation of these extension modules will not be possible if root access is needed."
Can somebody help me. I am badly stuck. I have no clue, what is going on! What is the right way of execution..?
Thanks in advance.