NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How install dbg


Joined: 03 Mar 2005
Posts: 2
Reply with quote
1. Sorry for my english
2. I have read http://forum.nusphere.com/howto-install-debugger-module-t576.html ( its like to "Configuring 3rd party WEB server" from PhpED manual )
3. I have
FreeBSD 4.10
apache 1.3.33
PHP 4.3.10

Apache works in chroot : /var/chroot/apache_1.3.33

I get phpEd 3.3.3evl and install it on my win computer.
I take dbg.so-4.3.10 from debugger\server\FreeBSD\dbg-2.16.16-FreeBSD-4.10.tar.gz ( from dir i386 ) and put it to /var/chroot/apache_1.3.33/var/php/extension

Edit php.ini ( in my chroot ) :
extension_dir = "/var/php/extension"

extension=dbg.so-4.3.10

[debugger]

debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=192.168.4.5
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

192.168.4.5 - my comp with phpEd

Reload Apache and see phpifo() : don't see string like "DBG v2.16, (C) 2000,2004, by Dmitri Dmitrienko"

I insert next strings to my php script:

if( dl('dbg.so-4.3.10') ) echo "load dbg.so-4.3.10 <br>\n";
else echo "not load dbg.so-4.3.10 <br>\n";

and try again and have seen message about bad "libwrap.so.3" and "not load dbg.so-4.3.10"

I copy libwrap.so.3 to my chroot and try again and see message "load dbg.so-4.3.10"

But I could not see string about "DBG v2.16, (C) 2000,2004, by Dmitri Dmitrienko"

In apache error_log:
[Thu Mar 3 15:39:11 2005] [notice] Apache/1.3.33 (Unix) PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e configured -- resuming normal operations
[Thu Mar 3 15:39:11 2005] [notice] Accept mutex: flock (Default: flock)

I have no any string like "zend_extension" in php.ini.
What i have to do to install DBG ?
View user's profileFind all posts by VictorSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
login via chrooted user account or somehow else check dependencies for dbg.so modue by running ldd (verbose mode) under chrooted account.
Then make sure libwrap is installed correctly and chrooted /etc/ contains hosts.allow and hosts.deny
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Thanks


Joined: 03 Mar 2005
Posts: 2
Reply with quote
I have made:
cat /etc/hosts.allow

and have seen :
.......
NOTE: The hosts.deny file is deprecated
.......

There for i have copied only /etc/hosts.allow to my chroot and restarted apache. After that i have seen string : "with DBG v2.16.16, (C) 2000,2004, by Dmitri Dmitrienko" on page with phpinfo().

Thank you. Now i shall try to use remote gebugging.
View user's profileFind all posts by VictorSend private message
How install dbg
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