Home Backend Development PHP Tutorial How to upgrade php version of wamp

How to upgrade php version of wamp

May 11, 2019 pm 03:07 PM
wamp Upgrade php version

Upgrade steps: 1. Download the PHP compressed package from the official website; 2. Unzip the file, rename it to "php version number", and place it in the "wamp/bin/php" directory; 3. Configure php. ini, phpForApache.ini, wampserver.conf, httpd.conf files; 4. Restart wamp.

How to upgrade php version of wamp

1. Download a php7.1.5

php version from the official website. Download address: http://windows. php.net/download/

2. Unzip the file - put it in the bin/php directory - change the file

1. Unzip the compressed package you just downloaded. Change the name to php7.1.5, which is the php version number. Place this folder in the wamp/bin/php directory.

How to upgrade php version of wamp

2. Copy the php.ini, phpForApache.ini, and wampserver.conf files in the original version of php5.5.12 folder to the php7.1.5 folder.

How to upgrade php version of wamp

3. Modify the two files php.ini and phpForApache.ini, and replace all php5.5.12 in the two files with php7.1.5. Use notepad to open ctrl f to find and replace.

How to upgrade php version of wamp

4. Modify the wampserver.conf file

If your apache version is 2.2X, then modify it to:

$phpConf['apache']['2.2']['LoadModuleName'] = 'php7_module';
$phpConf['apache']['2.2']['LoadModuleFile'] = 'php7apache2_2.dll';
Copy after login

If your apache version is 2.4, then change it to:

$phpConf['apache']['2.4']['LoadModuleName'] = 'php7_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php7apache2_4.dll';
Copy after login

5. Find the php.ini file in the wamp/bin/apache/apache2.4.9/bin directory , delete it.

How to upgrade php version of wamp

6. In the wamp/bin/apache/apache2.4.9/conf directory, find the httpd.conf file

How to upgrade php version of wamp

Open the httpd.conf file, find LoadModule

155755805437325How to upgrade php version of wamp

##Modify it to:

LoadModule php7_module "D:/wamp/bin/php/php7.1.5/php7apache2_4.dll"
Copy after login

7 , download a php_xdebug-2.5.3-7.1-vc14-x86_64.dll dynamic link library (link https://xdebug.org/download.php)

in wamp/bin/php/php7 .1.5 folder, create a new folder zend_ext, and put the downloaded dynamic link library into the zend_ext folder.

8. In the wamp/bin/php/php7.1.5 folder, find the php.ini file, find and modify it:

; XDEBUG Extension

zend_extension = "D:/wamp/bin/php/php7.1.5/zend_ext/php_xdebug-2.5.3-7.1-vc14-x86_64.dll"
;
Copy after login

9. Comment out this sentence in the php.ini file

;extension=php_mysql.dll
Copy after login

10. Restart wamp

How to upgrade php version of wamp

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

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Teach you to create a virtual host and run php projects (phpstudy + wamp) Teach you to create a virtual host and run php projects (phpstudy + wamp) Aug 07, 2022 pm 03:17 PM

This article involves two PHP integrated environments, both of which contain mysql + apache + php. The function of phpstudy is more powerful than wamp, and it is very simple and easy to use.

How to modify the php.ini file in wamp How to modify the php.ini file in wamp Mar 20, 2023 pm 03:33 PM

Wampserver is a software package that can install Apache, PHP and MySQL on Windows computers. Develop and test PHP websites on your local computer easily with Wampserver. During the development process, we may need to modify the PHP configuration file php.ini. This article will introduce how to modify the php.ini file in Wampserver.

[Summary] Reasons and solutions why WAMP cannot parse PHP files [Summary] Reasons and solutions why WAMP cannot parse PHP files Mar 22, 2023 am 10:38 AM

​WAMP is a free and open source web server software package that allows users to build a web server environment on Windows operating systems. However, when users try to run PHP files in WAMP, they may encounter unresolved errors. In this article, we will explore the reasons and solutions for why WAMP cannot parse PHP files.

How to upgrade the PHP version on the server to 5.3 How to upgrade the PHP version on the server to 5.3 Mar 09, 2024 pm 09:54 PM

Title: How to upgrade the PHP version on the server to 5.3, specific code examples are needed. In websites running on the server, upgrading the PHP version is a common requirement. In order to adapt to new features and performance optimizations, upgrading the PHP version to 5.3 is a common choice. This article will introduce how to upgrade the PHP version to 5.3 on the server and provide specific code examples. 1. Back up important data Before performing any upgrade operation, be sure to back up important data to prevent data loss due to accidents. Can be accessed via FTP, text

A brief analysis of the solution to the problem of garbled PHP files in WAMP environment A brief analysis of the solution to the problem of garbled PHP files in WAMP environment Mar 22, 2023 am 09:30 AM

In the process of using WAMP as a local server environment, the problem of garbled PHP files sometimes occurs. This kind of problem will not only affect our code writing, but also affect the normal operation of our website. In this article, we will introduce some methods to solve garbled PHP files in WAMP.

Install WAMP on CentOS and cannot click on the desktop after CentOS installation. Install WAMP on CentOS and cannot click on the desktop after CentOS installation. Feb 11, 2024 pm 04:51 PM

Introduction to the directory of this article: CentOS installs WAMP, installs Apache, installs MySQL, installs PHP, configures WAMP. After CentOS is installed, you cannot enter the desktop and cannot click to restart. Update the desktop environment or reinstall the driver. Reset the desktop configuration. Change the desktop environment. LINUX knowledge sharing. CentOS installs WAMP. CentOS is a Linux-based system. Operating system for server and desktop applications, WAMP is a development environment for running web applications on Windows operating system. In this article, we will introduce how to install WAMP on CentOS. To install Apache we need to install Apache as a web server and execute the following command in the terminal

How does wampsever deploy PHP projects locally? How does wampsever deploy PHP projects locally? Mar 22, 2023 am 10:38 AM

Wampsever is a PHP development environment that helps programmers deploy and test PHP projects locally. This article will introduce how to use Wampsever to deploy PHP projects locally.

Deploy and run projects on Windows using PHP and WAMP Deploy and run projects on Windows using PHP and WAMP Jun 25, 2023 pm 01:44 PM

With the continuous development of Internet technology, developing a website or application has become the norm in the software industry. As a developer, deployment and operation are inevitable steps in project development. This article will introduce how to use PHP and WAMP to deploy and run projects on Windows systems. 1. What is WAMP WAMP is a web service software package suitable for Windows operating system, where W represents Windows operating system, A represents Apache server, and M represents

See all articles