Discussion:
socket_bind
Josh Close
2004-06-25 14:18:26 UTC
Permalink
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
b***@tampabay.rr.com
2004-06-25 14:22:05 UTC
Permalink
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 <***@teamfreeze.com>
Date: Friday, June 25, 2004 10:18 am
Subject: [PHP] socket_bind
Post by Josh Close
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Josh Close
2004-06-25 14:42:31 UTC
Permalink
Thanks, changing the port worked.

-Josh
-----Original Message-----
Sent: Friday, June 25, 2004 9:22 AM
Cc: PHP (E-mail)
Subject: Re: [PHP] socket_bind
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 -----
Date: Friday, June 25, 2004 10:18 am
Subject: [PHP] socket_bind
Post by Josh Close
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...