8、打开mail类的调试方法:$mail->SMTPDEBUG = true;报错如下
SMTP -> ERROR: Failed to connect to server: Permission denied (13)
解决方法:
SELinux 阻止了 httpd 的连接。修改方式也给出来了,以 root 身份运行以下命令即可:
//httpd s are allowed to connect out to the network
setsebool -P httpd_can_network_connect 1