
Opening the entire directory of /usr/local/etc/php/7.2 in Sublime provides me quick and easy access to all the ini files that then I can edit. Lovely, so we need to configure everything. usr/local/etc/php/7.2/conf.d/php-memory-limits.ini ini files parsed: /usr/local/etc/php/7.2/conf.d/ext-opcache.ini, ini files in: /usr/local/etc/php/7.2/conf.dĪdditional. Loaded Configuration File: /usr/local/etc/php/7.2/php.ini Warning: Failed loading Zend extension 'xdebug.so' ↵Ĭonfiguration File (php.ini) Path: /usr/local/etc/php/7.2 PHP Warning: Failed loading Zend extension 'xdebug.so' ↵ Let’s start with what php thinks its ini files are: $ php -ini That way the mkdir, which failed because you can’t create a directory with the same name as a symlink, should succeed. Which means we can remove the symlink from /usr/local/Cellar/php/7.2.5/, and try installing xdebug again. But which pecl told us that lived in /usr/local/bin/pecl, which itself is a symlink to /usr/local/Cellar/php/7.2.5/bin/pecl. So pecl is a symlink to /usr/local/lib/php/pecl. Lrwxr-xr-x 1 javorszky admin 23B 26 Apr 19:29 pecl -> /usr/local/lib/php/peclĭrwxr-xr-x 3 javorszky admin 96B 24 Apr 16:10 sbinĭrwxr-xr-x 4 javorszky admin 128B 24 Apr 16:10 share rw-r-r- 1 javorszky admin 628B 26 Apr 19:29 ĭrwxr-xr-x 3 javorszky admin 96B 24 Apr 16:10 includeĭrwxr-xr-x 4 javorszky admin 128B 24 Apr 16:10 lib

rw-r-r- 1 javorszky admin 1.6K 24 Apr 16:10 README.mdĭrwxr-xr-x 12 javorszky admin 384B 26 Apr 19:29 bin rw-r-r- 1 javorszky admin 85K 24 Apr 16:10 NEWS rw-r-r- 1 javorszky admin 3.1K 24 Apr 16:10 LICENSE rw-r-r- 1 javorszky admin 2.2K 26 Apr 19:29 INSTALL_RECEIPT.json Let’s try this: $ cd /usr/local/Cellar/php/7.2.5/ Install ok: channel:///xdebug-2.6.0Ĭan’t create a directory. If you got the following, skip to part 2. I’ve run into this problem the first time I wanted to install this. Warning: mkdir(): File exists in System.php on line 294 Starting to download xdebug-2.6.0.tgz (283,644 bytes) Installing it if you don’t have it falls outside the scope of this article. Pecl should really come with a homebrew php version, so you should have this. Among the ones deleted are the xdebug extensions, so there is now no easy way to install it.Īccording to xdebug’s site, the best way to install it when using homebrew is to use the pecl version.

On 31st March 2018 homebrew’s homebrew-php tap was archived and formulae were merged back into homebrew-core or deleted.
