Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Apache2: Crash on multiple Listen directives

Apache2: Crash on multiple Listen directives
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2003
Status: Offline
Reply With Quote
Jun 11, 2005, 10:54 AM
 
Alright, firstly if ive managed to post this in the wrong place then forgive me.

Im having some issues with Apache2 and getting it to run with multiple ports. According to the Apache2 docs the new syntax for opening a port is the Listen directive since Port is deprecated, and now not supported.
However, if i have more than one Listen directive (which the Apache2 docs say is ok, and the config test checks out) then the Apache2 process crashes out as so:
Code:
[Fri Jun 10 23:28:50 2005] [alert] Child 29959 returned a Fatal error...\nApache is exiting!
This is the segment of the httpd.conf which it crashes on.
Code:
Listen 80 Listen 1234
If i comment out either of the two Listens, so there is only one Listen directive in the entire file, it is ok.

This happens with both the ServerLogistics binary distribution, and a compile from Apache2 tarball.
Im running Jaguar 10.3.9 as so:
Code:
Darwin Micah.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc
With the version of apache as so:
Server version: Apache/2.0.52
and
Server version: Apache/2.0.54

Has anyone come across this before?
takai
------
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Jun 19, 2005, 05:17 AM
 
I'm using the latest version of apache2 from fink with multiple Listen directives, just as you have it. It works fine for me. I also have a subversion server and a proxy server running correctly on apache2. This was all installed via fink. BTW, I also wrote a launchd.plist file for both of these if you upgrade to 10.4. (I see you are running 10.3.9 now).

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
takai  (op)
Fresh-Faced Recruit
Join Date: Jul 2003
Status: Offline
Reply With Quote
Jun 19, 2005, 06:09 AM
 
Strange. Did you have it working under 10.3.9 as well as 10.4? I just realised that that line should have read Panther 10.3.9 :o. Ill be upgrading to 10.4 during the holidays, possibly that this will fix the problems. Given my penchant for linux i will probably continue to compile from scratch.
Then again im not even sure that i will have the need to run Apache from the miniMac anymore. Especially since i now have another shuttle to use as a Linux server. Ill still set it up though, just to check if it does make a difference.
takai
------
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:44 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2