5

I have a server running CentOS 6.2 with Plesk 10.4. When I SSH in, and try and install ms-sql extension it says "No package php-mssql available."

I can't seem to find much on Google for this, and I am a bit of a Linux noob. Can anyone offer any help?

EDIT: I tried installing it using "yum install php-mssql"

izip
  • 221
  • 1
  • 3
  • 8

5 Answers5

4

php-mssql is in EPEL.

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84
  • How would I install EPEL in CentOS 6.2? "If you are running an EL6 version ,please visit here to get the newest 'epel-release' package for EL6: The newest version of 'epel-release' for EL6" How would I know if I am running EL6? – izip May 09 '12 at 21:59
  • It goes by the major number of the distro version. Hence, CentOS 6.2 is EL6. – Ignacio Vazquez-Abrams May 09 '12 at 22:01
  • OK thanks, will try. This linked helped for others finding this: http://gembuls.wordpress.com/2011/02/12/how-to-install-epel-repository-on-centos/ – izip May 09 '12 at 22:03
1

Try this steps.

1> Install EPEL repo

 rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

2> yum install php-mssql

Chakri
  • 1,070
  • 6
  • 8
1

You need to install php-mssql extension on Linux CentOS6

Step 1: Install needed respositories

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Step 2: Install the extension

yum install php-mssql

Nokza
  • 11
  • 1
  • Remi's repo is a tricky proposition for run-of-the-mill CentOS. Since the OP is running Plesk, all bets are off, though. – Deer Hunter Nov 17 '15 at 08:13
1

Plesk heavily alters the distribution, which is often considered as "not CentOS", especially, the PHP stack is fully replaced, and standard packages (from CentOS, or any 3rd party repository) can't be installed (excluded in yum configuration).

So you need to add Plesk support (Plesk is a commercial software).

Remi Collet
  • 2,111
  • 1
  • 12
  • 12
  • This community decided some time ago to stop accepting questions about Plesk, cPanel and the like, precisely because of this issue. If you see an old question about them in future, please flag it to be closed. Thank you! – Michael Hampton Nov 17 '15 at 09:10
0

I will suggest to use http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/. It works perfectly on CentOS

ALex_hha
  • 7,193
  • 1
  • 25
  • 40