|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Needing some help, ive not long had my server so i'm a complete novice at installing things, as ive never had to do it before. Its just a case of showing me how But as its a learning curve, i'm hoping someone can guide me in the right direction please. Image Magic Home Page My Spec Apache 1.3.37 Running DirectAdmin 1.28.1 Running MySQL 4.1.11 CentOS 4.3 I have root access. So from ImageMagic Home page which way should i go, what do i do. Install from Source? Binary Release? And then what? Thanks for any advice
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
Mark, if you don't know how to compile from source, just use the binary release; simply upload the files to a directory on your server and link to the paths in the control panel.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
This one ? (i'm unsure, sys spec 1st post) ImageMagick-6.3.2-0.i386.rpm - Fedora Core 6 i386 RPM Binary Page Click Me Where should i create the directory? Path? (example, your leading the blind). Thanks in advance I will catch up in the morning, sorry soo tired... (Not a good time to read instructions).
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
Well, assuming you can use the rpm command, yes those ones.
And in what directory? doens't matter to me, how bout a plugins directory under your forum lol.
Last edited by Gizmo; 01/21/2007 8:05 PM.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
I think your right about the *.rmp
Looks like it should be this version would you agree?
ImageMagick-i386-unknown-freebsd6.1.tar.gz As im not sure at all.
Directory? I was under the asumption that it was to hide in the vars/etc/what ever ??
I would like this available to all domains / accounts on my server, so does that mean the binary option??
Sorry there seems to be more questions than progress.
I'm familar with DOS its just the server enviorment that un nerves me as i'm not used to it at all. And the new command lines. ( I dont want to break it).
Thanks in advance Mark.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
wherever you put the files are where they'd be, wiht a precompiled binary you can put them anywhere; /usr/bin mainly would make them availabel to everyone on the machine.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Okay i now have ImageMagick 6 installed and its still a white screen with the test commands. Version: ImageMagick 6.0.7 08/28/06 Q16 http://www.imagemagick.orgCopyright: Copyright (C) 1999-2004 ImageMagick Studio LLC The forums recognise that its installed, as the paths have been entred correctly. How did i install it? From Root access only yum install ImageMagick
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
if you use yum to install imagemagick, you have to restart apache: service httpd restart
should do it.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Done them mate, I'm just looking up the test you can do from root, that image logo thing, i read it somewhere. Glad i'm moving forward anyway "/usr/local/bin/convert logo: logo.gif"
Last edited by Mark S; 01/22/2007 6:39 PM.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
I'm not sure what verson of IM is installed through the YumRepo of your os; you may want to validate its version.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Do you have safe mode turned on Mark, with any open_basedir restrictions? If PHP is locked down with some safe mode restrictions then that could be why it's resulting in a white screen. I'll need to add more debugging to the output, but it could be that you don't have access to the "exec" command as well.
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
yeh i've been on several machines that don't allow exec :/
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Php isnt in safe mode, open base DIR is ON i can turnn it off
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Is that whay yu mean gizmo ?
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I should put a check in to make sure that the exec function is accessible as well. What you can do is make a quick and dirty php file, and then bring it up in your browser.
<?php
if (function_exists('exec')) {
echo "Yes, exec() is availalbe.";
} else {
echo "No, exec() is not available.";
} ?>
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
Yeh, that version of ImageMagick should work fine for what you're doing here.
Are convert and morgify in your /usr/bin properly?
If there is some sort of security issue blocking access to them you could try copying them to the web-root of each site wanting to use them and re-link to them in the control panel, just as a test to see if that is the case...
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Checking the above posts, Status Making a Dirty php file lol.
Are convert and morgify in your /usr/bin properly?
Paths entred in ImageMagick Settings cp /usr/bin/convert /usr/bin/mogrify
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
I'm not asking if those paths are entered, i'm asking if those files ACTUALLY EXIST in that directory...
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Hmm, Mark. In a previous post, you had this:
"/usr/local/bin/convert logo: logo.gif"
You'll want to double check where convert and mogrify are installed just to check if it's /usr/bin or /usr/local/bin you should be using.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Dirty PHP result = Yes, exec() is availalbe.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
Hmm, Mark. In a previous post, you had this:
"/usr/local/bin/convert logo: logo.gif"
You'll want to double check where convert and mogrify are installed just to check if it's /usr/bin or /usr/local/bin you should be using. lol thats what i noticed, and am trying to get him to check lol
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
what's the comand for ouputing the path of convet and mogrify.
I think its just a typo on my part, but i havnt got that to work the image thing
"/usr/local/bin/convert logo: logo.gif"
As i'm sure the path is diffrent, that text was a copy and paste from the web site under, Unix Binary Release
I was getting desprate,
commands to out put the path? i'm checking....
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
mark try this (linux commands, execute them as root). updatedb (updates your slocate database) locate convert (locates the command "convert")
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Or instead of "locate convert" try "which convert". Locate might return a big long list of stuff you aren't looking for If you can't get either of those to work, try these 2 commands: ls /usr/bin/convert ls /usr/local/bin/convert One of those should return a "No such file or directory", and one should return the actual file.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Sorry its going on and on, but i did have a command i used and it out put the path to convert and mogrify,
locate convert = a long list of paths
looks like "usr/bin/convert"
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Not done yours yet rick doing it now
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
yeh it'll scroll quite a ways at times, based on how many scripts have the word "convert" in them.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
/usr/bin/convert Returns the comands for the file.
which convert = /usr/bin/convert
but i cant get that logo thing to work, is there spaces ? space = *
"/usr/bin/convert*logo:*logo.gif"
I get no such file or directory, but that's on the binary page that line, which could be leading us astry ? As i used the Yum ?
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ok, so we know it's /usr/bin/convert. So, just do this to make sure it's executable and functioning properly:
/usr/bin/convert -version
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Version: ImageMagick 6.0.7 08/28/06 Q16 http://www.imagemagick.orgCopyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Rick there could be problems with my forum update, and a file could be corrupt, just letting you know incase you have over looked that posibility.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
But wouldn't a SSH running of the program at the command line determine if it works or not? Or is this still relying on PHP and a Web page ?
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
ntdoc Where in the Root ssh Loving the support and feed back, i'm feeling special and stupid both at the same time
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ok, so as long as you have /usr/bin in the path to convert and mogrify then you should be good. What is your open_basedir restriction set to? It very well could be that's what restricting it, as that will not allow PHP to access any files outside of that directory.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Is set to open = ON In Direct Admin control panel.
Its open, no restrictions. I know this as i have Rss Feeds and if i turn it off meaning Disable then the Rss Feeds fail.
Parsers they are.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,366 Likes: 126
|
Joined: Jun 2006
Posts: 16,366 Likes: 126 |
i'm feeling special and stupid both at the same time thats how we roll ..
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ok, it's almost to the point that we may need a support ticket. One last thing to check, just to make sure you're calling your test mode correctly. Make sure you're logged in as an admin and bring this up in your browser, on your domain of course:
ubbthreads.php?ubb=captcha&test=1&t=im
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
I got an image back saying "Rick is king of them all" Kidding i got Ubb TReads in images
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ok, then it's working as intended. Now, make sure that registration is set to use ImageMagick. There is a bit of a problem in b4 where the image might first come up as a red x, like it's not found, but it should change to the actual CAPTCHA image after a second.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Ok
just reading the above that's the only thing i havnt added to all of this??
Adjusting any registration settings, i'm saying that because i havent set any registration options to CAPTCHA
i wasnt seeing any for a post, but the option was there to enter the letters, but couldnt see them,
okay i will update the registrations settings now.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
0 members (),
1,448
guests, and
60
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|