If you have a Cpanel with CENTOS and you need to add MSSQL module for your website you can use this commands .
Code:yum clean all yum update --enter on http://fedoraproject.org/wiki/EPEL --In the section "How can I use these extra packages?" you have the link for "The newest version of 'epel-release' for EL6" --http://ftp.astral.ro/mirrors/fedora/pub/epel/6/i386/epel-release-6-8.noarch.rpm -- in time the version may change but must be like CENTOS for the moment is 6 ... yum install http://ftp.astral.ro/mirrors/fedora/pub/epel/6/i386/epel-release-6-8.noarch.rpm yum clean all yum update yum install freetds* --- the commnad must be with "*" cd /home/cpeasyapache/src/ ---see what version of php u have and enter on it cd php-5.3.15/ cd ext/mssql/ phpize ln -s /usr/local/freetds/lib/libsybdb.so.5 /usr/lib64/libsybdb.so.5 ln -s /usr/local/freetds/lib/libsybdb.so.5 /usr/local/freetds/lib64/libsybdb.so ldconfig -v ln -s /usr/lib64/libsybdb.so /usr/lib/libsybdb.so ./configure make make install ----see where is php.ini php -i | grep php.ini ---so in my case is /usr/local/lib/php.ini ----open the file an at the end you add extension=mssql.so --after that u can check if the extension exist php -m | grep mssql =======DONE===== =========OTHERS ++++ php -i PHP information php -m Show compiled in modules php --ini Show configuration file names =======DONE===== --- reactivate mssql in case u need cd /home/cpeasyapache/src/php-5.4.11/ext/mssql/ phpize ./configure make make install -- check if is setup a module like mcrypt php -m | grep mcrypt
I'm working for a silkroad servers and this is the reason why i add this guide here . If it is in a wrong section please a moderator to move it
It can help a lot of people.



Reply With Quote

