NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
php4.3.5RC2


Joined: 28 Jan 2004
Posts: 17
Location: nd
Reply with quote
I just recomplied my PHP from this new release.

Now the debugger is reporting the all too familiar
"Failed to run debugeer Check PHPed and dbg setting"

Is this do say that "dbg.so" that came with the trial version of PHPEd needs updating too?

Should I just go back to PHP-4.3.4. Do a "make install" to recover dugger fuctionality.

thank you
View user's profileFind all posts by cwynnSend private messageVisit poster's websiteICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
you'd give dbg.so-4.3.4 a try.
All 4.3.x share the same API and theoretically can be installed regardless of the minor version number.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 28 Jan 2004
Posts: 17
Location: nd
Reply with quote
/usr/local/nusphere/phped/php/extentions does not have the file dbg.so-4.3.4.

The highest version is dbg.so-4.3.3

I tried:
extention=dbg.so-4.3.3

stopped and started Apache

but get the same error message
"Failed to run degugging session"
"Check phped and dbg setting"

Is there a dbg.so-4.3.4?

thank you
View user's profileFind all posts by cwynnSend private messageVisit poster's websiteICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Where did you look for dbg.so ?
I think even dbg.so-4.3.3 or any other 4.3.? should work.

Please read FAQ on how to check if dbg is set up properly.
howto-run-debug-session-t585.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 28 Jan 2004
Posts: 17
Location: nd
Reply with quote
quote:
Where did you look for dbg.so ?
ans:
extension=/usr/local/nusphere/phped/php/extensions

this is the same php.ini that was working with php-4.3.4 using simply dbg.so

The "make install" of php-4.3.5RC2 does not replace the php.ini

Until I made the change you last suggested, this was "the" working php.ini that I used with php-4.3.4

My thoughts are maybe I should have removed the /usr/local/apache/php contents so the install of php-4.3.5RC2 creates new contents in this directory. Then I edit the new php.ini that gets created adding the phped scripts for the dbg

that's going to be my next move.
View user's profileFind all posts by cwynnSend private messageVisit poster's websiteICQ Number


Joined: 28 Jan 2004
Posts: 17
Location: nd
Reply with quote
replacing /usr/local/apache/php did not correct my problem.
"make install" does not replace the php.ini. You have to take the php.recommended it creates and phycaly copy it to /usr/local/apache/php; then edit it.

I can not believer I'm back at into this problem of getting this debugger to respond.

I have repeatedly examined howto-run-debug-session-t585.html
I have not changed any of the PHPEd setting since I had it DBG working prior to installing php-4.3.5RC2

I can not isolate this issue

I will be absent for a week after tomorrow, maybe that's what I need at this point
View user's profileFind all posts by cwynnSend private messageVisit poster's websiteICQ Number


Joined: 28 Jan 2004
Posts: 17
Location: nd
Reply with quote
I think this is my problem:
Configuration File (php.ini) Path /usr/local/lib

This is what my phpinfo is reporting.
My mistake. I wasn't scrutinizing phpinfo.php as I should have been.
Apparently I did "not" use the same "configure" that I used with php-4.3.4 when I compiled php-4.3.5RC2.



I moved a copy of my php.ini into /usr/local/lib from /usr/local/apache/php

when I started PHPEd I get a error on startup:
"Failed to load DBG client Can not start dbglistener on port #7869"

This is a new situation, but at least have a temperary fix until I recompile php-4.3.5RC2

thank you
View user's profileFind all posts by cwynnSend private messageVisit poster's websiteICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
make install installs php to a default location until you specify prefix.


After php is installed, you can always run
Code:
php -i > test.html
to inspect what settings are in effect and where php takes them from.

Don't forget to see dependencies by running ldd php or ldd dbg.so
to make sure that ld is able to find all libraries
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 28 Jan 2004
Posts: 17
Location: nd
Reply with quote
12:27 PM
just got DBG working !
recompiled php-4.3.5RC2 with these settings:
./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/apache/php --with-zlib-dir=/usr/lib --with-gettext --with-gdbm --with-dom --with-gd --with-gettext --with-regex=system --with-xml --enable-track-vars --enable-trans-sid --enable-wddx=shared --enable-ftp --enable-force-cgi-redirect

phpinfo.php output:

Configure Command './configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--prefix=/usr/local/apache/php' '--with-mysql=/usr/local/mysql' '--with-config-file-path=/usr/local/apache/php' '--with-zlib-dir=/usr/lib' '--with-gettext' '--with-gdbm' '--with-dom' '--with-gd' '--with-gettext' '--with-regex=system' '--with-xml' '--enable-track-vars' '--enable-trans-sid' '--enable-wddx=shared' '--enable-ftp' '--enable-force-cgi-redirect'

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with DBG v2.14.10, (C) 2000,2003, by Dmitri Dmitrienko

extension_dir /usr/local/nusphere/phped/php/extensions /usr/local/nusphere/phped/php/extensions

dbg
DBG php debugger, version 2.14.10, Copyright 2001, 2002, 2003 Dmitri Dmitrienko, http://www.nusphere.com/dbg

php.ini settings:
extension_dir=/usr/local/nusphere/phped/php/extensions
[debugger]
debugger.enabled = on
debugger.profiler_enabled = on
debugger.host_allow = 192.168.1.3 (my machines address)
debugger.host_deny = ALL
debugger.ports=7869, 10000/16

now its off to mexico for a few days in the sun
View user's profileFind all posts by cwynnSend private messageVisit poster's websiteICQ Number
php4.3.5RC2
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