Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

507
Views
Refusing because php8.0 could cause an invalid combination

Error raised while trying to upgrade/update php version to 8.0 on amazon linux 2 (AWS ec2) Following the below procedure could raise error "Refusing because php8.0 could cause an invalid combination."

sudo yum install -y amazon-linux-extras
sudo  amazon-linux-extras | grep php
sudo amazon-linux-extras enable php7.4
sudo yum install php php7.4-{pear,cgi,common,curl,mbstring,gd,mysqlnd,gettext,bcmath,json,xml,fpm,intl,zip,imap}

eg:

# amazon-linux-extras enable php8.0 

Refusing because php8.0 could cause an invalid combination.

Try the below steps to solve this //Remove the php

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

#yum remove -y php php-* \ 

#sudo amazon-linux-extras disable php7.2 

(whichever is the version enabled)

Run

#amazon-linux-extras list | grep php 

to list available and disalbe all shows enabled

 15  php7.2                          available    \
 17  **lamp-mariadb10.2-php7.2=latest  enabled**      \
  _  php7.3                          available    \
  _  php7.4                          available    [ =stable ]
  _  php8.0                          available    [ =stable ]

We might find something like the one highlighted in bold and disable that too eg: sudo amazon-linux-extras disable lamp-mariadb10.2-php7.2 in the above case.

Once above steps are done try running

sudo amazon-linux-extras enable php7.4
sudo yum install php php7.4-{pear,cgi,common,curl,mbstring,gd,mysqlnd,gettext,bcmath,json,xml,fpm,intl,zip,imap}

Once we are done with installation verify

php -v

which will give an output similar to the one below

PHP 8.0.8 (cli) (built: Jul  7 2021 17:35:32) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.8, Copyright (c) Zend Technologies
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!