BlogServers

No package php-mssql available

For those of you still using old software and with the need of maintaining and supporting it, sometimes problems arise. My latest one was going through an old PHP program that needed an update.

composer status
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mssql.so' - /usr/lib64/php/modules/mssql.so: canno
No local changes

To correct this, you would normally do:

sudo yum install php-mssql
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
No package php-mssql available.
Error: Nothing to do

Yep, no package php-mssql available. Remember you are using old software now without any support.

By default, we would try to install EPEL:

 wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
--2023-10-30 12:54:28--  https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Resolving dl.fedoraproject.org... 38.145.60.22, 38.145.60.24, 38.145.60.23
Connecting to dl.fedoraproject.org|38.145.60.22|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2023-10-30 12:54:28 ERROR 403: Forbidden.

ERROR 403: Forbidden. Again. Old software, no support. We need to change de repo link to:

wget https://dl.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm

And then:

rpm -Uvh epel-release-latest-6.noarch.rpm
yum-config-manager --enable remi-php56
yum-config-manager --disable webtatic
yum install php-mssql

Success!

Artigos Relacionados

Deixe um comentário

O seu endereço de email não será publicado. Campos obrigatórios marcados com *

Este site utiliza o Akismet para reduzir spam. Fica a saber como são processados os dados dos comentários.

Botão Voltar ao Topo
João Clérigo - Photography
Fechar

AdBlocker Detetado
AdBlocker Detected

Por favor ajude este website permitindo a visualização de alguns anúncios. Obrigado. Please help this website allowing the view of some advertising. Thank you!