Custom PHP version cases: hundreds of PHP versions can be switched at will, and hundreds of php versions can be switched at will

Source: Internet
Author: User

Custom PHP version cases: hundreds of PHP versions can be switched at will, and hundreds of php versions can be switched at will

Sometimes we need different PHP versions for testing. The default six are enough. If you are not satisfied, you can customize any PHP version you need.

Open Apache2.4 Site Management of PHPWAMP

Click here to enter the image description

I have already created six sites, which are differentiated by ports. Of course, you can also bind a domain name to distinguish different sites by domain name. site management can be distinguished by ports, it can also be distinguished by domain names, which are common. (The port mode and domain name mode can be searched by Baidu)

I have created six different PHP versions. These six versions can run simultaneously. In this case, I want to add a custom version. What should I do.

Click here to enter the image description

Download the PHP version you need first. You can download it from the PHP official website or from the official website of the Integrated Environment PHPWAMP, after downloading it, You can directly drop it into the software.

First, download the desired PHP version. For example, if you select one of the PHP versions, you can select php7.0.13 or another version, depending on your needs, you can choose from hundreds of PHP versions.

Click here to enter the image description

After the download is complete, add a custom site

Click here to enter the image description

Right-click the custom site and click here to open the corresponding folder (you can right-click the custom version to see this option)

Click here to enter the image description

And then drop the downloaded version number file, as shown in figure

Click here to enter the image description

After you drop the version number, click here to start it to use your defined php version! It will be automatically configured (you can also configure it on your own, but it will not limit you. You can modify the configuration at will .)

Click here to enter the image description

After the startup, We can browse the website. Right-click the website you want to browse and click the port for browsing. Because the port mode is demonstrated currently, if the domain name mode is used, the main interface is changed to port 80, you can bind a domain name to the site management. For the tutorial on the specific domain name mode, you can search for it on Baidu or on the Internet. I will not demonstrate it. I will only demonstrate how to customize the version.

Click here to enter the image description

This is the effect after startup. For example, we have seen the latest php7.0.13, which is the default module opened by PHP. If it is displayed in the red box, you can enable other common modules with one click.

Click here to enter the image description

By default, only modules enabled by the official website are installed. If you want to enable other common modules, right-click the custom site and enable common modules with one click.

Click here to enter the image description

Restart apache

Click here to enter the image description

After browsing, we can see that common modules are enabled, and the content displayed in the red box is twice as much as that shown in the previous section. Of course, there are more than just a few images.

Click here to enter the image description

For more tutorials on the PHPWAMP green integration environment, you can click the menu above the software to view details.

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.