Phpstudy Multi-version PHP Coexistence configuration method "Fcgid script map"

Source: Internet
Author: User
I believe that everyone is not unfamiliar with phpstudy, you can also use the new PHP Chinese network 2017, the latest "Programmer Toolkit PHP Integration Environment http://tool.php.cn",

Let's take phpstudy as an example of how to configure a multi-version coexistence pphp development environment.

You may be because of multiple projects need PHP version, the program can not be compatible with the PHP version to switch back and forth, this provides my years of experience, hope to help the confused you ....

The version coexistence can be achieved in three steps, as follows:

Step one, switch PHP version

Step two, locate the include conf/extra/httpd-mpm.conf and change the following line to:

LoadModule fcgid_module modules/mod_fcgid.soaddhandler fcgid-script fcgi. Phpinclude conf/extra/ Httpd-php-fcgid53.conf#httpd-php-sapi52.conf

Step three, virtual host configuration, add:

Fcgidinitialenv PHPRC "d:/phpstudy/php56n/" Fcgidwrapper "D:/phpstudy/php56n/php-cgi.exe". php

where "d:/phpstudy/" is replaced by your own Phpstudy installation path.

is not already configured successfully, knocking a standard phpinfo (); Give it a try.

This article is compiled by the PHP Chinese network,

Original address: http://www.php.cn/php-weizijiaocheng-374013.html

Do not like to spray ~ ~ ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.