Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Image Magick can't locate it host says its installed in root?

I had ImageMagick running perfectly in my cgi script with my host until they had to replace a faulty hardrive, lost ImageMagic and reinstalled it.

Previously I called up ImageMagick using:

use lib '/usr/lib/perl5/site_perl/5.6.1/i386-linux/';
use Image::Magick;

But since my host has reinstalled ImageMagick each time I call it using:

use lib '/usr/lib/perl5/site_perl/5.6.1/i386-linux/';
use Image::Magick;

or just

use Image::Magick;

My cgi script crashs with 500 server error :(

I looked under perl modules and ImageMagick is not there so I contacted my host and they told me they have now installed it in the root:

home/src/ImageMagick-5.4.9/www/

I am not that familar with root access and have tried a few things but my script just crashs the moment I call up ImageMagick and any help is most welcome :)
0
pauluk
Asked:
pauluk
1 Solution
 
nbthanhCommented:
Hi pauluk,
If your script was OK and unchanged, then the error must have been caused by the server!

I suggest that you may reinstall ImageMagick (or any Perl Module you want) into your own directory. You can do is by this:

- download the source from search.cpan.org and upload onto your server
- uncompress: tar zfx module-xxx.tar.gz
- run: cd module-xxx
- run: perl Makefile.pl prefix=/home/pauluk/yourdir
Note: some documents said that it should be --prefix. I tried, but it did not work on my server while prefix did work well. You may wish to try both :-)
- run: make
- then run: make install
- finally, you can run: make test to test your new installed module.

Hope this help.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now