Home >Backend Development >PHP Problem >Can multiple versions of php be installed?
php can install multiple versions. Installing multiple versions of PHP requires installation on the same IIS server. You must follow the steps described in the "php.net" document and "IIS 7.0" and later versions. You cannot use the installer in the system because the installation program in the system The program does not support parallel installation.
The operating environment of this article: centos 7 system, PHP version 7.1, Dell G3 computer.
Can multiple versions of PHP be installed. Note: To install multiple versions of PHP on the same IIS server at the same time, you must install them manually according to the steps described in the php.net documentation IIS 5.1 and IIS 6.0 and IIS 7.0 and later versions.
PHP multi-version installation steps:
1. php -v, check the current version
2. Install PHP ./install.sh mphp, Select the version to be installed
1. There will be an additional enable-php**.conf configuration under /usr/local/nginx/conf
enable-php.conf is version 5.6
enable-php7.2.conf is the newly installed version 7.2
##3. Add the site and select the PHP version in vhost. The default is version 5.6 4. Restart lnmp restart Recommended study: "PHP Video Tutorial"
The above is the detailed content of Can multiple versions of php be installed?. For more information, please follow other related articles on the PHP Chinese website!