I have installed Fedora 25 on a server and need to downgrade php from 7 to 5.6. I have done the following:
dnf remove php
dnf remove php-common
wget https://rpms.remirepo.net/fedora/remi-release-25.rpm
rpm -Uvh remi-release-25.rpm
dnf --enablerepo=remi install php56 php56-php-common php56-php-cli php56-php-mbstring php56-php-mcrypt php56-php-pear php56-php-xml php56-runtime php56-php-mysqlnd
Everything worked fine but now everything is named php56 instead of php and so the system can't find anything. For example:
# php -r "echo 'Current PHP version: ' . phpversion();"
-bash: /usr/bin/php: No such file or directory
# php56 -r "echo 'Current PHP version: ' . phpversion();"
Current PHP version: 5.6.30
How do I take the last step and make everything (including packages) work like before?
I tried creating a symlink as follows, but php code does not run from the web, so the apache->php link is broken.
cd /usr/bin
ln -s /opt/remi/php56/root/usr/bin/php php
Thanks in advance.