Results 1 to 15 of 15
  1. #1
    Join Date
    Mar 2008
    Posts
    372

    enable imagemagick ??

    my friend is using an VPS using DA
    his main site is for imagehosting, but imagemagick image library shows to disabled in his host script, I was wondering how to activate it if it was already installed on the vps
    Last edited by koolnhot; 10-12-2009 at 10:01 AM.

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    You can install imagemagick using the following method.

    Code:
    wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.3-10.tar.gz
    tar -zxf ImageMagick-6.5.3-10.tar.gz
    cd ImageMagick-6.5.3-10
    ./configure
    make
    make install
    Type
    whereis convert
    It should result /usr/local/bin/convert

    You can include imagemagick to php using the following method.

    Code:
    wget http://pecl.php.net/get/imagick
    tar -zxf imagick.tgz
    phpize
    ./configure
    make
    make install
    Add in php.ini

    extension = imagick.so

    restart web server
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Join Date
    Mar 2008
    Posts
    372
    sorry for the confusion mate, I meant imagemagick image library and not imagemagick, my bad I missed it before, so edited it just now

    thanks for ur tips though, will use them if needed in future, but can u help me with this as well

  4. #4
    Join Date
    Sep 2004
    Location
    India
    Posts
    222
    Hi,

    Which OS are you running?
    Thanks,
    Netedge Technology 24x7 webhosting support, Monthly server management, Dedicated support.
    Nelichso Live chat support software

  5. #5
    Join Date
    Mar 2008
    Posts
    372
    centos 5.x I think 5.3 to be precise

  6. #6
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Have you enabled imagemagick in php? For this you need to install "Imagick Image Library" as I had specified in the second step.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  7. #7
    Join Date
    Mar 2008
    Posts
    372
    just ran the above command :
    wget ftp://ftp.imagemagick.org/pub/ImageM....5.3-10.tar.gz

    Code:
    and it through following error :( :
    ==> SYST ... done.    ==> PWD ... done.
    ==> TYPE I ... done.  ==> CWD /pub ... done.
    ==> SIZE ImageMagick-6.5.3-10.tar.gz ... done.
    ==> PASV ... done.    ==> RETR ImageMagick-6.5.3-10.tar.gz ...
    No such file `ImageMagick-6.5.3-10.tar.gz'.

  8. #8
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Well, it works fine for me

    Code:
    $ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.3-10.tar.gz
    --19:35:00--  ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.3-10.tar.gz
               => `ImageMagick-6.5.3-10.tar.gz'
    Resolving ftp.imagemagick.org... 74.63.13.227
    Connecting to ftp.imagemagick.org|74.63.13.227|:21... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done.    ==> PWD ... done.
    ==> TYPE I ... done.  ==> CWD /pub/ImageMagick ... done.
    ==> SIZE ImageMagick-6.5.3-10.tar.gz ... 11151919
    ==> PASV ... done.    ==> RETR ImageMagick-6.5.3-10.tar.gz ... done.
    Length: 11151919 (11M)
    
     2% [=>                                                                                                                   ] 273,020
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  9. #9
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Or you can select it from here.

    ftp://ftp.imagemagick.org/pub/ImageMagick/

  10. #10
    Join Date
    Mar 2008
    Posts
    372
    strange now same command worked for me : wget ftp://ftp.imagemagick.org/pub/ImageM....5.3-10.tar.gz

    copy pasted now, may b had entered code wrong last time

  11. #11
    Join Date
    Mar 2008
    Posts
    372
    now this gives me error:
    Code:
    make
    -bash: fork: Cannot allocate memory

  12. #12
    Join Date
    Mar 2008
    Posts
    372
    just replying again, can any one sort out wat I should do know ?

  13. #13
    Join Date
    May 2008
    Posts
    340
    It seems you have a VPS and that VPS has exhausted all the memory available.

    You either need to contact your webhost and inquire about more memory resources or you can turn off/disable unnecessary services and free some memory to compile ImageMagick using make.
    Twitter : http://twitter.com/eth1networks
    Contact Us : support[at]eth1.in

  14. #14
    Join Date
    Mar 2008
    Posts
    372
    I am not sure if all memory is gone as I have 1gb ram and sites aren't active yet
    anyhow, now how to proceed ??
    as I have configured imagemagick, how should I run the remaining steps of running make command, will it directly work if I just logon to ssh and give commands ?
    Code:
    make
    make install
    plz be elaborate as I am novice in this

  15. #15
    Join Date
    May 2008
    Posts
    340
    If make had failed previously with any errors and you want to proceed again, then run the following commands before running make and make install,

    make clean ; make distclean
    Now you need to run a ./configure with any options you may want and then run,

    make ; make install
    Twitter : http://twitter.com/eth1networks
    Contact Us : support[at]eth1.in

Similar Threads

  1. How detect paths of ImageMagick and test ImageMagick?
    By Glostar in forum Hosting Security and Technology
    Replies: 10
    Last Post: 01-23-2008, 09:27 PM
  2. Do Not Use Imagemagick
    By :: MESBAH :: in forum Hosting Security and Technology
    Replies: 8
    Last Post: 06-23-2005, 10:17 PM
  3. ImageMagick?
    By Duport in forum Hosting Security and Technology
    Replies: 7
    Last Post: 02-28-2005, 11:21 PM
  4. ImageMagick
    By Salvatore in forum Hosting Security and Technology
    Replies: 5
    Last Post: 01-29-2004, 08:32 PM
  5. ImageMagick
    By Grizzly in forum Dedicated Server
    Replies: 3
    Last Post: 02-26-2003, 02:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •