Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
LemonWiki共筆
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Troubleshooting of PHP errors
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== 錯誤訊息: SMTP Error: Could not connect to SMTP host. === 錯誤訊息: Invalid address: SMTP -> ERROR: Failed to connect to server: Permission denied (13) SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host. 解決方法 * 檢查 PHP 模組是否安裝 OpenSSL {{kbd | key =<nowiki> php -r "phpinfo();" | grep -i "OpenSSL support"</nowiki> }} 或 {{kbd | key =<nowiki> php -i | grep -i OpenSSL</nowiki> }} for {{Linux}} 預期結果: <pre> OpenSSL support => enabled </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] 預期結果: <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> 相關頁面: [[Email testing]]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki共筆:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)