LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Imagemagick

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2009, 10:03 PM
avio avio is offline
New Member
 
Join Date: Feb 2009
Posts: 7
Default Imagemagick

Hi,

Does anyone have a clue as to how to compile Imagemagick with Litespeed on a cPanel server? I've recompiled PHP using Apache's configuration from the WHM plugin but imagemagick does not seem to work like it does with Apache.

Any help would be appreciated.

Thank you.
Reply With Quote
  #2  
Old 02-20-2009, 07:42 AM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
imagemagick is a binary (/usr/bin/convert) and is never compiled into PHP. On a cPanel server you can run /scripts/installimagemagick to install it.
__________________
Hawk Host
Frog Host
Reply With Quote
  #3  
Old 02-20-2009, 10:27 AM
avio avio is offline
New Member
 
Join Date: Feb 2009
Posts: 7
I've already ran that command /scripts/installimagemagick but it does not work on the litespeed webserver.
Reply With Quote
  #4  
Old 02-20-2009, 01:03 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
What does not work about it? It's a binary and lsws has nothing to do with it as it's just a web server. My best guess is you have openbase_dir enabled and there is no access to /usr/bin . So you can either modify the vhost template or remove the protection for that domain to solve it.
__________________
Hawk Host
Frog Host
Reply With Quote
  #5  
Old 02-20-2009, 07:36 PM
avio avio is offline
New Member
 
Join Date: Feb 2009
Posts: 7
I've had openbase_dir enabled on apache as well, but it works fine. I know imagemagick is a binary, but it works on Apache 2 and not on Litespeed...
Reply With Quote
  #6  
Old 02-20-2009, 08:15 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
I am asking again what does not work about it. You have yet to explain that.

Having openbase_dir enabled on Apache does not mean a whole lot if you're not running PHP as an Apache module. If you were running suPHP or FastCGI then you did not have the protection as it's not supported.


Oh it works fine for us on every machine we have. A user calls it with a system call and it's never done via php directly or by the web server.

system("/usr/bin/convert commands");
__________________
Hawk Host
Frog Host
Reply With Quote
  #7  
Old 02-20-2009, 09:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
You can try increase the memory limit for lsphp5 external app.
Maybe your user were trying to process a large file?
Also check /usr/local/apache/logs/stderr.log for related errors.
Reply With Quote
  #8  
Old 02-21-2009, 10:27 AM
avio avio is offline
New Member
 
Join Date: Feb 2009
Posts: 7
Quote:
I am asking again what does not work about it. You have yet to explain that.
vBulletin does not recognize the path /usr/bin/ when on Litespeed, does not generate CAPTCHA images (displays a broken image).
Reply With Quote
  #9  
Old 02-21-2009, 11:46 AM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Quote:
Originally Posted by avio View Post
vBulletin does not recognize the path /usr/bin/ when on Litespeed, does not generate CAPTCHA images (displays a broken image).
Disable openbase_dir on the account in question vbulletin is unable to access the /usr/bin folder. I can only assume previously your php setup with Apache did not support the directory protection which is why it worked.

You could also alternatively use GD instead of imagemagick.
__________________
Hawk Host
Frog Host
Reply With Quote
  #10  
Old 02-21-2009, 12:40 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Yes, I think suphp does not honor the open_basedir protection.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:59 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.