By AminTaheri
Rate: (9 Ratings)
SELinux is a great tool that should be used on every publicly accessible web server, and on any corporate server where you have a need to secure the data. SELinux secures services until you tell it that other services and connections are allowed. Its restrictive by nature and needs to be configured to your needs. It is fairly common for companies to use a seperate server to house a database, or perhaps shared databases for clients seperate from web hosted machines. If this sounds like you: "I have problem getting the PHP/Apache on the linux server to work with the external Mysql database. Connection from PHP scripts to the remote database always fails. We made a small php script that simply tries to connect to the remote database. When running the php script in ssh on the web server it works just fine. But when running it under Apache we get a connection failure no matter what we do. " Then we will address how to fix this :)