yum install php56.x86_64
[root@~]# /usr/local/psa/bin/php_handler --add -displayname php-56 -path /usr/bin/php56-cgi -phpini /etc/opt/remi/php56/php.ini -clipath /usr/bin/php56 -type fastcgi
The new PHP handler with the id "150e2a3d0f6ca2bb60a26372169d231c3c758e6d" was successfully registered.
plesk bin php_handler --list |grep 5.6
Hi guys,
Why, despite various security and supportability risks, do you want to install and use PHP5? Currently, PHP: Supported Versions does not show PHP5 at all (even as EOLed version).
IMHO, instead of researching how to install php5, I would suggest to invest time to research how to migrate to php8![]()
Hi! thanks, i've managed to get the FastCGI installation done. But i alsno need the FPM, i cannot get it registred in plesk. Is there anyone how can help me with the FPM registration in Plesk?Hi,
I have manged to install php 5.6 in centos 8 using remi repo. Below are the steps which I have followed.
1. Install remi repo in centos 8
2. Install php 5.6 and its required modules
3. Register the php.56 fcgi module with php, If all good you will get handler id and successfully registered message.
View attachment 20685
5. You can verify it using the below command
View attachment 20686
6. Now the php version will be listed in front end of plesk in php version drop down
View attachment 20687
<?php
// Add this line of code:
require_once __DIR__ . '/lib/mysql.php';
// This is the original code:
$host = "localhost";
$user = "dbuser";
$pass = "dbpasswd";
$db = "database";
$mysql = mysql_connect($host,$user,$pass)
or die('Not connected : ' . mysql_error());
mysql_select_db($db, $mysql);
Hello,
Thanks for this great tip but unfortunately the biggest issue for me is, that register globals is not working with newer PHP versions.
This is a really extreme old application…
Thx