Apache Server configuration support - Apache won't restart after "listen" changes.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2006 > Apache won't restart after "listen" changes.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache won't restart after "listen" changes.
tipiac@netcourrier.com

2006-07-19, 8:09 am

Hi all,
I've a problem when trying to restart my apache server. My server
currently listens to ports 80 and 8080. I'd like to add some virtual
hosts so I've added listen lines but when I try to listen on other
ports than these 2 ones, apache does'nt restart. Even if I try to
change all confs for the app running on port 8080 to make it run on
8085 for example it crashes.

If it can help, i'm running fedoracore4 and I've enabled port 8085 with
system-config-sercutirylevel.

Thanks in advance for your help.

Tipiac

J.R0wan

2006-07-19, 8:09 am

tipiac@netcourrier.com wrote:
> Hi all,
> I've a problem when trying to restart my apache server. My server
> currently listens to ports 80 and 8080. I'd like to add some virtual
> hosts so I've added listen lines but when I try to listen on other
> ports than these 2 ones, apache does'nt restart. Even if I try to
> change all confs for the app running on port 8080 to make it run on
> 8085 for example it crashes.
>
> If it can help, i'm running fedoracore4 and I've enabled port 8085 with
> system-config-sercutirylevel.
>
> Thanks in advance for your help.
>
> Tipiac
>


Have you tried running
apachectl configtest

I have my server listening on ports 80 - 83 then 8081 - 8110 without
problems. Can you post portions of your /etc/httpd/conf/httpd.conf that
have the listen statements and your virtual host section. Are your
virtual hosts defined in DNS? I had problems where my virtual hosts
were something like www.domainname.com:8081 and www.domaindname.com
could not be resolved (I hadn't defined it yet) so I'd get an error BUT
apache would load for the other virtual hosts (if I remember correctly).
tipiac@netcourrier.com

2006-07-19, 8:09 am

J=2ER0wan a =E9crit :

> tipiac@netcourrier.com wrote:
>
> Have you tried running
> apachectl configtest
>
> I have my server listening on ports 80 - 83 then 8081 - 8110 without
> problems. Can you post portions of your /etc/httpd/conf/httpd.conf that
> have the listen statements and your virtual host section. Are your
> virtual hosts defined in DNS? I had problems where my virtual hosts
> were something like www.domainname.com:8081 and www.domaindname.com
> could not be resolved (I hadn't defined it yet) so I'd get an error BUT
> apache would load for the other virtual hosts (if I remember correctly).


A status on my httpd service returns me that syntax is ok. About my
virtualhost part, I have :

Listen 8082

<VirtualHost *:8082>
ServerAdmin xxx@toto.com
DocumentRoot /var/www/myApp/htdocs
</VirtualHost>

I haven't done anything about "DNS" maybe that the problem comes from
here but I've alredy done that on another computer without anything
more.

Tipiac

J.R0wan

2006-07-19, 7:27 pm

tipiac@netcourrier.com wrote:
> J.R0wan a écrit :
>
>
> A status on my httpd service returns me that syntax is ok. About my
> virtualhost part, I have :
>
> Listen 8082
>
> <VirtualHost *:8082>
> ServerAdmin xxx@toto.com
> DocumentRoot /var/www/myApp/htdocs
> </VirtualHost>
>
> I haven't done anything about "DNS" maybe that the problem comes from
> here but I've alredy done that on another computer without anything
> more.
>
> Tipiac
>


Well, I'm at a loss. I have 20 virtual hosts defined. I added your
example above, restarted Apache and it loaded without error. I need
more information. What is in your log file when you try loading Apache?
tipiac@netcourrier.com

2006-07-20, 7:56 am

> > I haven't done anything about "DNS" maybe that the problem comes from
>
> Well, I'm at a loss. I have 20 virtual hosts defined. I added your
> example above, restarted Apache and it loaded without error. I need
> more information. What is in your log file when you try loading Apache?


The damn thing is that there's nothing written in my error_log file of
apache (/etc/httpd/error_log). When I start it only with ports 80 and
8080 apache appends :

[Thu Jul 20 10:37:14 2006] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Thu Jul 20 10:37:15 2006] [notice] Digest: generating secret for
digest authentication ...
[Thu Jul 20 10:37:15 2006] [notice] Digest: done
[Thu Jul 20 10:37:15 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Jul 20 10:37:15 2006] [notice] LDAP: SSL support unavailable
[Thu Jul 20 10:37:15 2006] [notice] mod_python: Creating 4 session
mutexes based on 256 max processes and 0 max threads.
[Thu Jul 20 10:37:15 2006] [notice] Apache/2.0.54 (Fedora) configured
-- resuming normal operations

But when if fails, nothing is added !

I don't own the computer and it's behind a firewall, do you think it
should be the problem ?

Thanks again.

Tipiac

J.R0wan

2006-07-20, 1:28 pm

tipiac@netcourrier.com wrote:
>
> The damn thing is that there's nothing written in my error_log file of
> apache (/etc/httpd/error_log). When I start it only with ports 80 and
> 8080 apache appends :
>
> [Thu Jul 20 10:37:14 2006] [notice] suEXEC mechanism enabled (wrapper:
> /usr/sbin/suexec)
> [Thu Jul 20 10:37:15 2006] [notice] Digest: generating secret for
> digest authentication ...
> [Thu Jul 20 10:37:15 2006] [notice] Digest: done
> [Thu Jul 20 10:37:15 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
> [Thu Jul 20 10:37:15 2006] [notice] LDAP: SSL support unavailable
> [Thu Jul 20 10:37:15 2006] [notice] mod_python: Creating 4 session
> mutexes based on 256 max processes and 0 max threads.
> [Thu Jul 20 10:37:15 2006] [notice] Apache/2.0.54 (Fedora) configured
> -- resuming normal operations
>
> But when if fails, nothing is added !
>
> I don't own the computer and it's behind a firewall, do you think it
> should be the problem ?
>
> Thanks again.
>
> Tipiac
>

What about your /var/log/messages file, anything recorded there?
tipiac@netcourrier.com

2006-07-21, 7:36 am

> What about your /var/log/messages file, anything recorded there?
Nothing there ... Could it be that on my install, apache user is
limited in terms of "bind" ? I don't know where I can check that (if it
is possible). I've spent 2 hours this morning trying to fix that but
still no solutions ... And there's already a used app on ports 80 and
8080 so I've to do it before the users start to work. Seems I'll have
to wake up early another day ;)

Tipiac

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com