PHP ssh2_connect and SELinux

谁说我不能喝 提交于 2019-12-12 04:43:52

问题


I've got a server that I was having trouble running ssh2_connect on. I realized that if I disabled SELinux it would work. I'd prefer not to do that though. Is it possible to make ssh2_connect in php work with SELinux enabled?


回答1:


Found the answer. There's an selinux boolean that needs to be enabled. Run this in shell:

setsebool -P httpd_can_network_connect on


来源:https://stackoverflow.com/questions/22640846/php-ssh2-connect-and-selinux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!