Upgrade PHP on XAMPP 1.8.3 windows 7 installation

狂风中的少年 提交于 2019-12-29 07:44:11

问题


I have XAMPP 1.8.3 installed on my windows 7 machine. Which include PHP 5.5.6. I want to upgrade the PHP to 5.6 version. Is it possible to do the upgrade while keeping the XAMPP bundle other module as it is (Apache, MySQL). Can any one suggest a way to do upgrade on windows 7.


回答1:


  • Download the package from following url: http://windows.php.net/download/. Make sure the “Thread Safe” zip file with around 20MB was downloaded.
  • Extract and rename the folder to “php”.
  • Rename the existing “php” folder to something and place the new bundle with folder name “php”.
  • Then restart the apache server. It will simply load the new PHP version.



回答2:


Try like this:

How to upgrade php in xampp:-

  1. Lots of time you need to use multiple version of php for your different project. In this case either you want to install xampp on different port or you can install one xampp and upgrade php. In this article I will demonstrate how you can upgrade php in your xampp server. I will demonstrate the complete process by adding PHP 5.4 with XAMPP. Following is the step by step process of upgrading php in your xampp server. Before trying these steps please take complete backup of your code and database alognwith xampp because any small mistake can lead to the corruption of your regular XAMPP.

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: 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 folder name as the version name. For example for php 5.4 you can use php54. 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:

    • Variable PHPINIDir to be your xampp folder new version of PHP

    • Varaible LoadModule to be your xampp folder/new version of PHP/php5apache2_2.dll

Save the file httpd-xampp.conf. 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 .



来源:https://stackoverflow.com/questions/30480590/upgrade-php-on-xampp-1-8-3-windows-7-installation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!