DEV Community

Yegor Shytikov
Yegor Shytikov

Posted on

AWS Amazon Linux 2 amazon-linux-extras PHP version upgrade 7.2 to 7.4 +

sudo yum remove php*

or 'sudo yum autoremove php php-common' this one not tested

sudo amazon-linux-extras disable php7.2
sudo amazon-linux-extras enabmle php7.4
yum clean metadata

sudo yum -y install php php-common php-mysqlnd php-opcache php-xml php-gd php-soap php-bcmath php-intl php-mbstring php-json php-iconv php-fpm php-apcu php-zip php-devel

Top comments (1)

Collapse
 
leslieeeee profile image
Leslie

If you are a macOS user, ServBay.dev is worth to try. You don't need to spend some time or couple of days to setup anything. Just download it and you can use it immediately. You can run multiple PHP versions simultaneously and switch between them effortlessly.
Honestly, this tool has greatly simplified my PHP development and is definitely worth trying!