Get the App
SLTechnology News&Howtos  ›  Development  › 

Can multiple versions of php be installed?

Shulou Source: shulou.com Published: 2022-05-31 19:16:07 09月10日 Update

This article mainly explains "whether multiple versions of php can be installed". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn whether multiple versions of php can be installed.

Multiple versions of php can be installed.

This article operating environment: centos 7 system, PHP7.1 version, Dell G3 computer.

Can I install multiple versions of php?

Multiple versions of PHP can be installed. It is important to note that if you install multiple versions of PHP on the same IIS server at the same time, you must manually install them by following the steps described in the php.net documentation IIS 5.1 and IIS 6.0 and IIS 7.0 and later.

PHP multi-version installation steps:

1. Php-v to view the current version

Install PHP. / install.sh mphp and select the version you want to install

1. There will be one more enable-php**.conf configuration under / usr/local/nginx/conf.

Enable-php.conf is version 5.6

Enable-php7.2.conf is a newly installed version 7.2

Add a site and select the PHP version in vhost. The default is version 5.6.

4. Restart lnmp restart

Thank you for your reading, the above is the content of "whether multiple versions of php can be installed". After the study of this article, I believe you can have a deeper understanding of whether multiple versions of php can be installed, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Versions multiple but not steps systems learning content documents servers programs services selection and at the same time ideas situations manual articles more environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei NVidia Shulou Tech Info Docker vpn