PHP-MSSQL problem

Issues related to applications and software problems and general support
Post Reply
amintay
Posts: 11
Joined: 2024/01/17 10:40:54

PHP-MSSQL problem

Post by amintay » 2024/03/09 22:08:38

Hello everyone,

I encounter the following problem when I want to install PHP-MSSQL on centos stream 9:

[root@localhost ~]# sudo yum install php-mssql
Last metadata expiration check: 0:15:42 ago on Sat 09 Mar 2024 10:24:55 PM +01.
No match for argument: php-mssql
Error: Unable to find a match: php-mssql



can anyone help me to solve it please.
thanks.

User avatar
jlehtone
Posts: 4532
Joined: 2007/12/11 08:17:33
Location: Finland

Re: PHP-MSSQL problem

Post by jlehtone » 2024/03/09 22:52:10

Quick websearch says that Remi's repos have (had) php-mssql for el[4567] and EPEL for el7.
Also, Remi's repos have (had) php56-php-mssql for el[678].
Those are for PHP 5.4 and 5.6.

RHEL 9 has PHP 8.0 (and 8.1 as an appstream). I'd guess that PHP 8 is different from PHP 5. If there is something for mssql, then it is by different name.

User avatar
TrevorH
Site Admin
Posts: 33224
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PHP-MSSQL problem

Post by TrevorH » 2024/03/10 01:23:22

A quick google says "use PDO". It seems php-mssql was removed from php 7.x.I see php-pdo is in appstream in EL9 but it also looks like you need php-pdo-dblib from EPEL to allow MSSQL use.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: PHP-MSSQL problem

Post by remirepo » 2024/03/10 06:55:07

Indeed mssql extension was PHP 5 only

You can read https://blog.remirepo.net/post/2016/09/ ... r-from-PHP
Remi's Repository - Forum - Blog

amintay
Posts: 11
Joined: 2024/01/17 10:40:54

Re: PHP-MSSQL problem

Post by amintay » 2024/03/10 13:44:25

hello,

I've already installed PHP-PDO without any problem. This PHP-MSSQL installation is necessary for nagios XI to monitor sqlserver.

User avatar
TrevorH
Site Admin
Posts: 33224
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PHP-MSSQL problem

Post by TrevorH » 2024/03/10 16:54:54

Report it to Nagios XL. They are using something which has been dead for at least 5 years and will never come back. They need to change to use something else.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

amintay
Posts: 11
Joined: 2024/01/17 10:40:54

Re: PHP-MSSQL problem

Post by amintay » 2024/03/14 09:56:30

Hi

ok , thank you for your replay.

Post Reply