Warning: exec() [function.exec]: Unable to fork

simplysoftware

Joined: 2005-02-14
Posts: 3
Posted: Mon, 2005-02-14 04:04

<your message here>
----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): /gallery
Gallery version: 1.4.4-pl2 (had to use my backed up one but the new one does the same too
Apache version: running iis 5.1
PHP version (don't just say PHP 4, please): 5.0.3
Graphics Toolkit: both installed niether working
Operating system: Windows NT 5.1 build 2600
Web browser/version (if applicable):

I have a lot of could not fork errors
the main problem I have is this one.......

Processing status...

- Adding DSC00182.jpg
Resizing/compressing original image
No resizing required
File C:/inetpub/wwwroot/albums/album02/DSC00182.jpg type 2.

Executing:

C:\netpbm\jpegtopnm C:\inetpub\wwwroot\albums\album02\DSC00182.jpg | C:\netpbm\pnmscale -xysize 150 150 | C:\netpbm\pnmtojpeg --quality=90 > C:\inetpub\wwwroot\albums\album02\DSC00182.thumb.jpg

Warning: exec() [function.exec]: Unable to fork [C:\netpbm\jpegtopnm C:\inetpub\wwwroot\albums\album02\DSC00182.jpg | C:\netpbm\pnmscale -xysize 150 150 | C:\netpbm\pnmtojpeg --quality=90 > C:\inetpub\wwwroot\albums\album02\DSC00182.thumb.jpg] in c:\Inetpub\wwwroot\gallery\platform\fs_win32.php on line 169

Results:
none

Status: -1 (expected 0)
Error: Unable to make thumbnail (0)
Need help? Look in the Gallery FAQ
No email sent as no valid email addresses were found

Which means it wont upload any files, Please Help,
PS I have had this working in the past but sice reinstalling I have not been able to use it

Login or register to post comments
nitrotn
nitrotn's picture

Joined: 2005-02-09
Posts: 391
Posted: Mon, 2005-02-14 19:08

Hi!

FAQ B.2. Does Gallery work under Windows?

Many people have gotten Gallery to work under Windows using Apache. However, Gallery does not interact well with IIS, because PHP still has some issues with executing programs like NetPBM and ImageMagick.

So - go Apache?

NitroTN

Login or register to post comments
klauvi

Joined: 2005-03-09
Posts: 4
Posted: Wed, 2005-03-09 21:36

I had the same problem on my PHP5/Win2k3/gallery1.4.4 installation. To fix it i had to grant Read&execute privileges to cmd.exe for IUSR_[computername]

Login or register to post comments