본문 바로가기
APM

connect error (2003) can't connect to mysql server on (13)

by [김경민]™ ┌(  ̄∇ ̄)┘™ 2013. 6. 28.
728x90

[출처] http://stackoverflow.com/questions/4078205/php-cant-connect-to-mysql-with-error-13-but-command-line-can 

 

 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).

728x90

댓글