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 » Thu Sep 10, 2009 4:42 pm

I restored my original lighttpdctl.sh, put the new watchdog in place, stopped ZSCE and started it again. Perfect :-) Thanks for the hard work, we poor old mac folk really do appreciate it!

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 » Thu Sep 10, 2009 6:09 pm

Hello,

Thanks for letting us know.
Glad to hear its all working :)
May the source be with you,

Jess Portnoy

malatmals
Posts: 5
Joined: Thu Sep 10, 2009 11:29 pm

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

Post by malatmals » Thu Sep 10, 2009 11:56 pm

smithdg wrote:
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 have the same problem with mysql - I cant remember for sure but I may have bound to an ip instead of using the socket... if that matters. I have no socket either.

urkman
Posts: 34
Joined: Thu Jan 15, 2009 9:15 am

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

Post by urkman » Sat Sep 12, 2009 9:04 pm

Hello,

I can't start MySQL...
macbook-pro:~ urkman$ sudo /usr/local/zend/bin/zendctl.sh start-mysql
Starting MySQL
. ERROR! Manager of pid-file quit without updating file.
Any Ideas on this?

Thanks and Greetings,
Urkman

mediaspike
Posts: 2
Joined: Mon Sep 14, 2009 3:30 pm

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

Post by mediaspike » Mon Sep 14, 2009 7:48 pm

Apologies if this appears twice...

I was having the same pid-file-related problems with MySQL as has been mentioned previously. I solved it by reinstalling Zend Server. The whole thing took about 15 minutes.

1. stop zend server

Code: Select all

zendctl.sh stop
2. back up your conf, htdocs, and data directories

Code: Select all

mkdir ~/foo
cp -r /usr/local/zend/apache2/conf ~/foo
cp -r /usr/local/zend/apache2/htdocs ~/foo
cp -r /usr/local/zend/mysql/data ~/foo
3. remove zend server with the uninstall script provided

Code: Select all

/usr/local/zend/bin/uninstall.sh
4. download and reinstall a fresh copy of the server.

5. stop the new server if it is running.

6. replace the default /usr/local/zend/bin/watchdog binary with the new one mentioned around page 3 or 4 of the responses on this thread.

7. restore the conf, htdocs, and data directories from step 2 of this process

8. start the server.

That's it.

Your mileage may vary.

--Mark

brake6
Posts: 28
Joined: Tue Apr 21, 2009 6:59 pm

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

Post by brake6 » Tue Sep 15, 2009 11:01 pm

Thanks for the modified watchdog file. Everything seems to working - except, when running "php -v" in Terminal I got this output:

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/oci8.so' - dlopen(/usr/local/zend/lib/php_extensions/oci8.so, 9): Library not loaded: /scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1
  Referenced from: /usr/local/zend/lib/php_extensions/oci8.so
  Reason: image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/pdo_oci.so' - dlopen(/usr/local/zend/lib/php_extensions/pdo_oci.so, 9): Library not loaded: /scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1
  Referenced from: /usr/local/zend/lib/php_extensions/pdo_oci.so
  Reason: image not found in Unknown on line 0
PHP 5.3.0 (cli) (built: Jul  8 2009 14:18:01) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
    with Zend Extension Manager v5.1, Copyright (c) 2003-2009, by Zend Technologies
    - with Zend Data Cache v4.0, Copyright (c) 2004-2009, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Utils v1.0, Copyright (c) 2004-2009, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Optimizer+ v4.0, Copyright (c) 1999-2009, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Debugger v5.2, Copyright (c) 1999-2009, by Zend Technologies [loaded] [licensed] [enabled]
There are some warnings in the beginning... Anything to worry about until the next version of ZSCE is out?

-- Magnus

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 » Wed Sep 16, 2009 3:16 am

I have a problem (i guess after updating to 10.6.1 but I'm not sure)

Terminal output:
bash-3.2# ./zendctl.sh start
Starting ZendServer 4.0.5 ..

/usr/local/zend/bin/apachectl start [OK]
spawn-fcgi: socket is already in use, can't spawn
Starting ZendServer GUI [Lighttpd] [OK]
[ 16.09.2009 05:14:38 SYSTEM] watchdog for lighttpd is running.
[ 16.09.2009 05:14:38 SYSTEM] lighttpd is running.
Starting MySQL
. ERROR! Manager of pid-file quit without updating file.
Starting Java bridge [OK]
[ 16.09.2009 05:14:39 SYSTEM] watchdog for java_daemon is running.
[ 16.09.2009 05:14:39 SYSTEM] java_daemon is running.

ZendServer started...
bash-3.2#
MySql seems to have a problem with pid-file

EDIT:
Ok I reinstalled ZS CE as mentioned on pre-previous post but for data folder of mysql I delete these files to make it work (it didn't work with the old ones): config.ini, il_logfile0, il_logfile1, ibdata1, my.cnf, panosru-mac.local.err (instead of "panosru" you will have your own username) and these folders: mysql, test

Thanks mediaspike for the tip! :)

EDIT2:
Now phpMyAdmin does not read the tables from the databases... any help on this?
INTERACTIVE WEB SOLUTIONS | Zend PHP 5 Certified Engineer
PHP Development / Zend Framework / jQuery / XHTML / CSS
-----------------------------------------------
Online CV: http://www.panosru.com/
-----------------------------------------------

cobby
Posts: 4
Joined: Wed Sep 16, 2009 11:01 am
Location: Australia
Contact:

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

Post by cobby » Wed Sep 16, 2009 11:11 am

I have fixed problems with watchdog, but I still get this error:

Code: Select all

spawn-fcgi: socket is already in use, can't spawn
Any ideas on how to fix this?

BTW- The MySQL PID errors you guys where getting is permission issues on your MySQL data directory.
cobbweb : web development blog - http://www.cobbweb.me

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 » Wed Sep 16, 2009 12:41 pm

Cobby, which permissions I should set for data folder and its subfolders and files to make it work?
INTERACTIVE WEB SOLUTIONS | Zend PHP 5 Certified Engineer
PHP Development / Zend Framework / jQuery / XHTML / CSS
-----------------------------------------------
Online CV: http://www.panosru.com/
-----------------------------------------------

cobby
Posts: 4
Joined: Wed Sep 16, 2009 11:01 am
Location: Australia
Contact:

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

Post by cobby » Wed Sep 16, 2009 1:02 pm

My permission look like this:

Code: Select all

drwxrwxr-x+ 125 zend  wheel      4250 30 Jul 00:07 2b
-rwxrwxr-x    1 zend  wheel     94014 16 Sep 20:23 Cobbys-Macbook-Pro-2.local.err
-rw-rw----    1 zend  wheel         5 16 Sep 20:23 Cobbys-Macbook-Pro-2.local.pid
drwxrwxr-x+  39 zend  wheel      1326 30 Jul 00:07 some_database1
drwxrwxr-x+  51 zend  wheel      1734 30 Jul 00:07 cobbweb
-rwxrwxr-x    1 zend  wheel       905 29 Jul 23:59 config.ini
drwxrwxr-x+  93 zend  wheel      3162 30 Jul 00:07 some_database2
-rwxrwxr-x    1 zend  wheel   5242880 16 Sep 20:23 ib_logfile0
-rwxrwxr-x    1 zend  wheel   5242880 28 Aug 13:59 ib_logfile1
-rwxrwxr-x    1 zend  wheel  60817408 16 Sep 20:23 ibdata1
...
According to http://www.thisismobility.com/blog/2009 ... w-leopard/, creating a zend user could help:

Code: Select all

sudo dscl . -create /Users/zend UniqueID 103
cobbweb : web development blog - http://www.cobbweb.me

Post Reply