Home  >  Article  >  Backend Development  >  phpstudy multi-version php coexistence configuration method [fcgid script mapping]

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

PHP中文网
PHP中文网Original
2018-05-14 10:47:215898browse

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

Step 3, Virtual host configuration, add:

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

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!

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