Server CE 4.0.5 & Mac Snow Leopard & xdebug

General discussion for the Zend Server CE

Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby davepoon on Sun Aug 30, 2009 4:47 am

xdebug is no longer working after upgrading Mac to Snow Leopard.
I checked the phpinfo page, there's no xdebug loaded, and I checked the extension page on the admin interface,
xdebug was there, but it was off, I tried to turn it on again, and restarted the server, there's error that is not allow me to turn it on again.
Anyone got this problem?
davepoon
 
Posts: 2
Joined: Sun Aug 30, 2009 4:32 am

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby jess04 on Sun Aug 30, 2009 7:17 am

Hello,

XDebug is a Zend extension. I don't mean its written by Zend, but whether, that it loads in a somewhat different way.
While, most PHP extensions are loaded by inserting the "extension" directive in one of the INIs the Zend Engine scans:
extension=ext.so
Zend extensions are loaded thusly:
zend_extension=/path/to/ext

Our UI currently does not distinguish the 2 separate types and hence tries to load XDebug by inserting "extension=".
Nothing to worry about though, the extension itself and load and work properly, just a UI issue.

This is known to us and will probably be fixed in the future.

If, after inserting the directive as described above, it still doesn't work, please let me know and I'll try to reproduce locally.

Thanks,
May the source be with you,

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

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby davepoon on Mon Aug 31, 2009 10:12 am

Thank you for your quick reply.
And you are right, it is working properly, it is just a UI problem,
thanks.

Dave
davepoon
 
Posts: 2
Joined: Sun Aug 30, 2009 4:32 am

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby jess04 on Mon Aug 31, 2009 1:09 pm

Hi Dave,

You're quite welcome :)
Glad it works.
May the source be with you,

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

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby belyakov on Fri Sep 11, 2009 6:40 pm

Hello,

This doesn't seem like a UI issue to me.
I have exactly the same situation - ZendServer CE 4.0.5/PHP 5.2.10/Mac OS X 10.6 (SnowLeopard)

So after some fighting i finally installed PHPUnit along with xdebug that shows up in the Extensions list of ZS.
It is still marked as 'OFF' in the UI and does not appear in php_info().

When i run PHPUnit from console i get:
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so: (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so: (null)

So i guess it's not working.
belyakov
 
Posts: 12
Joined: Sat Apr 25, 2009 1:26 pm

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby jess04 on Fri Sep 11, 2009 7:14 pm

Hello,

Please look in /usr/local/zend/etc/php.ini and under /usr/local/zend/etc/conf.d and make sure XDebug is not attempting to load as a regular PHP extension [extension=xdebug.so]. If, indeed, that's not the issue, please attach your Apache error log so I can provide further assistance.
Also, though not related, did you download the up to date Watchdog binary from here?
http://forums.zend.com/viewtopic.php?f=44&t=1115&start=30#p8304

Thanks,
May the source be with you,

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

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby belyakov on Fri Sep 11, 2009 7:43 pm

jess04 wrote:Please look in /usr/local/zend/etc/php.ini and under /usr/local/zend/etc/conf.d and make sure XDebug is not attempting to load as a regular PHP extension [extension=xdebug.so]. If, indeed, that's not the issue, please attach your Apache error log so I can provide further assistance.
Also, though not related, did you download the up to date Watchdog binary from here?
http://forums.zend.com/viewtopic.php?f=44&t=1115&start=30#p8304


Hi Jess!

First thank you for such a quick response.

What file exactly should i check under /usr/local/zend/etc/conf.d?
I checked the php.ini and the extension is loaded as zend_extension.
If i try to load it as a regular extension i get XDebug marked with 'ERR' instead of 'OFF' in ZendServer UI.
So it's being loaded as zend_extension.

Yes, i did replaced the new Watchdog binary from that thread.

And here's my apache error log.

Thanks a lot in advance.
Dmitry.

UPDATE: Looks like i cannot attach files to posts, so here's my apache error_log contents:

Code: Select all
[Fri Sep 11 22:31:55 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Sep 11 22:31:55 2009] [notice] Apache/2.2.12 (Unix) PHP/5.2.10 mod_ssl/2.2.12 OpenSSL/0.9.8k configured -- resuming normal operations
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
[Fri Sep 11 22:32:24 2009] [notice] SIGHUP received.  Attempting to restart
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
[Fri Sep 11 22:32:24 2009] [notice] Apache/2.2.12 (Unix) PHP/5.2.10 mod_ssl/2.2.12 OpenSSL/0.9.8k configured -- resuming normal operations
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
[Fri Sep 11 22:33:23 2009] [notice] caught SIGTERM, shutting down
Failed loading /usr/local/zend/lib/php_extensions/xdebug.so:  (null)
[Fri Sep 11 22:33:34 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Sep 11 22:33:35 2009] [notice] Apache/2.2.12 (Unix) PHP/5.2.10 mod_ssl/2.2.12 OpenSSL/0.9.8k configured -- resuming normal operations
belyakov
 
Posts: 12
Joined: Sat Apr 25, 2009 1:26 pm

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby jess04 on Fri Sep 11, 2009 7:47 pm

Hello Dmitry,

First, you're welcome.
I don't see the error log attached but I'd do:
# grep -i "xdebug" /usr/local/zend/etc/conf.d/* /usr/local/zend/etc/php.ini
May the source be with you,

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

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby belyakov on Fri Sep 11, 2009 8:18 pm

jess04 wrote:Hello Dmitry,

First, you're welcome.
I don't see the error log attached but I'd do:
# grep -i "xdebug" /usr/local/zend/etc/conf.d/* /usr/local/zend/etc/php.ini



Hi Jess,

There's nothing on "xdebug" under my /usr/local/zend/etc/conf.d/.
And the apache error log is in my previous post (i was unble to attach file to post)

In my php.ini i enable it like this:

Code: Select all
zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so

[xdebug]
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.show_local_vars=On
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20


Dmitry.
belyakov
 
Posts: 12
Joined: Sat Apr 25, 2009 1:26 pm

Re: Server CE 4.0.5 & Mac Snow Leopard & xdebug

Postby jess04 on Sat Sep 12, 2009 12:19 am

Hello Dmitry,

It seems as though your compilation of XDebug is corrupt in some way, here is my recommendation [run as super user]:
Remove this file, this is due to a PECL/PEAR related bug in PHP:
Code: Select all
# rm /usr/local/zend/share/pear/.channels/pear.php.net.reg

Update the channel:
Code: Select all
# /usr/local/zend/bin/pecl channel-update pecl.php.net

Run PECL to fetch and compile XDebug:
Code: Select all
# /usr/local/zend/bin/pecl install xdebug


Let me know if that worked well for you,
May the source be with you,

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

Next

Return to Zend Server Community Edition

Who is online

Users browsing this forum: No registered users and 1 guest