teddysun / lamp

Install LAMP (Linux + Apache + MySQL/MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu

Home Page:https://lamp.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there an easy way to downgrade or switch php versions?

Litwilly opened this issue · comments

Installed LAMP with php 8, having some issues so until I can resolve would like to downgrade to php 7.

Rename PHP Install location /usr/local/php and reinstall it with same option.

mv /usr/local/php /usr/local/php8

and

./lamp.sh

Select PHP 7.

If /usr/local/apache and /usr/local/mysql already exists, it will be skip the installation when reinstall LAMP.

The new system is not compatible with the old software.

appreciate the quick responses, so I also tried as suggested on ubuntu18 and got this error when installing php7.3
image

image
i want to reinstall php,, i I have chosen do not install apache, and do not install mysql, and then script stop, it did not allow reinstall option , help me !
thanks.

@ducna96
No, you still need to chosen install Apache and MySQL. and other options need to chosen too.
If path /usr/local/apache and /usr/local/mysql already exists, there will be skip the installation when reinstall LAMP.

appreciate the quick responses, so I also tried as suggested on ubuntu18 and got this error when installing php7.3
image

try PHP 7.4
It looks like ICU problem

getting the same issue with 7.4

I also spun up a new azure ubuntu 20 vm, and unable to successfully run the script with php5.6 or 7.0