您的位置:首页 > 编程语言 > PHP开发

php can't connect to mysql with error 13

2016-03-07 14:57 507 查看
setsebool -P httpd_can_network_connect=1


will also be a helpful CLI command to many people visiting this question, as to allow mysql_connet() connections from within HTTP (Apache) requests to a remote MySQL database server, ensure to enable Network Connections from httpd in SElinux usually located
in /etc/selinux/config (disabled by default to prevent hackers from attacking other machines using your httpd).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: