08 August 2008

Security Update Broke FogBugz

[Warning: highly technical post, partly so I can find this again if need be.]

I just installed the latest security update (2008-005) on Mac OS X 10.5, and while Fogbugz is accessible, it doesn’t seem like the maintenance service is running. (I can manually run the heartbeat to process e-mail.)

% sudo ./fogbugzmaintd start
FogBugz Maintenance Service started
% ps -A | grep fog
  124 ??         1:06.48 mono /Library/WebServer/fogbugz/Accessories/SearchTool.exe -server /Library/WebServer/fogbugz/Accessories/search.socket
 8546 ttys001    0:00.00 grep fog
% ps -A | grep php
 8549 ttys001    0:00.00 grep php

I guess it's likely that there’s a different PHP or something...

% which php
/usr/bin/php
% php --version
PHP 5.2.6 (cli) (built: Jul 15 2008 12:18:21) 
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

I changed a line in fogbugzmaintd to read

    (cd ${PREFIX}/Accessories; nohup /opt/local/bin/php -d max_execution_time=0 -d allow_call_time_pass_reference=Yes ./fogbugzmaintd.php >/dev/null &)

and it seems fine.

2 comments:

joshpaul said...

Do you have any more detailed information on your fix, and how it's working out for you? I seem to have run into the same issue...

David Dunham said...

The file /Library/WebServer/fogbugz/Accessories/fogbugzmaintd just needs the location of where you have the copy of PHP you compiled as part of the FogBugz installation (in my case "/opt/local/bin/php").