phpstudy multi-version php coexistence configuration method [fcgid script mapping]

PHP中文网
Release: 2023-03-13 20:38:02
Original
5897 people have browsed it

I believe everyone is familiar with phpStudy. You can also use the latest "Programmer Toolbox PHP Integrated Environment http://tool.php.cn" launched by the php Chinese website in 2017,

The following uses phpstudy as an example to explain how to configure a pphp development environment with multiple versions coexisting.

You may be troubled by the fact that multiple projects require different PHP versions, and the programs are not compatible and have to switch PHP versions back and forth. Here I provide a summary of my many years of experience, hoping to help those who are confused. you. . . .

Version coexistence can be achieved in three steps, as follows:

Step 1. Switch php version

Step 2. Find Include conf/ Extra/httpd-mpm.conf change the following line to:

LoadModule fcgid_module modules/mod_fcgid.so
AddHandler fcgid-script .fcgi .php
Include conf/extra/httpd-php-fcgid53.conf
#httpd-php-sapi52.conf
Copy after login

Step 3, Virtual host configuration, add:

FcgidInitialEnv PHPRC "D:/phpStudy/php56n/"
FcgidWrapper "D:/phpStudy/php56n/php-cgi.exe" .php
Copy after login

where " D:/phpStudy/” Replace with your own phpstudyinstallation path.

Have the configuration been successful? Type a standard phpinfo(); to try it

This article is compiled by php Chinese website,

original text Address: http://www.php.cn/php-weizijiaocheng-374013.html

If you don’t like it, don’t spray~~~

The above is the detailed content of phpstudy multi-version php coexistence configuration method [fcgid script mapping]. 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