Guide to upgrade php version in xampp
Guide to upgrade PHP in XAMPP server
1) Download PHP :
If you are using xampp ofcourse you are using windows operating system. So first download your desired version of php binary from http://windows.php.net/download/ website. Be careful while choosing binary. If you are using XAMPP then your webserver is apache. So always download Thread Safe binary. Also read the compiler suggestion carefully on the windows.php.net site. I will recommend to download zip version.
2) Configure New PHP Version with your xampp:
Save the file httpd-xampp.conf.
2) Configure New PHP Version with your xampp:
Unzip the downloaded version of the PHP in a separate folder. Please make sure that your new php folder name is not “PHP”. May be you can use filder name as the version name. For example for php 5.6 you can use php56. Copy the new php folder into your xampp folder.
Now go to yourxampp/apache/conf/extra folder. Open file httpd-xampp.conf from the folder extra. Change the following variables:
1. Variable PHPINIDir to be <your xampp folder>/<new version of PHP>
2. Variable LoadModule to be <your xampp folder>/<new version of PHP>/php5apache2_4.dll
Save the file httpd-xampp.conf.
3) Configure your php.ini file:
Enable those required components for your development.
Lastly, restart your XAMPP apache server. If your server get restarted successfully then your server php version is upgraded. You can check the status of your php version by URL http://localhost/xampp/phpinfo.php .
Comments
Post a Comment