2014-03-25 43 views
0

我有一臺服務器,在運行ssh2_connect時遇到了問題。我意識到,如果我禁用了SELinux,它會起作用。我寧願不要那樣做。在啓用SELinux的情況下,可以使用ssh2_connect工作嗎?PHP ssh2_connect和SELinux

回答

1

找到了答案。有一個需要啓用的selinux布爾值。在shell中運行:

setsebool -P httpd_can_network_connect on