note 105132 added to function.mssql-connect
| From: | benjamin at mysteriousquilt dot se | Date: | Fri, 29 Jul 2011 14:02:04 +0000 |
| Subject: | note 105132 added to function.mssql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181993@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 81.170.206.42
----
Manual Page -- http://www.php.net/manual/en/function.mssql-connect.php
Edit -- https://master.php.net/note/edit/105132
Del: integrated -- https://master.php.net/note/delete/105132/integrated
Del: useless -- https://master.php.net/note/delete/105132/useless
Del: bad code -- https://master.php.net/note/delete/105132/bad+code
Del: spam -- https://master.php.net/note/delete/105132/spam
Del: non-english -- https://master.php.net/note/delete/105132/non-english
Del: in docs -- https://master.php.net/note/delete/105132/in+docs
Del: other reasons-- https://master.php.net/note/delete/105132
Reject -- https://master.php.net/note/reject/105132
Search -- https://master.php.net/manage/user-notes.php