PEAR -> APD on OS X not working ['Failed loading apd.so: (null) '] HELP
| From: | Mats | Date: | Tue, 17 Aug 2004 11:31:48 +0000 |
| Subject: | PEAR -> APD on OS X not working ['Failed loading apd.so: (null) '] HELP | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14140@lists.php.net to get a copy of this message | ||
Hi,
I just bought the book "Advanced PHP Programming" by George Schlossnagle, and it is a highly recommended read !!
In the book he talks about Profiling, and I found APD very interesting! So I obviously tried to install APD on my computer using:
+++++++++++++++++++++++++
pear install apd
+++++++++++++++++++++++++
after a variety of issues, with paths; libtoolize, etc, I finally managed to get the installation to work and Terminal returned the following at the end of its output:
+++++++++++++++++++++++++
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
apd.so copied to /private/tmp/tmphKYyqd/apd-0.9.1/apd.so
Build process completed successfully
Installing 'apd.so' at ext_dir (/usr/local/php5/lib/php/extensions/no-debug-non-zts-20040412/apd.so)
install ok: apd 0.9.1
+++++++++++++++++++++++++
I therefore assumed that the installation was OK, and proceeded with enabling it in php.ini file like this: [variations on paths and attempts are commented out " ; " ]
+++++++++++++++++++++++++
; Directory in which the loadable extensions (modules) reside.
; extension_dir = "./" ; default setting disabled because httpd crash
extension_dir="/usr/local/php5/lib/php/extensions/" ; not working either
; extension_dir=/usr/local/php5/lib/php/extensions/ ; not working
; extension_dir = "php/extensions/" ; not working
; extension_dir = ; not working either
// snippet removed
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; // snippet removed
;
; 2004-08-16 by Mats
; Begin APD (Advanced PHP Debugger) installation
zend_extension=apd.so ; tested does not work
; zend_extension=/no-debug-non-zts-20040412/apd.so ; does not work
; zend_extension=/usr/local/php5/lib/php/extensions/apd.so ; not working either
apd.dumpdir=/tmp/traces
; End APD installation
+++++++++++++++++++++++++
Now when I restart HTTPD it fails to load the 'apd.so' module, and dumps the following message into the terminal window.
+++++++++++++++++++++++++
[Tue Aug 17 12:17:45 2004] [notice] SIGUSR1 received. Doing graceful restart
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/mats.conf
[Tue Aug 17 12:17:46 2004] [warn] module mod_php5.c is already added, skipping
Processing config directory: /private/etc/httpd/virtualhosts
Processing config file: /private/etc/httpd/virtualhosts/_localhost
Processing config file: /private/etc/httpd/virtualhosts/php4.mxcore.site
Processing config file: /private/etc/httpd/virtualhosts/php5.mxcore.site
Failed loading apd.so: (null)
[Tue Aug 17 12:17:46 2004] [notice] Apache/1.3.29 (Darwin) PHP/5.0.1 configured -- resuming normal operations
[Tue Aug 17 12:17:46 2004] [notice] Accept mutex: flock (Default: flock)
+++++++++++++++++++++++++
Where have I done something wrong, or is this a bug ???
I would be very grateful for any help to get this thing going.
Important extra information::
Computer:
PowerMac G3 B&W 350 Mhz 448 MB RAM 120 GB
Mac OS X 10.3.5 & Apple Developer Tools installed
PHP module installed via Marc Lyinage's PHP 5.0.1-1 installer [URL: http://www.entropy.ch/phpbb2/viewforum.php?f=2 ] in /usr/local/php5/.
I also have Marc's PHP 4.3.6 module installed in /usr/local/php/.
Kind regards,
Mats