I can’t download any php extensions inside my docker container, when trying
yum install php7.3-mysql
it gives me error
“No package php7.3-zip available.”
And when trying with docker-php-ext-install
it gives me
“bash: docker-php-ext-install: command not found”
The docker container was created from the centos official image, just pulled it and installed php7.3 successfully but not the extensions
2
Answers
In CentOS 7.6 you have to enable the Epel-Repository first to get the version.
Then you can install the Remi-Repository to get the latest PHP-Version.
Then you can install the latest PHP-Version with:
In CentOS normally there are older versions and you have to install them first.
Replayed your issue following the steps below:
And for the last operation I got:
The package name you have specified does not exist, however it exists php73-php-mysqlnd, that looks pretty close to what you are trying to get.
Try with this: