Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
Line 67: Line 67:
Connection closed.
Connection closed.
</pre>
</pre>
非預期結果:請調整防火牆設定
<pre>
Trying x.x.x.x...
telnet: connect to address x.x.x.x: Connection refused
</pre>
* SELinux設定 [http://www.lahory.com/phpmailer-smtp-error-failed-to-connect-to-server-permission-denied-13/ PHPMailer SMTP -> ERROR: Failed to connect to server: Permission denied (13) | Lahory]
* SELinux設定 [http://www.lahory.com/phpmailer-smtp-error-failed-to-connect-to-server-permission-denied-13/ PHPMailer SMTP -> ERROR: Failed to connect to server: Permission denied (13) | Lahory]
預期結果:
<pre>
# getsebool httpd_can_sendmail
httpd_can_sendmail --> on
# getsebool httpd_can_network_connect
httpd_can_network_connect --> on
</pre>
非預期結果:
<pre>
# getsebool httpd_can_sendmail
httpd_can_sendmail --> off
# getsebool httpd_can_network_connect
httpd_can_network_connect --> off
</pre>
需要輸入指令:
<pre>
# setsebool -P httpd_can_sendmail 1
# setsebool -P httpd_can_network_connect 1
</pre>


== unified coding style ==
== unified coding style ==

Navigation menu