Install PHP 5.6 on AlmaLinux 8

To install PHP 5.6 on AlmaLinux 8, first enable epel repository.

install remi repository with the command

Now you can install PHP 5.6 with

You can execute PHP with the command

If you want PHP 5.6 to work with the command “php”, then edit

At end of the file, add

Log off and login to the server or run command

Or you can create a symlink

If you need PHP work with Apache, run install Apache with

Install php-fpm with

Enable and restart Apache

php-fpm pool config file available at

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.