Home > Backend Development > PHP Tutorial > How to freely modify the php version of phpstudy

How to freely modify the php version of phpstudy

黄舟
Release: 2023-03-16 17:32:01
Original
5926 people have browsed it

This article mainly introduces the method of freely modifying the php version of phpstudy. Friends who need it can refer to it

There are many website integration and construction software on the Internet, the more famous ones are wamp, xampp, phpstudy, etc. Wait

Now let’s talk about the free switching of php version of phpstuy

I won’t talk about installation and downloading, it’s available on the official website http://www.phpstudy.net/, it’s very Simply

Look at the interface. The author of the software actually made the software very user-friendly. You can choose the PHP version yourself, as follows:


You can also upgrade (but it is better to say it is an upgrade than a replacement), private customization, you know


## The software has very detailed documentation, so I won’t go into details

Now comes the main event,

After php7 comes out, or a higher version of php comes out, the software cannot be upgraded correctly, this cannot be blamed on the author. After all, the software was written before php7 (of course, the author has now updated it to support php7)

At this time, we can only rely on ourselves: "

How Manually modify the php version of phpstudy

Carefully observed the original upgrade mechanism of the software and found the method

The first step is to download the required php version package. I downloaded php7.0.5

Extract the zip package to the phpstudy installation directory and rename it to php75

Copy a copy of php.ini-development and rename it to php.ini, open it and find extension_dir = "ext", Remove the semicolon in front, OK

Step 1

Upgrade the software by replacing the include file name in E:\PHP\Apache\conf\http.conf, as follows


Go to the Apache\conf\extra directory and find a copy of httpd-php-fcgid55.conf (sometimes httpd-php-sapi55.conf), Open and change all php55 (php55n) to php75. At this time, in the PHP version switching panel, select php5.5 (php5.5n), apply, and open http://127.0.0.1/phpinfo.php

PHP7.0.5 is out


##PS : PHP7 needs to install the VC14 runtime environment. You need to go to the Microsoft official website http://www.microsoft.com/zh-CN/download/details.aspx?id=48145 to download the corresponding software and install it

Also, the default php extension control of the software is no longer available, you need to manually change it in php.ini

Summary

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

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template