Page 5 of 7

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

Posted: Thu Sep 10, 2009 4:42 pm
by knagurski
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!

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

Posted: Thu Sep 10, 2009 6:09 pm
by jess04
Hello,

Thanks for letting us know.
Glad to hear its all working :)

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

Posted: Thu Sep 10, 2009 11:56 pm
by malatmals
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.

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

Posted: Sat Sep 12, 2009 9:04 pm
by urkman
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

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

Posted: Mon Sep 14, 2009 7:48 pm
by mediaspike
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

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

Posted: Tue Sep 15, 2009 11:01 pm
by brake6
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

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

Posted: Wed Sep 16, 2009 3:16 am
by panosru
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?

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

Posted: Wed Sep 16, 2009 11:11 am
by cobby
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.

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

Posted: Wed Sep 16, 2009 12:41 pm
by panosru
Cobby, which permissions I should set for data folder and its subfolders and files to make it work?

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

Posted: Wed Sep 16, 2009 1:02 pm
by cobby
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