socket_bind() [function.socket-bind]: unable to bind address [13]: Permission denied

时光总嘲笑我的痴心妄想 提交于 2019-12-25 04:42:54

问题


I am building a chat application based on websocket protocol.I am uploading this on an apache server and i am getting this error :

"Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use"

I am using port no. 12346. When i checked this port's status i got "12346 is not responding".

I have checked many ports on my remote server ,none of them is responding.So please tell me how to check if there is a usable port which i can use??

I have also used port 80 and 443 but i am getting the error:

Permission Denied

回答1:


I see that that you're using apache - this is most likely the problem. You need to run the script as a deamon or at least from a shell, and you will need root privileges for ports under 1024 unless you're on a windows host.



来源:https://stackoverflow.com/questions/15925107/socket-bind-function-socket-bind-unable-to-bind-address-13-permission-de

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