Zend Server CE and Mac OS X 10.6 (Snow Leopard)

General discussion forum for the Zend Server
knagurski
Posts: 27
Joined: Thu Feb 19, 2009 11:16 am

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by knagurski » Fri Aug 28, 2009 4:21 pm

dastatzend wrote:snowleopard fix:

use minimum ZendServer 4.0.5 CE

if the Backend lighthttpd not start - http://localhost:10081/ not aviable - start the deamon manual in terminal:

> sudo /usr/local/zend/gui/lighttpd/sbin/lighttpd -m /usr/local/zend/gui/lighttpd/lib -f /usr/local/zend/gui/lighttpd/etc/lighttpd.conf

best regards,
daniel.
This worked for me. What I ended up doing was creating a very quick sh script that started just the apache server in zend and then this. The contents of this is below. You could probably start mysql with it too, but my job uses Oracle, so I didn't need to.

Code: Select all

/usr/local/zend/bin/zendctl.sh start-apache
/usr/local/zend/gui/lighttpd/sbin/lighttpd -m /usr/local/zend/gui/lighttpd/lib -f /usr/local/zend/gui/lighttpd/etc/lighttpd.conf
Note that this should be two lines, not the 3 it's displaying as.

st4lk3r
Posts: 1
Joined: Fri Aug 28, 2009 5:21 pm

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by st4lk3r » Fri Aug 28, 2009 5:35 pm

jess04 wrote:Hello all,

I'm attaching a lighttpdctl.sh script that does not require the Watchdog utility as a temporary fix.
Please replace the one under: /usr/local/zend/bin/lighttpdctl.sh.

Thanks,
Hi Jess,

thanks for the workaround, I can confirm that it gives me access to the admin interface again. I still receive some warnings when calling zendctl.sh restart, it seems they are coming from the Java Bridge startup script, which also tries to use the watchdog and fails.

For completeness, I'll attach the console log from my latest zendctl.sh restart call.

Best regards,
Tobias

Code: Select all

bash-3.2# zendctl.sh restart
/usr/local/zend/bin/apachectl stop [OK]
/usr/local/zend/bin/apachectl start [OK]
spawn-fcgi: socket is already in use, can't spawn
ZendServer GUI [Lighttpd] is not running
/usr/local/zend/bin/shell_functions.rc: line 152:  5884 Illegal instruction     $WATCHDOG -i $BINARY > /dev/null 2>&1
/usr/local/zend/bin/shell_functions.rc: line 152:  5886 Illegal instruction     $WATCHDOG -t $BINARY > /dev/null 2>&1
Stopping Java bridge [FAILED]
/usr/local/zend/bin/shell_functions.rc: line 133:  5891 Illegal instruction     $WATCHDOG -i $BINARY 1>&3 2>&4
/usr/local/zend/bin/shell_functions.rc: line 133:  5892 Illegal instruction     $WATCHDOG -u $WD_UID -g $WD_GID -s $BINARY 1>&3 2>&4
Starting Java bridge [FAILED]
Shutting down MySQL
. SUCCESS! 
Starting MySQL
. SUCCESS! 

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by jess04 » Fri Aug 28, 2009 6:31 pm

Thanks, Tobias.

Indeed the JB daemon also utilizes the watchdog which is the binary causing the issue.
This will be fixed for the next release.

Many thanks to you and everyone else on this thread for helping me find these issues :)
May the source be with you,

Jess Portnoy

ungeheier
Posts: 1
Joined: Sun Aug 30, 2009 5:40 pm

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by ungeheier » Sun Aug 30, 2009 7:11 pm

I wish I had seen this thread earlier. I went through uninstalling and installing a few times.

Is there a way for you guys to notify or post something on the download page that there's issues with the current release and Snow Leopard and/or a link to a quick fix for those who already have it installed?

smithdg
Posts: 41
Joined: Sun Mar 22, 2009 3:32 am

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by smithdg » Mon Aug 31, 2009 10:36 pm

How should the mysql.sock be setup on 10.6? When I try to setup the root password, I get an error:

ratbert[384]:~ # /usr/local/zend/mysql/bin/mysqladmin -u root password yourrootsqlpassword
/usr/local/zend/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (62)'
Check that mysqld is running and that the socket: '/var/mysql/mysql.sock' exists!

panosru
Posts: 135
Joined: Mon Mar 02, 2009 2:40 pm
Location: Greece
Contact:

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by panosru » Mon Aug 31, 2009 10:45 pm

My .sock file is located under this location: /usr/local/zend/mysql/tmp/mysql.sock
INTERACTIVE WEB SOLUTIONS | Zend PHP 5 Certified Engineer
PHP Development / Zend Framework / jQuery / XHTML / CSS
-----------------------------------------------
Online CV: http://www.panosru.com/
-----------------------------------------------

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by jess04 » Mon Aug 31, 2009 10:52 pm

Hello,

Just pass --socket=/usr/local/zend/mysql/tmp/mysql.sock to the mysqladmin binary.

Let me know if you require further assistance,
May the source be with you,

Jess Portnoy

smithdg
Posts: 41
Joined: Sun Mar 22, 2009 3:32 am

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by smithdg » Mon Aug 31, 2009 10:55 pm

Ok, it turns out mysql is not running, when I try to start it, I get this error:

ratbert[379]:/usr/local/zend/mysql/tmp # /usr/local/zend/mysql/bin/mysql.server start
Starting MySQL
. ERROR! Manager of pid-file quit without updating file.

Also, the file:

/usr/local/zend/mysql/tmp/mysql.sock

does not exist.

alexeyschlossman
Posts: 14
Joined: Mon Apr 13, 2009 9:48 am

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by alexeyschlossman » Tue Sep 01, 2009 12:01 pm

Same thing I've got. Plus dead PostgreSQL.

smithdg
Posts: 41
Joined: Sun Mar 22, 2009 3:32 am

Re: Zend Server CE and Mac OS X 10.6 (Snow Leopard)

Post by smithdg » Tue Sep 01, 2009 6:47 pm

jess04 wrote:Hello,

Just pass --socket=/usr/local/zend/mysql/tmp/mysql.sock to the mysqladmin binary.

Let me know if you require further assistance,
I noticed I had a /private/etc/my.cnf file that was pointing to the wrong directory. Also I forgot to mention, I am using the NEW 5.3.0 version. As you can see from my previous post, mysql is not starting.

Post Reply