NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Problems installing debugger *solved*


Joined: 25 Jul 2006
Posts: 70
Reply with quote
I'm having some difficulty installing the debugger on an Apache 2.0.55 installation. I've followed the directions to a T, here are the relevant sections of php.ini

[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=71.198.65.110
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

[Zend]
zend_extension=/usr/lib/apache/dbg.so-5.1.x
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.10
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.10
zend_optimizer.version=2.5.10a
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

For some strange reason, doing a 'php -v' at the comand line I get:
PHP 5.1.4 (cli) (built: Aug 31 2006 21:58:40)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with DBG v3.1.6, (C) 2000,2006, by Dmitri Dmitrienko

But when I do a phpinfo(); call I do not get the "with DBG" line.

Any ideas?
View user's profileFind all posts by cpriestSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8351
Reply with quote
Quote:
Any ideas?

Check if they are showing the same path to php.ini in phpinfo.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 25 Jul 2006
Posts: 70
Reply with quote
Both show /usr/local/Zend/etc/php.ini
View user's profileFind all posts by cpriestSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8351
Reply with quote
then both should load the same extension, right? Smile
Double check your configuration. There are no other reasons for missed extensions.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Solution Found...


Joined: 25 Jul 2006
Posts: 70
Reply with quote
Turns out that Zend Extension Manager was having trouble itself, giving me:

Failed loading /usr/local/Zend/lib/ZendExtensionManager.so: /usr/local/Zend/lib/ZendExtensionManager.so: undefined symbol: zend_extensions
Failed loading /usr/lib/apache/dbg.so-5.1.x: /usr/lib/apache/dbg.so-5.1.x: undefined symbol: OnUpdateLong

Errors. Turns out I had compiled php with --enable-versioning. After taking that out and recompiling, it all came up perfect.
View user's profileFind all posts by cpriestSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8351
Reply with quote
Quote:
I'm confused, if its the same configuration, is there any reason why the Apache module should not load the debugger?


yep, there is always space for such things to happen.

Quote:
Failed loading /usr/local/Zend/lib/ZendExtensionManager.so


Why do you need this library at all?

Quote:
After taking that out and recompiling, it all came up perfect


So it's my understanding that after your re-compiled without that command line argument, you got ZendExtensionManager.so loaded and did not experience any problems with dbg.so either. Right?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 25 Jul 2006
Posts: 70
Reply with quote
Yeah that's right, all around that --enable-versioning compile flag.
View user's profileFind all posts by cpriestSend private message
Problems installing debugger *solved*
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic