Home >Backend Development >PHP Problem >How to upgrade php version in phpnow

How to upgrade php version in phpnow

王林
王林Original
2019-10-12 17:58:074248browse

How to upgrade php version in phpnow

1. First, we find the PHP version file to be upgraded. This article takes php5.6.38 as an example. Go to the website to download the file package of php5.6.38

How to upgrade php version in phpnow

2. Unzip the downloaded PHP5.6.38 compressed package to the installation directory of phpnow, and rename it, but the name cannot contain Chinese characters. It is best to name it directly as php5.6.38

How to upgrade php version in phpnow

3, then go to the Apache-20 folder to find the conf folder, find httpd.conf in the conf folder, and use Open it with a text editor.

How to upgrade php version in phpnow

4. Click [Edit]-->[Replace]-->[Replace All] in the text editor menu bar and replace "php-5.2. 14-Win32" replace all with php5.6.38

How to upgrade php version in phpnow

5. Then go to the php-5.2.14-Win32 folder to find the php-apache2handler.ini file and copy it Go to the php5.6.38 folder, then open the php-apache2handler.ini file, search for "extension_dir=", and change the following php-5.2.14-Win32 to php-5.6.38.

How to upgrade php version in phpnow

#6. Finally, we find "PnCp.cmd" in the phpnow directory, double-click it to open it, enter "23" in the command line, then press Enter and restart Apache has been upgraded

How to upgrade php version in phpnow

Recommended tutorial: PHP video tutorial

The above is the detailed content of How to upgrade php version in phpnow. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn