Re: socket_bind
| From: | bbonkosk at tampabay dot rr dot com | Date: | Fri, 25 Jun 2004 14:22:05 +0000 |
| Subject: | Re: socket_bind | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189056@lists.php.net to get a copy of this message | ||
I think all sockets less then 1024 need superuser permission to bind. And because Apache typically
runs as nobody you don't have permission, so either run apache as root (DANGER!) or choose a
socket above 1024.
-Brad
----- Original Message -----
From: Josh Close <josh@teamfreeze.com>
Date: Friday, June 25, 2004 10:18 am
Subject: [PHP] socket_bind
> I'm trying to do socket_bind() and it works fine from the command
> line as
> root, but when I try to use it through apache I get this error
>
> Warning: socket_bind() unable to bind address [13]: Permission
> denied in
> ......
>
> Is there a way to have this run through apache?
>
> -Josh
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>