Skip to content


Zend Server CE and Snow Leopard OS X 10.6.1

While trying to get Zend Server Community Edition to work on my new Snow Leopard install I ran into a couple issues.

If you receive a connection error while trying to access http://localhost:10081 you are likely experiencing the same issue.

First we want to define our paths for zend.

PATH=$PATH:/usr/local/zend/bin:/usr/local/zend/mysql/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib

Next lets try and restart zend server to check for the next tell-tale sign that we need to patch our install.

sudo zendctl.sh restart

If you receive an error that looks like the following:

/usr/local/zend/bin/apachectl stop [OK]
/usr/local/zend/bin/apachectl start [OK]
/usr/local/zend/bin/shell_functions.rc: line 152:  1793 Illegal instruction     $WATCHDOG -i $BINARY > /dev/null 2>&1
/usr/local/zend/bin/shell_functions.rc: line 152:  1796 Illegal instruction     $WATCHDOG -t $BINARY > /dev/null 2>&1
Stopping ZendServer GUI [Lighttpd] [FAILED]
spawn-fcgi: child spawned successfully: PID: 1804
/usr/local/zend/bin/shell_functions.rc: line 133:  1812 Illegal instruction     $WATCHDOG -i $BINARY 1>&3 2>&4
/usr/local/zend/bin/shell_functions.rc: line 133:  1813 Illegal instruction     $WATCHDOG -u $WD_UID -g $WD_GID -s $BINARY 1>&3 2>&4
Starting ZendServer GUI [Lighttpd] [FAILED]
/usr/local/zend/bin/shell_functions.rc: line 152:  1844 Illegal instruction     $WATCHDOG -i $BINARY > /dev/null 2>&1
/usr/local/zend/bin/shell_functions.rc: line 152:  1845 Illegal instruction     $WATCHDOG -t $BINARY > /dev/null 2>&1
Stopping Java bridge [FAILED]
/usr/local/zend/bin/shell_functions.rc: line 133:  1851 Illegal instruction     $WATCHDOG -i $BINARY 1>&3 2>&4
/usr/local/zend/bin/shell_functions.rc: line 133:  1852 Illegal instruction     $WATCHDOG -u $WD_UID -g $WD_GID -s $BINARY 1>&3 2>&4
Starting Java bridge [FAILED]
 ERROR! MySQL manager or server PID file could not be found!

Then you need to patch your install. The problem lies within the watchdog. To solve this problem visit the zend forums, download the watchdog patch and restart.
Zend ForumDirect Download Link.

After you have downloaded the watchdog patch, you will want to copy your old watchdog.

sudo cp /usr/local/zend/bin/watchdog /usr/local/zend/bin/watchdog.old
 
Then restart zend server
 
sudo zendctl.sh restart

Everything should work now.

Happy coding.

Posted in Snow Leopard, Zend Server.

2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Jamison said

    You saved my life with that post – couldn’t find any helpful hints via Google or on other websites – THANK YOU!!

  2. Willis said

    Thanks for this! Saved me lots of time

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.