标签: php apache pdo odbc
new PDO($nonLocalhostDsn)
php index.php
结果=连接正常
http://hostname/index.php
结果=登录超时已过期
答案 0 :(得分:0)
setsebool -P httpd_can_network_connect=1 setsebool -P httpd_can_network_connect_db=1