

LoadModule php5_module "/xampp/php5-6-0/php5apache2_4.dll" LoadModule php5_module "/xampp/php/php5apache2_4.dll" Them with the path to the new PHP directory created in Step 1. Search for all instances of the old PHP directory path and replace Rename the php.ini-production file to php.ini.Įdit the nf file in the apache\conf\extra\ subdirectory of your XAMPP installation directory.

If you prefer to use production settings, you could instead Within the new directory, rename the php.ini-development file to php.ini. PHP build you download matches the Apache build (VC9 or VC11) in your We’ll call the new directory C:\xampp\php5-6-0. To use a different version of PHP with XAMPP, follow these steps:ĭownload a binary build of the PHP version that you wish to use from the PHP website, and extract the contents of the compressedĪrchive file to your XAMPP installation directory (usually, C:\xampp).Įnsure that you give it a different directory name to avoid You might do this to get the benefits of a newer version of PHP, or to reproduce bugs using an earlier In many cases, you might want to use XAMPP with a different PHP version than the one that comes preinstalled. IF "%PHP_PEAR_PHP_BIN%"="" SET "PHP_PEAR_PHP_BIN=C:\xampp\php\php.exe" php/:1 IF "%PHP_PEAR_BIN_DIR%"="" SET "PHP_PEAR_BIN_DIR=C:\xampp\php" IF "%PHP_PEAR_PHP_BIN%"="" SET "PHP_PEAR_PHP_BIN=C:\xampp\php\php.exe" php/pecl.bat:32 IF "%PHP_PEAR_PHP_BIN%"="" SET "PHP_PEAR_PHP_BIN=C:\xampp\php\php.exe" php/peardev.bat:33 "%XAMPPPHPDIR%\.\php.exe" -f "%XAMPPPHPDIR%\pciconf" - %* php/pear.bat:33 "%XAMPPPHPDIR%\php.exe" -f "%XAMPPPHPDIR%\pci" - %* php/pciconf.bat:15 In xampp directory do next replaces in files:

In xampp directory comment line apache/conf/nf:458
