Answer the question
In order to leave comments, you need to log in
How to install multiple PHP versions on Centos 7 VPS?
There is a clean server on Centos 7. You need to install php7 (for WordPress) and also php 5.4 (for a separate script outside of WordPress). Previously, on hosting in .htaccess it was possible to specify the php version for this directory, because there were several versions of php - everything was convenient. How to implement it on your VPS?
Maybe you need to install the control panel right away? Free Webuzo solve this issue?
UPD.: put a free Vebuzo.
Answer the question
In order to leave comments, you need to log in
Maybe you need to install the control panel right away? Free Webuzo solve this issue?
Build each version from source with --prefix
And get the necessary FPM from them. It will be difficult for the first time, but I think you will write a script and the second time you will not build all versions of php by hand :-)
there is a free version of the virtual web server - Webmin+Virtualmin webmin.com
Easy to install, easy to configure
For several versions of PHP install modules:
For example, to install php 7.3
yum install scl-utils
yum install https://dl.fedoraproject.org/pub /epel/epel-release...
yum install rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install php73
yum install php73-php-mysqlnd
yum install php73-php-curl
yum install php73-php-simplexml
yum install php73-php-devel php73-php-gd php73-php-json php73-php-mcrypt php73-php-mbstring php73-php-opcache php73-php-pear php73-php-pecl-apcu php73-php-pecl- geoip php73-php-pecl-imagick php73-php-pecl-json-post php73-php-pecl-memcache php73-php-pecl-xmldiff php73-php-pecl-zip php73-php-pspell php73-php-soap php73- php-tidy php73-php-xml php73-php-xmlrpc
If you need additional puffs, replace "php73" with any other, and repeat the operation
In the server settings you can switch puff versions both for the main "public_html" folder and for individual internal directories
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question