Ripping mobility from the clutches of telecom
Zend Server Community Edition vs Snow Leopard
After upgrading to Snow Leopard we’ve had only one real issue so far, Zend Server Community Edition didn’t want to start up. Well, technically, parts of it. The apache instance was running, by mysql and the admin interface were dead. I found this post about watchdog errors, but even after putting in the fix for lighthttpd I still wasn’t getting the services starting up. Same deal for Tony. Poking around in the startup files it looked like mysql data was owned by user 103, and the mysql scripts were trying to start as user ‘zend’, however I have no zend user on my system. I wasn’t able to find anything about it, but I figured hell, let me give it a try and create a user Zend. This is the command to run from the terminal (funky huh?):
sudo dscl . -create /Users/zend UniqueID 103
Which creates a zend user.. somewhere.. I’m not familiar with that bit of OS X magic yet. It’s not in /etc/passwd, but if you ‘ls -l /usr/local/zend/mysql’ you should see the data directory owned by zend again. Now just restart and you should be peachy:
sudo /usr/local/zend/bin/zendctl.sh restart
Works for Tony and I at least, so we figured we would share. голова болит ÑÐµÐºÑ Ð³Ð¾Ð»Ð¾Ð²Ð° болит ÑекÑ
| Print article | This entry was posted by miker on September 2, 2009 at 3:53 pm, and is filed under Open Source, Software, Technology. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 12 months ago
Cheers for this post…worked for me also. Thanks Again Gower
about 12 months ago
Didn’t work for me. I still get Illegal Instruction errors.
about 11 months ago
how did you see it was 103?
about 11 months ago
I could see it was 103 by doing an ls -l on the data directory. If there’s no username associated with the user ids for a file owner, the raw number is printed instead of the user friendly name.
about 11 months ago
Worked for me! Hope Zend will fix this issue soon. Should not be that much of a problem.
about 10 months ago
I’ve heard there are some wildlife groups trying to get Apple to do more stuff with the actual S.L.’s lol. I don’t know- people are saying it’s good PR for Apple- they should jump on that.
about 9 months ago
You might want to do a bit more for completeness.
sudo dscl . -create /Users/zend uid 103 UserShell /usr/bin/false RealName “ZendServer’s dedicated group”
– This will create a user with a bit more information and the inability to use a shell on default log in (bit of security there); along with a name so you can see why it exists. Also:
sudo dscl . -create /Groups/zend gid 103
– The installer creates a group with a matching gid. Not sure where that’s used, but I think the default installer creates that group even if the uninstaller doesn’t get rid of that group.
Found the above our running two machines side by side – one that had snow leopard on it before I installed ZendServer; and one that had snow leopard installed afterwards (which is what nuked the zend user and group)