View Full Version : Uploading CGI Error
October 25th, 2007, 03:23 AM
I'm new at installing Photopost, so any help would be greatly appreciated.
Basically everything seems to be running fine and everything works except for when it tries to move the images from the uploads to data folder and generating the thumbnails.
I get the error below.
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
The images upload fine and I can see them inside the uploads folder. It just errors out after that.
The site is hosted on a Windows 2003 server using ImageMagick.
I've searched the forum, double check the folder and ImageMagick path and everthing seems to be in order. Both the uploads and data folder have full Write, Edit permissions.
I also added ISR and IWAM to the cmd.exe file as suggested in another thread. At the moment I am completely stumped.
October 25th, 2007, 03:26 AM
I forgot to add, the server is currently running on PHP 4.4 and mySQL 4
October 25th, 2007, 10:06 AM
Hello well what have you selected to use as your image processor? what is a link to your phpinfo so I can see how your server php is setup?
Have you set your uploads and data directories to be RED WRITE EXECUTE?
October 25th, 2007, 01:28 PM
Yes ImageMagick was selected as the processor.
Both uploads and data directories have full access.
October 25th, 2007, 01:35 PM
Okay try using gd2 as your image selector if its installed with your php.
I cant see that php info sorry I am not an admin on your site ;)
October 25th, 2007, 02:52 PM
I tried selecting GD2 and get a PHP error.
Fatal error: Call to undefined function: imagecreatefromgif() in image-inc.php on line 102
October 25th, 2007, 03:09 PM
Okay please download off this page the phpinfo file and upload it to your gallery directory
maybe your gd does not do gif images. delete all images under your uploads directory via ftp and just try a jpg image.
October 25th, 2007, 03:26 PM
I tried a jpg file and received the same error.
October 25th, 2007, 03:36 PM
You do not have GD installed well
Basically uploads data need to have full read write execute permissions for iwam and iuser as well as guests. I would suspect permissions are not correct on the server. There is also a switch in image-inc.php you can set to NT and see if that helps
function fs_exec( $syscmd )
// set this to NT if the default doesnt work for you and you are running on an NT server
$OS = "any";
if ( $OS == "any" )
exec( $syscmd, $return, $retval );
exec( "cmd.exe /c $syscmd", $return, $retval );
return( $retval );
October 25th, 2007, 03:55 PM
I tried setting it from any to NT yesterday as well. No luck.
Can you elaborate further on what files are needed to get GD installed? Are there installation files out there for this? I can pass it on to our system admin.
Thanks for your help so far.
October 25th, 2007, 05:54 PM
Basically on a windows system its easy. Have your sysadmin make sure you have the full php version installed on your server complete with the extentions directory. Make sure in your php.ini file you have the extentions directory set and uncomment the line to load the gd2 dll. Your sys admin should know exactly what I am talking about. Once he does that gd2 will be available and you can try that.
October 25th, 2007, 10:56 PM
Ok I've forwarded the info to our admin.
However just for testing sake, I installed a copy of coppermine and everything seems to be working. It even created the thumbnails with imagemagick.
October 26th, 2007, 09:23 AM
I can not comment on coppermine sorry or how it operates. Never used it. I can tell you in our program if the proper permissions are not set with Imagemagick in windows it will not work. I think your exact error is UNABLE TO FORK which means its permissions. These are usually set backend by the sysadmin since most windows hosting users can not access the correct things to set permissions. Most give up and use GD2 since its part of PHP. Imagemagick can be painful to setup with windows.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.