note 85795 added to function.socket-connect
| From: | maganap at osu1 dot php dot net | Date: | Thu, 18 Sep 2008 07:15:19 +0000 |
| Subject: | note 85795 added to function.socket-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144502@lists.php.net to get a copy of this message | ||
Hi there!
For the TCP connections: socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
In case you're having problems in socket_connect() with socket_strerror() = "Permission
denied", you may be having a SELinux config issue.
Check if SELinux is enabled:
# /usr/sbin/sestatus -v
In case it is, you can just type the command:
# setsebool httpd_can_network_connect=1
That's it... I read you had to reboot, but I didn't and it worked fine anyway. More info,
you may check:
http://arkiv.netbsd.se/?ml=squirrelmail-users&a=2005-11&t=1523021
----
Server IP: 200.44.243.71
Probable Submitter: 201.242.146.240
----
Manual Page -- http://www.php.net/manual/en/function.socket-connect.php
Edit -- https://master.php.net/note/edit/85795
Del: integrated -- https://master.php.net/note/delete/85795/integrated
Del: useless -- https://master.php.net/note/delete/85795/useless
Del: bad code -- https://master.php.net/note/delete/85795/bad+code
Del: spam -- https://master.php.net/note/delete/85795/spam
Del: non-english -- https://master.php.net/note/delete/85795/non-english
Del: in docs -- https://master.php.net/note/delete/85795/in+docs
Del: other reasons-- https://master.php.net/note/delete/85795
Reject -- https://master.php.net/note/reject/85795
Search -- https://master.php.net/manage/user-notes.php