adekunleadekoya at gmail.com
2012-Sep-28 19:06 UTC
[CentOS] Apache : Listen on ports other than 80
Sent from my BlackBerry wireless device from MTN -----Original Message----- From: adekunleadekoya at gmail.com Date: Fri, 28 Sep 2012 18:49:33 To: <CentOS at mailing.list> Reply-To: adekunleadekoya at 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
Am 28.09.2012 um 21:06 schrieb adekunleadekoya at 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
adekunleadekoya at gmail.com
2012-Sep-28 20:30 UTC
[CentOS] Apache : Listen on ports other than 80
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: adekunleadekoya at gmail.com Subject: Re: [CentOS] Apache : Listen on ports other than 80 Sent: Sep 28, 2012 8:26 PM> -----Original Message----- > From: adekunleadekoya at gmail.com > Date: Fri, 28 Sep 2012 18:49:33 > To: <CentOS at mailing.list> > Reply-To: adekunleadekoya at 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 > > KunleStart 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
adekunleadekoya at gmail.com
2012-Sep-28 20:47 UTC
[CentOS] Apache : Listen on ports other than 80
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 at centos.org To: centos at 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 at 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 pierce N 37, W 122 santa cruz ca mid-left coast _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos Sent from my BlackBerry wireless device from MTN
adekunleadekoya at gmail.com
2012-Sep-28 20:50 UTC
[CentOS] Apache : Listen on ports other than 80
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: adekunleadekoya at 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 <pierce at hogranch.com> > To: centos at centos.org > Subject: Re: [CentOS] Apache : Listen on ports other than 80 > > On 09/28/12 1:30 PM, adekunleadekoya at 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
adekunleadekoya at gmail.com
2012-Sep-28 20:52 UTC
[CentOS] Apache : Listen on ports other than 80
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-bounces at centos.org To: centos at 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, adekunleadekoya at 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 pierce N 37, W 122 santa cruz ca mid-left coast _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos Sent from my BlackBerry wireless device from MTN