Skip to main content

SElinux prevents MSSQL connection from PHP

From PHP.net

If someone encounters the interesting problem in which PHP can connect to a MSSQL server from the command line but not when running as an Apache module: SELinux prevents Apache (and therefore all Apache modules) from making remote connections by default.

This solved the problem in CentOS:
# setsebool -P httpd_can_network_connect=1

Comments

Popular posts from this blog