Possible to install lower PHP versions?

server002

Verified User
Joined
Oct 6, 2023
Messages
5
I have a dedicated server with 2 users. One of the users requires php versions lower then what is installed now.

I went into the users accoutn and currently there is 4 versions installed.

PHP 7.0 php-fpm
PHP 7.3 php-fpm
PHP 7.4 php-fpm
PHP 8.1 php-fpm

php-version-direct-admin.jpg

I'm looking to get PHP 5.6 php-fpm


How do I go about installing a different version to it shows up in the screenshot above?

I am using Rocky Linux
 
you need to replace one of versions, at admin level look to custombuild menu.
 
I turns out i was using rocky linux 8.

I found that in the custom build options area i could select the php version i needed. I replaced one of them then. i rebuilt php in the build section

Then i went back to the user panel and i changed it over to php 5.6 and my website worked! YAY

custombuild1.jpg

custombuild2.jpg

custombuild3.jpg


php section.jpg


I hope the pictures helps others and thanks for the help i received in this thread


The only issue i face now is when i went to phpmyadmin it shows:
Code:
PHP 7.2.5+ is required.

Currently installed version is: 5.6.40


php required.jpg


I don't actualy need to use phpmyadmin but i found it odd i was not able to access it
 
I don't actualy need to use phpmyadmin but i found it odd i was not able to access it
That is because phpmyadmin is now a newer version.

You can however fix this. Just run php 7.4 or better php 8.0 as first php version and set php 5.6 as second or 3rd version or something.
This way phpmyadmin can be used.
 
Back
Top