andymacbookpro:~ andy$ php-m
PHP Warning:xdebug must is loaded as a Zend extension in Unknown on line 0
[PHP Modules]
Bcmath
bz2
Calendar
Core
CType
Curl
Date
Dba
Dom
Ereg
Exif
FileInfo
Filter
Ftp
Gd
Hash
Iconv
Json
Ldap
Libxml
Mbstring
Mssql
Mysql
Mysqli
Mysqlnd
Openssl
Pcre
Pdo
Pdo_dblib
Pdo_mysql
Pdo_odbc
Pdo_sqlite
Phar
Posix
ReadLine
Redis
Reflection
Session
Shmop
SimpleXML
Snmp
Soap
Sockets
Spl
Sqlite3
Standard
Sysvmsg
Sysvsem
Sysvshm
Tidy
Tokenizer
Wddx
Xdebug
Xml
XmlReader
Xmlrpc
XmlWriter
Xsl
Zip
Zlib
[Zend Modules]
andymacbookpro:~ andy$
Now we're going to solve this problem:
We find our php.ini, my in:/private/etc/php.ini
Where to find the Xdebug expansion loading office:
Extension=/usr/local/cellar/php54-xdebug/2.2.5/xdebug.so
Modified to:
Zend_extension=/usr/local/cellar/php54-xdebug/2.2.5/xdebug.so
Then we restart Apache:
sudo apachectl restart
And then look at the PHP extensions:
andymacbookpro:~ andy$ php-m
[PHP Modules]
Bcmath
bz2
Calendar
Core
CType
Curl
Date
Dba
Dom
Ereg
Exif
FileInfo
Filter
Ftp
Gd
Hash
Iconv
Json
Ldap
Libxml
Mbstring
Mssql
Mysql
Mysqli
Mysqlnd
Openssl
Pcre
Pdo
Pdo_dblib
Pdo_mysql
Pdo_odbc
Pdo_sqlite
Phar
Posix
ReadLine
Redis
Reflection
Session
Shmop
SimpleXML
Snmp
Soap
Sockets
Spl
Sqlite3
Standard
Sysvmsg
Sysvsem
Sysvshm
Tidy
Tokenizer
Wddx
Xdebug
Xml
XmlReader
Xmlrpc
XmlWriter
Xsl
Zip
Zlib
[Zend Modules]
Xdebug
andymacbookpro:~ andy$
Okay, OK, we've seen that Xdebug has been successfully loaded into the Zend modules.