From a475dd3bc23f74489434242b8d5476f6a8bca92a Mon Sep 17 00:00:00 2001 From: yitam Date: Tue, 28 Feb 2017 08:21:08 -0800 Subject: [PATCH] Added SELinux note for RedHat --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c4dd2a85..e7ddbac8 100644 --- a/README.md +++ b/README.md @@ -266,6 +266,8 @@ Following instructions shows how to install PHP 7.x, Microsoft ODBC driver, apac sudo apachectl restart +*Note: SELinux is set to `Enforcing` by default on RedHat. To allow Apache to connect to database through SELinux, do this `sudo setsebool -P httpd_can_network_connect_db 1` + ### Step 7: Create your sample app Navigate to `/var/www/html` and create a new file called testsql.php. Copy and paste the following code in tetsql.php and change the servername, username, password and databasename.