Install php-mssql in CentOS 6.2
Solution 1
php-mssql
is in EPEL.
Solution 2
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
Solution 3
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
Solution 4
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).
Related videos on Youtube
izip
Updated on September 18, 2022Comments
-
izip almost 2 years
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"
-
Admin about 12 yearsHow did you "try and install ms-sql extension"?
-
Admin about 12 years"yum install php-mssql"
-
-
izip about 12 yearsHow 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?
-
Ignacio Vazquez-Abrams about 12 yearsIt goes by the major number of the distro version. Hence, CentOS 6.2 is EL6.
-
izip about 12 yearsOK thanks, will try. This linked helped for others finding this: gembuls.wordpress.com/2011/02/12/…
-
Deer Hunter over 8 yearsRemi's repo is a tricky proposition for run-of-the-mill CentOS. Since the OP is running Plesk, all bets are off, though.
-
Michael Hampton over 8 yearsThis 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!