I v run d netstat and no result(i.e no process is listening on port 1010). Also I telnet 127.0.0.1 1010 just 2 confirm that no process is using the port. I can't figure out why the port(and any other except 80) would not work! ------Original Message------ From: John R Pierce Sender: centos-bounces@centos.org To: centos@centos.org ReplyTo: CentOS mailing list Subject: Re: [CentOS] Apache : Listen on ports other than 80 Sent: Sep 28, 2012 9:41 PM
On 09/28/12 1:30 PM, adekunleadekoya@gmail.com wrote:
I saw this error msg : 'permission denied:make_sock : could not bind to address 0.0.0.0:1010. No listening sockets available,shutting down' .
is another process listening on 1010 ?
netstat -an |grep :1010
look for lines with LISTEN on the end ...
On 09/28/12 1:47 PM, adekunleadekoya@gmail.com wrote:
I v run d netstat and no result(i.e no process is listening on port 1010). Also I telnet 127.0.0.1 1010 just 2 confirm that no process is using the port. I can't figure out why the port(and any other except 80) would not work!
selinux ?
try setting it to 'permissive' if its in 'enforcing', and see if it works. if so, you'll need to adjust the selinux policy to allow apache to listen on more ports.
On 29/09/12 06:47, adekunleadekoya@gmail.com wrote:
I v run d netstat and no result(i.e no process is listening on port 1010). Also I telnet 127.0.0.1 1010 just 2 confirm that no process is using the port. I can't figure out why the port(and any other except 80) would not work!
Sounds like an selinux issue. Try the following:
semanage port -a -t http_port_t -p tcp 1010
K
Thanks guys, This now work fine. I found your help extremely useful. This URL - (
http://docs.fedoraproject.org/en-US/Fedora/13/html/Managing_Confined_Service...)
further shed more light on SELinUX .
Thanks
On Sun, Sep 30, 2012 at 11:01 PM, Kahlil Hodgson < kahlil.hodgson@dealmax.com.au> wrote:
On 29/09/12 06:47, adekunleadekoya@gmail.com wrote:
I v run d netstat and no result(i.e no process is listening on port 1010). Also I telnet 127.0.0.1 1010 just 2 confirm that no process is using the port. I can't figure out why the port(and any other except 80) would not work!
Sounds like an selinux issue. Try the following:
semanage port -a -t http_port_t -p tcp 1010
K
Kahlil (Kal) Hodgson GPG: C9A02289 Head of Technology (m) +61 (0) 4 2573 0382 DealMax Pty Ltd (w) +61 (0) 3 9008 5281
Suite 1415 401 Docklands Drive Docklands VIC 3008 Australia
"All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1925