NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Cannot get dbg.so-5.1.2 to work on fedora with PHP 5.1.2


Joined: 28 Mar 2006
Posts: 7
Reply with quote
Hi,

I've just downloaded and installed the latest trial version. I'm evaluating this product againts vs.php. So far looking good. Although, I'm having problems in getting the dbg to work on my remote linux box.

I want to develop on my Windows system and deploy the code onto my linux. I want to set up remote debugging.

I've followed the instructions on how to install the dgb module on linux to the letter. However, it's not showing up on my phpinfo.

I've got PHP version 5.1.2 installed and have copied across the dbg.so-5.1.2 module to the /usr/lib/php/modules folder. I've added the following to the php.ini file:

extension_dir="/usr/lib/php/modules"
.
.
.
extension=dbg.so-5.1.2

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

Restarted httpd. But phpinfo doesn't come up with the dbg module at all. Needless to say, I cannot connect either, from PHpEd.

I've gone through it with a fine toothcomb, but can't figure out why it's not working.

Any help would be most appreciated!

Cheers,
Tarique.
View user's profileFind all posts by tnaseemSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
Dear Tarique, could you please provide more info about your environment. We will need the things like:
- which flavor of Linux are you running on?
- do you have any Zend directives in your php.ini file?
- do you have any other php extensions in /usr/lib/php/modules and do they show up fine in phpinfo()?

I assume that you followed the instructions from http://forum.nusphere.com/howto-install-debugger-module-t576.html - correct?

Thanks!
View user's profileFind all posts by yfaktorSend private message


Joined: 28 Mar 2006
Posts: 7
Reply with quote
hi,

Many thanks for the quick reply...

I'm running Apache 2.0.54 on Fedora Core 4.

There are no zend directives in the php.ini file. Just checked again to make sure.
All the other extensions are commented out (dll's actually for some reason).

Now although mysql, etc are coming up in phpinfo the modules were actually compiled in. The modules folder does actually contain those mysql.so files though, even though they're not being used I guess. (MySQl version 4.1.16).

One thing though - the phpinfo does give me a zend section (Powered by Zend Engine 2), such as:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Although it doesn't contain the "with DBG v2.20, (C) 2000,2005, by Dmitri Dmitrienko" bit.

Any clues?
View user's profileFind all posts by tnaseemSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
I am sorry - you did say Fedora in the subject before, I missed - my bad. Thanks very much for the info, let us take a look now...
View user's profileFind all posts by yfaktorSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
One more thing: is there anything in your Apache log files - namely in error_log? Something like PHP Warning: PHP Startup: Unable to load dynamic library or anything similar to this?
Thanks
View user's profileFind all posts by yfaktorSend private message


Joined: 28 Mar 2006
Posts: 7
Reply with quote
Nothing in my error_log file (/var/log/httpd/error_log).

I've just deleted it and restarted apache to check again (clean the log file up!). There's only about 8 lines in there now. Nothing PHP related:-

[Tue Mar 28 18:38:44 2006] [notice] core dump file size limit raised to 4294967295 bytes
[Tue Mar 28 18:38:45 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 28 18:38:46 2006] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 28 18:38:46 2006] [notice] Digest: done
[Tue Mar 28 18:38:46 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Mar 28 18:38:46 2006] [notice] LDAP: SSL support unavailable
[Tue Mar 28 18:38:47 2006] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
[Tue Mar 28 18:38:47 2006] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations

If you need me to run anything else and give you results, let me know. Smile Thanks for your help!
View user's profileFind all posts by tnaseemSend private message


Joined: 28 Mar 2006
Posts: 7
Reply with quote
In case this helps...

I've saved my phpinfo page as a html file and uploaded it here:

[url]XXXXXXXXXXX/phpinfo.htm[/url]

I've also uploaded my php.ini file to

[url]XXXXXXXXXXX/php/php.ini[/url]

Just in case there's anything in there that might shed any light on the problem.

EDIT: I removed the links for safety
View user's profileFind all posts by tnaseemSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Just a kind of silly question Smile Did you restart httpd? You have to explicitly stop and start daemon.
Reload does not work when php.ini is changed.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 28 Mar 2006
Posts: 7
Reply with quote
Hi,

Yes, I did a:

service httpd restart

Is this okay?
View user's profileFind all posts by tnaseemSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
/etc/init.d/httpd restart
and check your php.ini in /usr/local/lib/
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 28 Mar 2006
Posts: 7
Reply with quote
Same result, I'm afraid!

My php.ini file is actually in "/etc/php.ini", which I've uploaded as mentioned above.
View user's profileFind all posts by tnaseemSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
My php.ini file is actually in "/etc/php.ini",

your php.ini in the directory where php found it.
To get it in /etc/ you had to add appropriate argument for configure
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Cannot get dbg.so-5.1.2 to work on fedora with PHP 5.1.2
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 2  

  
  
 Reply to topic