Reputation: 11
Info:
had install: freetds; ODBC; php_mssql
selinux was disable
mssql.so was enable in php.ini
I install follow instructions: http://www.linuxjournal.com/article/6636
everything work fine,the odbc_connect success but I cannot use mssql_connect or mssql_* (like unknown fun mssql).
can everyone help me to fix it?
Upvotes: 1
Views: 7379
Reputation: 155
Restarting Apache Server
/etc/init.d/httpd restart
http://howtogetitworking.com/2008/02/26/how-to-install-mssql-extension-for-php-on-unix/
Upvotes: 0
Reputation: 3598
you can check following article step by step. any query let me know https://social.technet.microsoft.com/wiki/contents/articles/39838.troubleshooting-mssql-server-for-linux.aspx
Upvotes: 0
Reputation: 198203
The installation instruction you are using looks pretty outdated for your Centos version.
Instead I suggest you revert the installation you've done so fare completely and then just install the pacakges from the package manager:
yum install php-odbc php-mssql
A more recent installation instruction can be found here:
Hope this helps. And as long as ODBC functions are working, you can use ODBC functions to connect to the mssql server. No need to actually to use the mssql_*
functions as they do not work with your setup for some reason.
Upvotes: 2