Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
5 registered (Ruben, Stan, SteveS, tradge, Pilgrim), 46 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 12/20/03
Posts: 4423
Top Posters (30 Days)
Ruben 51
DennyP 24
Gizmo 23
Dunny 17
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#182479 - 04/11/07 11:12 AM Captcha not working, IIS6, ImageMagick
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Ok, I searched this time, and got 8 pages of threads, mostly around why captcha was non compliant for blind people. \:\)

I sure as heck hope there is an option in the advanced search, next time I look, to ignore replies on the same thread.

ANYHOW...

Trying to get ImageMagick to throw me the CAPTCHA stuff.
All I get is the red X.

Paths are in as c:\ImageMagick\convert.exe and mogrify.exe.

Have done nothing to php yet, do I need to?
I see no sign of that, and there is nothing in the docs anywhere.

Ideas?
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#182482 - 04/11/07 11:25 AM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
First thing would be to make sure that it is ImageMagick6 that you have installed and not 5. You don't need to do any PHP changes for ImageMagick to work, but you do need to make sure that PHP has the permission to use the exec() function.

A quick way to test if it's setup properly, is to call it directly. When you're logged in as an admin, bring up this page:

ubbthreads.php?ubb=captcha&t=im&test=1
Top
#182486 - 04/11/07 12:28 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
Loc: Texas
I believe you need to point to the imagemagick .exe file in your php.ini as well, eh?

ugh, it's been too long since I ran IIS - I need to set it up on my home computer \:\)
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#182487 - 04/11/07 12:33 PM Re: Captcha not working, IIS6, ImageMagick [Re: AllenAyres]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
I don't think so Allen. The way we're doing it, we just call the convert.exe via exec() so we're actually executing the convert.exe, so php shouldn't need to know anything about it.
Top
#182493 - 04/11/07 01:29 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Ok, test run, and all I get is a blank screen, with a red X on an image.

Looked for any reference to exec() in the php.ini and can find none.

v6.3.3.6 is the file version of convert.exe.

I had it working before, for a photogallery online, and just installed the latest version, prior to installing threads. (trying to avoid problems, not create them)

\:\)
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182494 - 04/11/07 01:36 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Just did the quick check based on IM6's text files, and it converted and displayed a file for me...
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182496 - 04/11/07 01:48 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Hmm, one last check, and we might need a support ticket for this. Can you check and make sure that your cache directory is writeable. ImageMagick tries to write to this directory to temporarily store the image that it created.
Top
#182497 - 04/11/07 02:10 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Yup, and there's about 20 files in there right now. (various php files)

is there any other way to quickly script a php test of imagemagick?
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182498 - 04/11/07 03:01 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Something like this should work to test. If it runs into a problem it should output the error, however this doesn't appear to always be the case. This script works for me, but if I make the path bad it doesn't show any error on my windows test box for some reason.

 Code:
<?

$output = exec("C:/path/to/convert.exe -background lightblue -fill blue -pointsize 30 label:test C:/Path/to/a/writeable/directory/test.gif",$error);

if (sizeof($error) {
        echo "Error is " implode(' ',$error);
} // end if

?>


You'll want to change the paths above. Both to the convert.exe executable, and also to where it will output the test.gif file, it must be a writeable directory.
Top
#182501 - 04/11/07 05:24 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Had to edit a bit to get it to run, but can't get past this syntax error... and I'm stuck.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\Inetpub\ca.dsm.org\forums\test.php on line 6



<?php

$output = exec("C:\imagemagick\convert.exe -background lightblue -fill blue -pointsize 30 label:test C:\inetpub\ca.dsm.org\forums\cache\test.gif",$error);

if (sizeof($error)) {
echo "Error is " implode(' ',$error);
} // end if

?>
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182511 - 04/11/07 08:54 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Whoops, copied the wrong one. There is a . missing on that line. It should be:

echo "Error is " . implode(' ',$error);
Top
#182514 - 04/11/07 08:59 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
 Quote:
Warning: exec() [function.exec]: Unable to fork [C:\imagemagick\convert.exe -background lightblue -fill blue -pointsize 30 label:test C:\inetpub\ca.dsm.org\forums\cache est.gif] in C:\Inetpub\ca.dsm.org\forums\test.php on line 3


That help any?
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182530 - 04/12/07 01:10 AM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
 Originally Posted By: Andrew Bienhaus
Ok, I searched this time, and got 8 pages of threads, mostly around why captcha was non compliant for blind people. \:\)
Not auditory yet, so blind people must contact an admin to register an account (which is Section508 compliant, reguardless of how much they complain).

GMail has a nifty auditory reader though I must say ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#182545 - 04/12/07 08:51 AM Re: Captcha not working, IIS6, ImageMagick [Re: Gizmo]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
I assume section 508 is some law in the USA?

My point, and cheapshot I admit, was around the search function... so maybe I should take that to a new thread.

Still need help with this Captcha thing, when the west coast rises. \:\)
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182548 - 04/12/07 10:44 AM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
The unable to fork sounds like IIS doesn't have permission to read/execute the convert.exe program. At least that's what came up on the google search I jsut did.
Top
#182552 - 04/12/07 12:20 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Ok, PROBLEM FIXED.

And, for the record, here's the solution.

It would indeed appear that permissions are the problem.

But, giving the IUSR account read & execute permissions on ImageMagick directory, didn't make any diff.

You were on the right track though... found a Gallery system posting elsewhere that said in order for the exec function to work, you need to give read and exec to the cmd.exe located in the system32 directory.

Did that, and it works.
Removed read & exec from ImageMagick dir, and it still works.

So, looks like cmd.exe is the culprit.
Maybe when you guys write the docs for Captcha you can include this? \:\)

Thanks!
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182568 - 04/12/07 03:43 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
 Originally Posted By: Andrew Bienhaus
I assume section 508 is some law in the USA?
It more focuses to the US Government websites; but it's a good basis of how to set things up for any site as if you can cater to their anal retentive standings that it'll be well sufficient for any site (let alone those which are being whined about with impaired users and them claiming you're excluding them from your site, which can arise many issues with local established sites). You can read the Wikipedia entry here
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#182596 - 04/12/07 08:02 PM Re: Captcha not working, IIS6, ImageMagick [Re: Gizmo]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
hehehe thanks, but I'm not in the US of A, so I'll just keep offending the blind for now. ;\)
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182598 - 04/12/07 08:08 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
 Originally Posted By: Andrew Bienhaus
I'll just keep offending the blind for now. ;\)
Lol wasn't implying you where, was just showing why/how some are whining about it ;)...

Some countries actually make it more than governmental pages; I think Canada is actually one of them, you may want to check it out
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#182630 - 04/13/07 02:42 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Mors Offline
addict
Registered: 06/26/06
Posts: 471
Loc: So. California
I just use GD2.. seems to work great without the extra overhead..
_________________________
Happy Customer !!!
Top
#182631 - 04/13/07 02:44 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Mors Offline
addict
Registered: 06/26/06
Posts: 471
Loc: So. California
 Originally Posted By: Rick
The unable to fork sounds like IIS doesn't have permission to read/execute the convert.exe program. At least that's what came up on the google search I jsut did.


You will probably need to add the .exe to cgi permissions for IIS 6..
_________________________
Happy Customer !!!
Top
#182665 - 04/13/07 07:28 PM Re: Captcha not working, IIS6, ImageMagick [Re: Mors]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I haven't noticed any overhead with IM, and I've been using it for many things for years; i do rather enjoy the additional color depth IM gives as well ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#193856 - 08/05/07 05:15 PM Re: Captcha not working, IIS6, ImageMagick [Re: Mors]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
I'm having this same issue. Can you explain this in more detail? (the part about You will probably need to add the .exe to cgi permissions for IIS 6.. )


Edited by BellaOnline (08/05/07 05:16 PM)
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#193857 - 08/05/07 05:17 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
"You were on the right track though... found a Gallery system posting elsewhere that said in order for the exec function to work, you need to give read and exec to the cmd.exe located in the system32 directory."

Isn't this a *huge* security issue, though? Giving them access to running commands?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#193860 - 08/05/07 06:02 PM Re: Captcha not working, IIS6, ImageMagick [Re: BellaOnline]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Yes it is. CMD.EXE would then be able to run ANY COMMAND on the system with the same rights given. I would highly suggest you not do that.

I will try to research this further in the coming week if you don't find a better solution by then.
Top
#194027 - 08/07/07 02:44 PM Re: Captcha not working, IIS6, ImageMagick [Re: ntdoc]
Mors Offline
addict
Registered: 06/26/06
Posts: 471
Loc: So. California
I use GD2 and it works perfectly on IIS6
_________________________
Happy Customer !!!
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10489 Members
36 Forums
33841 Topics
181706 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image