~]$ mysql -uroot -p mysql> CREATE DATABASE wordpress; mysql> CREATE USER "sakura"@"%" IDENTIFIED BY "sakura"; mysql> GRANT ALL PRIVILEGES ON wordpress.* TO "sakura"@"%"; mysql> FLUSH PRIVILEGES; mysql> EXIT
~]# sudo tail -f /var/log/messages Dec 2 14:45:02 wordpress setroubleshoot[14433]: SELinux is preventing php-fpm from name_connect access on the tcp_socket port 80. For complete SELinux messages run: sealert -l 060daf24-f64b-4a45-b1e9-08b62cf8f29a Dec 2 14:45:02 wordpress setroubleshoot[14433]: SELinux is preventing php-fpm from name_connect access on the tcp_socket port 80.#012#012***** Plugin catchall_boolean (24.7 confidence) suggests ******************#012#012If you want to allow httpd to can network connect#012Then you must tell SELinux about this by enabling the 'httpd_can_network_connect' boolean.#012#012Do#012setsebool -P httpd_can_network_connect 1#012#012***** Plugin catchall_boolean (24.7 confidence) suggests ******************#012#012If you want to allow httpd to graceful shutdown#012Then you must tell SELinux about this by enabling the 'httpd_graceful_shutdown' boolean.#012#012Do#012setsebool -P httpd_graceful_shutdown 1#012#012***** Plugin catchall_boolean (24.7 confidence) suggests ******************#012#012If you want to allow httpd to can network relay#012Then you must tell SELinux about this by enabling the 'httpd_can_network_relay' boolean.#012#012Do#012setsebool -P httpd_can_network_relay 1#012#012***** Plugin catchall_boolean (24.7 confidence) suggests ******************#012#012If you want to allow nis to enabled#012Then you must tell SELinux about this by enabling the 'nis_enabled' boolean.#012#012Do#012setsebool -P nis_enabled 1#012#012***** Plugin catchall (3.53 confidence) suggests **************************#012#012If you believe that php-fpm should be allowed name_connect access on the port 80 tcp_socket by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c 'php-fpm' --raw | audit2allow -M my-phpfpm#012# semodule -X 300 -i my-phpfpm.pp#012