I would like to share and discuss such custom functions with all enthusiasts.
Thursday, December 1, 2011
How to change version of php in Xampp
Take this example that makes PHP version from 5.3 to 5.2 in Xampp
Download and install latest xampp to G:\xampp. As of 2010/03/12, this is 1.7.3.
Download the zip of xampp-win32-1.7.0.zip, which is the latest xampp distro without php 5.3. Extract somewhere, e.g. G:\xampp-win32-1.7.0\
Remove directory G:\xampp\php
Remove G:\xampp\apache\modules\php5apache2_2.dll and php5apache2_2_filter.dll
Copy G:\xampp-win32-1.7.0\xampp\php to G:\xampp\php.
Copy G:\xampp-win32-1.7.0\xampp\apache\bin\php* to G:\xampp\apache\bin
Immediately after the line, <IfModule alias_module> add the lines
(Note that this is taken from the same file in the 1.7.0 xampp distribution. If you run into trouble, check that conf file and make the new one match it.)
You should then be able to start the apache server with PHP 5.2.8. You can tail the G:\xampp\apache\logs\error.log file to see whether there are any errors on startup. If not, you should be able to see the XAMPP splash screen when you navigate to localhost.