Re: [CentOS] Apache : Listen on ports other than 80

2012-10-01 Thread adekoya adekunle
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_Services/sect-Managing_Confined_Services-Configuration_examples-Changing_port_numbers.html)

 further shed more light on SELinUX .

Thanks





On Sun, Sep 30, 2012 at 11:01 PM, Kahlil Hodgson 
kahlil.hodg...@dealmax.com.au wrote:

 On 29/09/12 06:47, adekunleadek...@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


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-30 Thread Kahlil Hodgson
On 29/09/12 06:47, adekunleadek...@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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya

Sent from my BlackBerry wireless device from MTN

-Original Message-
From: adekunleadek...@gmail.com
Date: Fri, 28 Sep 2012 18:49:33 
To: cen...@mailing.list
Reply-To: adekunleadek...@gmail.com
Subject: Apache : Listen on ports other than 80

Hi,
I just install centos 6.3 on my oracle virtualbox. I tried 2 configure apache 2 
listen on port say 1010 but after adding a 'Listen 1010' to the httpd.conf file 
and then try 2 restart d httpd service, I found that d service failed to start. 
If I remove the 'Listen 1010' line then d httpd service restarts successfully. 
What do I need to do so I could instruct d web server to use other ports 
(besides 80) ?

Are there default settings in centos that are causing this prob ? I have done 
same experiment successfully wit apache on windows. I need to setup virtualhost 
with my apache on centos. I need help now. Pls help!

Regards

Kunle 
Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread Leon Fauster
Am 28.09.2012 um 21:06 schrieb adekunleadek...@gmail.com:
 
 I just install centos 6.3 on my oracle virtualbox. I tried 2 configure
 apache 2 listen on port say 1010 but after adding a 'Listen 1010' to
 the httpd.conf file and then try 2 restart d httpd service, I found
 that d service failed to start. If I remove the 'Listen 1010' line
 then d httpd service restarts successfully. What do I need to do so
 I could instruct d web server to use other ports (besides 80) ?
 
 Are there default settings in centos that are causing this prob ? I
 have done same experiment successfully wit apache on windows. I need 
 to setup virtualhost with my apache on centos. I need help now. Pls help!


check the VirtualHost *:PORT directive (and NameVirtualHost *:PORT).

--
LF
 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
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' . 
--Original Message--
From: lists-centos
To: adekunleadek...@gmail.com
Subject: Re: [CentOS] Apache : Listen on ports other than 80
Sent: Sep 28, 2012 8:26 PM


 -Original Message-
 From: adekunleadek...@gmail.com
 Date: Fri, 28 Sep 2012 18:49:33 
 To: cen...@mailing.list
 Reply-To: adekunleadek...@gmail.com
 Subject: Apache : Listen on ports other than 80
 
 Hi,
 I just install centos 6.3 on my oracle virtualbox. I tried 2
 configure apache 2 listen on port say 1010 but after adding a
 'Listen 1010' to the httpd.conf file and then try 2 restart d
 httpd service, I found that d service failed to start. If I remove
 the 'Listen 1010' line then d httpd service restarts successfully.
 What do I need to do so I could instruct d web server to use other
 ports (besides 80) ?
 
 Are there default settings in centos that are causing this prob ?
 I have done same experiment successfully wit apache on windows. I
 need to setup virtualhost with my apache on centos. I need help
 now. Pls help!
 
 Regards
 
 Kunle 

Start by looking in the apache error log. I think you'll get hints
there on what the problem is.


   - Richard




Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread John R Pierce
On 09/28/12 1:30 PM, adekunleadek...@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 ...





-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
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-boun...@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, adekunleadek...@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 ...





-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread John R Pierce
On 09/28/12 1:47 PM, adekunleadek...@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.

-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
I am running as a root user. I am very much aware that a non-privileged user 
can't access some functions. But again, I am running centos from my oracle 
virtualbox. I hope the virtual machine is not a factor? 
--Original Message--
From: lists-centos
To: adekunleadek...@gmail.com
Subject: Re: [CentOS] Apache : Listen on ports other than 80
Sent: Sep 28, 2012 9:45 PM



 Original Message 
 Date: Friday, September 28, 2012 01:41:46 PM -0700
 From: John R Pierce pie...@hogranch.com
 To: centos@centos.org
 Subject: Re: [CentOS] Apache : Listen on ports other than 80

 On 09/28/12 1:30 PM, adekunleadek...@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 ...

or, are you trying to start apache from a non-privileged user? ports
through 1024 are reserved and only root can bind processes to them.

   - Richard




Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
What is 'selinux ?' and selinux policy ? Are there commands I need to access 
these ? I wld b glad to know this.
--Original Message--
From: John R Pierce
Sender: centos-boun...@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:50 PM

On 09/28/12 1:47 PM, adekunleadek...@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.

-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread m . roth
adekunleadek...@gmail.com wrote:
 What is 'selinux ?' and selinux policy ? Are there commands I need to
 access these ? I wld b glad to know this.

ARRRGHGHHGHGHG

Have you ever considered google as a tool?
Say, google on selinux?

http://en.wikipedia.org/wiki/Security-Enhanced_Linux

   mark
 --Original Message--
 From: John R Pierce
 Sender: centos-boun...@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:50 PM

 On 09/28/12 1:47 PM, adekunleadek...@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.

 --
 john r pierceN 37, W 122
 santa cruz ca mid-left coast

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


 Sent from my BlackBerry wireless device from MTN
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
Ok, wld google later in the day. Am off my pc but using my mobile now which 
gives only email access. Thanks for the new insight. Really, I am new to linux 
and just using centos to learn about linux. I appreciate the kind and timely 
support offered by this mailing list.
Sent from my BlackBerry wireless device from MTN

-Original Message-
From: m.r...@5-cent.us
Sender: centos-boun...@centos.org
Date: Fri, 28 Sep 2012 16:54:17 
To: CentOS mailing listcentos@centos.org
Reply-To: CentOS mailing list centos@centos.org
Subject: Re: [CentOS] Apache : Listen on ports other than 80

adekunleadek...@gmail.com wrote:
 What is 'selinux ?' and selinux policy ? Are there commands I need to
 access these ? I wld b glad to know this.

ARRRGHGHHGHGHG

Have you ever considered google as a tool?
Say, google on selinux?

http://en.wikipedia.org/wiki/Security-Enhanced_Linux

   mark
 --Original Message--
 From: John R Pierce
 Sender: centos-boun...@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:50 PM

 On 09/28/12 1:47 PM, adekunleadek...@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.

 --
 john r pierceN 37, W 122
 santa cruz ca mid-left coast

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


 Sent from my BlackBerry wireless device from MTN
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos