NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DBG installation problem under DirectAdmin and CentOs4.4


Joined: 26 Oct 2007
Posts: 2
Reply with quote
Hi Dmitry and others,
I'm having problems with debugger installation under Apache1.3.39 and DirectAdmin 1.31.0. I'm not sure if DirectAdmin causes this problem. I just mensioned that I have it Smile

What I have (according to dbg-wizard.php info):
-Apache/1.3.39 (Unix) mod_ssl/2.8.30 OpenSSL/0.9.7a PHP/4.4.7 mod_perl/1.29 FrontPage/5.0.2.2510
-Your PHP.INI file is /usr/local/Zend/etc/php.ini
-PHP extensions directory is ./
-DBG (PHP DEBUGGER) is NOT INSTALLED

Saying briefly, all I need is to copy dbg.so-4.4.x from dbg-3.1.11-Linux.tar.gz to any directory at my server and specify full path to dbg in php.ini. Is it right?
So what I did:
I found out that a symlink of php.ini is located there: /usr/local/lib/php.ini. It is the same file as /usr/local/Zend/etc/php.ini
I opened it scrolled to the bottom and added the following lines above ZendEncoder lines so the whole end of file looks like this:

--------
zend_extention=/usr/local/lib/dbg.so-4.4.x
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow= my.ip.add.ress localhost
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
zend_optimizer.version=3.3.0a
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
--------


I copied gbd to /usr/local/lib/dbg.so-4.4.x and saved php.ini and restarted apache:
apachectl restart

Then I navigated to phpinfo.php and saw that I dont have dbg installed. There were no any lines saying that dbg installed properly. Ok. I downloaded dbg-wizard.php and it told me that I need to do almost the same steps. I followed them again and it didn't lead me to success. Then I commented Zend extensions out as the following:

--------
zend_extention=/usr/local/lib/dbg.so-4.4.x
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow= 87.103.173.232 localhost
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

;[Zend]
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
;zend_optimizer.version=3.3.0a
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
--------
...restarted and found out in phpinfo.php that Zend disappeared but I still don't have gbd working anyway. Why is it so?
I checked the path to zend_extention=/usr/local/lib/dbg.so-4.4.x twice or even 4 times and it didn't help.

How can I track where the problem is? May be directadmin influences dbg installation somehow? They have http.conf files in different places. But I don't think Directadmin can forbid changing zend_extention path. I don't know what to do now.

Does anyone have any ideas? Thanks in advance.
View user's profileFind all posts by PaulMSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
check if dbg.so is taken from right archive and for the right php version, check if you copied it to right directory and assigned with right permissions, check if you edit right php.ini file and finally check if there are no problems in apache error_log.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Oct 2007
Posts: 2
Reply with quote
Hi Dmitry,

Ok. Things look weird. Here is what I've checked again:

1. I have php4.4.7 installed and I took dbg.so-4.4.x from dbg-3.1.11-Linux.tar.gz. Not the 64 bit version, I have 32 bit CentOs4.4 version. That's for sure. So I took it from dbg-3.1.11-Linux.tar.gz. Do I need to try ssl? I don't use it in my browser though.

2. Permissions. I copied dbg.so-4.4.x to /usr/local/lib where my php.ini is stored.
I set
chown root:root dbg.so-4.4.x
chmod 777 dbg.so-4.4.x
I now I'm absolutely sure that I have proper user and right assigned to it. I also double checked it using ls -l command and see it:

-rwxrwxrwx 1 root root 91632 Oct 26 23:52 dbg.so-4.4.x

3. I copied it to /usr/local/lib but I could copy it to any other directory, right? The main thing is that I need to specify a correct path to it in my php.ini file.

4. php.ini. I opened my php.ini file which is stored in /usr/local/lib/php.ini (symlink to /usr/local/Zend/etc/php.ini).
I opened php.ini and commented out Zends lines, saved the file, restarted apache and saw in phpinfo() that there was no zend encoder anymore. So I can be sure that I use right php.ini file. I removed those comments, restarted apache and saw zend encoder again. Ok.

5. I added...
zend_extention=/usr/local/lib/dbg.so-4.4.x
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow= 87.103.173.232 localhost
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

...lines BEFORE zend encoder lines, saved php.ini, restarted apache, openede phpinfo() and there was Zend Encoder support but there was no debugger installed as I used to see it at my windows local machine.


6. Apache error log. There was no apparent errors in apache error log. Just a few notices:
[Thu Nov 1 10:59:30 2007] [notice] SIGHUP received. Attempting to restart
[Thu Nov 1 10:59:30 2007] [notice] Apache/1.3.39 (Unix) mod_ssl/2.8.30 OpenSSL/0.9.7a PHP/4.4.7 mod_perl/1.29 FrontPage/5.0.2.2510 configured -- resuming no
[Thu Nov 1 10:59:30 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Nov 1 10:59:30 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)

What else can I check? Seems I understand everything ok now, but I don't have a clue why I don't see debugger in the first lines in phpinfo as I see it on my windows platform. Any ideas?

May be the problem is that zend_extention= variable is used by both, Zend and dbg debugger? Can it be the problem?
View user's profileFind all posts by PaulMSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
I think it'd make much more sense if you contact NuSphere Support team directly using this page http://shop.nusphere.com/contact_us/ and provide more info about your system, including phpinfo() output.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
DBG installation problem under DirectAdmin and CentOs4.4
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