How can I update my version of PHP for XAMPP [duplicate]

北战南征 提交于 2019-12-18 13:17:15

问题


Possible Duplicate:
Upgrading PHP in XAMPP for Windows?

I am currently using XAMPP version 1.8.1 which has the PHPversion 5.4.3

I have found the latest version of PHP from the PHP site version 5.4.11, released a day ago.

Now if I download the latest PHP version from php.net and replace my current PHP directory with the latest, will it work properly/ straight away?

Thanks


回答1:


  • Download the latest binary version of PHP 5.4.11 (make sure to get the .zip package not the installer)
  • De-archive it to a directory
  • Copy the contents of the directory in the php subfolder of your XAMPP installation directory, overwriting the files which are already present
  • Overwrite the files which are already present in the apache\bin directory with the newer versions.
  • Now the trick: take the files which have a "_2" in their names (for example php5apache2_2.dll or php5apache2_2_filter.dll), copy them in the apache\bin subdirectory and remove the "_2" part, overwriting the existing files. This is necessary because by XAMPP uses Apache version 2.2 and the files with the 2 prefix are built for Apache 2.0, so you must take the files build for the newer version (which has a different plugin interface) and rename them in the filenames XAMPP expects.

Hope this helps.



来源:https://stackoverflow.com/questions/14412379/how-can-i-update-my-version-of-php-for-xampp

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