PHP w / Zend Debugger on OS X 10.5

I have OS X 10.5 configured with precompiled versions of PHP 5 and Apache 2. I am trying to configure Zend Debugger, but with no luck. Here is what I did:

  • I downloaded ZendDebugger-5.2.14-darwin8.6-uni.tar
  • I created a directory /Developer/Extras/PHPand set permissions for:
    • Permissions: drwxrwxr-x
    • Owner: root:admin
  • I copied ZendDebugger.sofrom the directory 5_2_x_compto/Developer/Extras/PHP
  • I updated the file /etc/php.iniby adding the following lines:

    zend_extension=/Developer/Extras/PHP/ZendDebugger.so
    zend_debugger.expose_remotely=always
    zend_debugger.connector_port=10013
    zend_debugger.allow_hosts=127.0.0.1
    
  • I restarted Apache using the Sharing Settings panel

When I run phpinfo()in a PHP file, I don't mention Zend Debugger. When I run php -mfrom the command line, it shows the Zend Debugger boot. Both claim to use the same version of PHP and load the same INI file.

- ?

+3
4

, , Zend Debugger 32- Apache, Apache, Max OS 10.5, 64- . Zend 64- , :

1) Apache 32-

2) Apache PHP 32- .

, , , .

+3

32- . , , AppleScript:

do shell script "apachectl stop" with administrator privileges
do shell script "arch -i386 /usr/sbin/httpd" with administrator privileges

-, 32- , .

+1
+1

, !! !! , - apache/httpd (, php.ini), "sudo arch -i386/usr/sbin/httpd", :

(48) : make_sock: [::]: 80

: sudo killall httpd

"sudo arch -i386/usr/sbin/httpd" , apache/httpd.

0

Source: https://habr.com/ru/post/1698758/


All Articles