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

How to freely modify the php version of phpstudy

墨辰丷
墨辰丷Original
2018-05-17 17:50:533278browse

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 versions of phpstuy

I won’t talk about installation and downloading, http://www.php.cn/, it is very simple

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:


Also you can Upgrade (however, it is better to say it is an upgrade than a replacement), private customization, you know


software has many I won’t go into details about the detailed documentation

Now comes the main event, After php7 comes out, or a higher version of php comes out, the software cannot be upgraded correctly, this We can’t blame 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 to manually modify phpstudy PHP version

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, find extension_dir = "ext", and change the previous Remove the semicolon, OK

The first step

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, find a copy of httpd-php-fcgid55.conf (sometimes httpd-php-sapi55.conf), open it, and put All php55 (php55n) have been modified 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

How to freely modify the php version of phpstudy


##Related recommendations:

How to upgrade the MySQL version to 5.7.17 in phpStudy

##Install the redis extension for php7.X under windows and The whole process of using redis test (phpstudy, wamp, xampp)

phpstudy virtual domain name configuration

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!

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