After root login, I set access right for non-root users using socket on php script as following command:
setcap 'cap_net_raw=+ep' /usr/local/bin/php
And then run the command at linux shell:
It works without any previous permission error, but I tried run it on browser that doesn't work, so which setting in php.ini I need to set for that ? And I run phpinfo() on browser and see Socket Support is enabled, why it is still not working ?
I tried on php.ini with uncomment or comment extension=php_sockets.dll or extension=php_sockets.so for window and linux both don't work but socket is still enabled from phpinfo() output on browser. So which setting for enabling socket on php for linux shell and browser ?
(Note: this link describes the socket is enabled with compiling with configuration option during installation , http://php.net/manual/en/sockets.installation.php