
- #INSTALL PHP FOR MAC HOW TO#
- #INSTALL PHP FOR MAC APK#
- #INSTALL PHP FOR MAC INSTALL#
- #INSTALL PHP FOR MAC CODE#
- #INSTALL PHP FOR MAC DOWNLOAD#
In many set-ups there is a different one for theĬommand line (often cli/php.ini) and the web server (often

Otherwise, modify the php.ini file that is displayed through Please name it 99-xdebug.ini in that case. If that file does not exist, but there are other files in aĬonf.d or similar directory, you can create a new file there too. etc/php/7.4/cli/conf.d/99-xdebug.ini, then this is the If there is a file with xdebug in the name, such as Var_dump(php_ini_loaded_file(), php_ini_scanned_files()) Īlternatively, you can run php -ini on the command line. Run a script with the following to find all configuration files that PHP has

You use the phpize that belongs to the PHP version that you want to use Xdebug That it is by expanding the PATH environment variable. If phpize is not in your path, please make sure Xdebug is compiled separately, all by itself, as stated above.
#INSTALL PHP FOR MAC CODE#
Unpack the tarball inside the PHP source code tree. Once you haveĪccess to phpize and php-config, take the It is important that the source version matches the installed version as thereĪre slight, but important, differences between PHP versions.
#INSTALL PHP FOR MAC INSTALL#
Need to install the PHP development headers. If your systemĭoes not have phpize and php-config, you will

You compile Xdebug separately from the rest of PHP. With the correct file to download, and which paths to use. There is a wizard available that provides you You can also browse the source on GitHub at. This development branch might not always work as This will checkout the latest development version which is currentlyģ.2.0dev.
#INSTALL PHP FOR MAC DOWNLOAD#
You can download the source of the latest stable release 3.1.5.Īlternatively you can obtain Xdebug from GIT: There are a few precompiled modules for Windows, they are all for the non-debug If pecl did not add the right line, skip to the Configure PHP section.ġ On macOS, you should have PHP installed with Homebrew. You're all set and you can configure Xdebug's other functions, such as If Xdebug shows up with a version number, than In some cases pecl will change the php.ini file toĪdd a configuration line to load Xdebug. If that says arm64e, then you need to run:Īnd if it's x86_64, then you need to run: You can verify what your PHP's architecture is with: opt/homebrew/lib/php/pecl/20190902/xdebug.so: stat() failed with errno=22), /opt/homebrew/lib/php/pecl/20190902/xdebug.so.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/xdebug.so.so, 9): image not found)) in Unknown on line 0 opt/homebrew/lib/php/pecl/20190902/xdebug.so: mach-o, but wrong architecture PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /opt/homebrew/lib/php/pecl/20190902/xdebug.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/xdebug.so, 9): no suitable image found. Mismatch with the default and PECL will fail, or Xdebug won't load with a On Apple M1 hardware, programs can either be compiled for the native M1/ARM64Īrchitecture, or for the emulated x86_64 architecure.

Debian (9/stretch, testing/buster/bullseye/sid): sudo apt-get install php-xdebug.CentOS (Remi Repro): sudo yum install php74-php-xdebug3, or sudo yum install php80-php-xdebug3, or sudo yum install php81-php-xdebug3.
#INSTALL PHP FOR MAC APK#
#INSTALL PHP FOR MAC HOW TO#
This section describes on how to install Xdebug.
