MariaDB 10.2 and php7.3 not possible at the same time?

0

Is it not possible to install php7.3 and MariaDB 10.2 at the same time?

When I try to I get this error:

amazon-linux-extras install lamp-mariadb10.2-php7.2

Refusing because lamp-mariadb10.2-php7.2 could cause an invalid combination.

Could something else be causing that error?

feita há 5 anos1000 visualizações
8 Respostas
0
Resposta aceita

Thank you for bringing this to our attention. We created the lamp-mariadb10.2-php7.2 extra as a convenience, to install most of the LAMP stack with a single operation. At the time we created it, PHP 7.2 was the latest-and-greatest, so it was the obvious choice.

The MySQL-related modules we provide for the various PHP versions in our extras are not compiled against any specific client libraries, so they should be able to connect to any MySQL-alike processes, like MariaDB. All of the PHP versions we provide share this, so there's no technical reason why you can't use PHP 7.3 with our MariaDB packages, other than the fact that we don't make them available in compatible channels.

We are evaluating how we should best rearrange our extras, to correct this limitation and provide a future-proofed solution.

AWS
respondido há 5 anos
0

@AWStrinity, did you ever get around to fixing this? We would very much like to upgrade to PHP 7.4, but AFAIK currently cannot without leaving the comfort of Amazon-provided packages, as MariaDB (or any MySQL flavor) only seems to be available through the lamp-mariadb10.2-php7.2 extra.

respondido há 4 anos
0

PHP 7.2 is about to enter end of security support by end of this year.
Is there any forecast of when will AWS update Linux 2 extras to give support to MariaDB and PHP 7.4 ?

Rtrauer
respondido há 4 anos
0

Same question, any update on this?
Need to be able to install mariadb with php 7.4

P4bl0
respondido há 3 anos
0

I got tired of waiting for them to update amazon-linux-extras and just use the packages from mariadb.org directly.

Here's some extract (hopefully all the relevant bits; I'm also configuring PHP & Mariadb some more than just this) from a cloud-init user-data I use for a Wordpress server (though of course the forum is butchering the formatting):

yum_repos:  
  mariadb:  
    baseurl: https://yum.mariadb.org/10.5/centos7-amd64/  
    name: MariaDB  
    enabled: true  
    gpgkey: https://yum.mariadb.org/RPM-GPG-KEY-MariaDB  
    gpgcheck: 1  
packages:  
 - php-xml  
 - php-gd  
 - php-mbstring  
 - MariaDB-server  

I'm sure some of you would be more comfortable if you could use Amazon's own package repository, but I find if I want updated packages I generally need to get them more directly.

respondido há 3 anos
0

I have been looking for a solution to this too (installing PHP 7.4 on EC2 with MariaDB).

Can you provide some shell commands to get this going, if the whole LAMP package is not yet available in the amazon-linux-extras repo?

respondido há 3 anos
0

Also since PHP 8 is out now and stable, would that be the better choice? Hosting a Wordpress site here.

respondido há 3 anos
0

The locked versions are ancient by now. Not much of a convenience if you never update to current versions, then it's more like a straitjacket.

respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas