lamp icon indicating copy to clipboard operation
lamp copied to clipboard

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

Open Litwilly opened this issue 4 years ago • 8 comments

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

Litwilly avatar May 24 '21 11:05 Litwilly

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.

teddysun avatar May 24 '21 13:05 teddysun

image

Litwilly avatar May 24 '21 23:05 Litwilly

The new system is not compatible with the old software.

teddysun avatar May 24 '21 23:05 teddysun

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

Litwilly avatar May 25 '21 00:05 Litwilly

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 avatar May 25 '21 02:05 ducna96

@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.

teddysun avatar May 25 '21 02:05 teddysun

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

teddysun avatar May 25 '21 02:05 teddysun

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

Litwilly avatar May 25 '21 12:05 Litwilly