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 > macOS > Apache 2 doesn't web serve but built-in Apache does!

Apache 2 doesn't web serve but built-in Apache does!
Thread Tools
scip
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status: Offline
Reply With Quote
Nov 10, 2003, 03:57 PM
 
I'm trying to get Apache 2 working on a Mac on my network. I installed it, and it'll load files locally just fine, but when I attempt to access the server on a machine on the same network by IP or domain name, it doesn't work.

If I shut off Apache 2 and start the built-in Apache web server (aka. Personal Web Sharing under the Services tab of the Sharing Preference Pane) I can get the Welcome screen just fine.

So, it must be something in the Apache 2 config file no?

Steve
     
DVD Plaza
Senior User
Join Date: Oct 2002
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Nov 10, 2003, 07:06 PM
 
Or the options you used to compile it?

I haven't had any problems with Apache2 under both Jaguar and Panther.
     
scip  (op)
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status: Offline
Reply With Quote
Nov 10, 2003, 08:15 PM
 
Originally posted by DVD Plaza:
Or the options you used to compile it?

I haven't had any problems with Apache2 under both Jaguar and Panther.
Didn't have to. I used the precompiled binary package available for OS X from www.serverlogistics.com.
     
timmerk
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Nov 10, 2003, 08:40 PM
 
Use
http://serverlogistics.com/apache2.php

Works very nice and has nice prefs panel!
     
scip  (op)
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status: Offline
Reply With Quote
Nov 10, 2003, 09:00 PM
 
Originally posted by timmerk:
Use
http://serverlogistics.com/apache2.php

Works very nice and has nice prefs panel!
That's what I have and I'm having problems getting it to work.
     
timmerk
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Nov 10, 2003, 09:02 PM
 
opps, didnt see that last post, sorry.

Hmm, well I had some problems at one time, I uninstalled it. And a few months reinstalled and it worked, so I'm not sure.

Sorry
     
crayz
Dedicated MacNNer
Join Date: Jan 2001
Status: Offline
Reply With Quote
Nov 10, 2003, 09:02 PM
 
Make sure you've killed off all the old apache processes before you start Apache2. Something like:

ps -ax | grep httpd

And if it still isn't working, try starting it at the command line(go to the /Library/Apache2/bin/ folder and do a ./apachectl start). If there is some error and Apache can't start, you'll see what the error is at the command line, whereas you won't from the System Preference thing
"You have violated the spelling of the DMCA and will be jailed with the Village People."
     
scip  (op)
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status: Offline
Reply With Quote
Nov 11, 2003, 09:56 AM
 
Originally posted by crayz:
Make sure you've killed off all the old apache processes before you start Apache2. Something like:

ps -ax | grep httpd
Nahh, this isn't the issue. I can get it to install and work locally just fine. It's when I attempt to access the box via http from any other machine on my network that it doesn't work. If I turn Apache2 off and turn on the built-in web server, I can access it...hence my hunch that something is wrong with the Apache2 config file...but I don't know what.

Steve
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Nov 11, 2003, 11:49 AM
 
Originally posted by scip:
Nahh, this isn't the issue. I can get it to install and work locally just fine. It's when I attempt to access the box via http from any other machine on my network that it doesn't work. If I turn Apache2 off and turn on the built-in web server, I can access it...hence my hunch that something is wrong with the Apache2 config file...but I don't know what.

Steve
Sounds like maybe you're listening on the loopback (lo0) but not on the ethernet port (en0). I'm not sure how you configure that in apache, but if there is a place to choose what IP you listen on, put in your real IP, not localhost or 127.0.0.1.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
larkost
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Nov 11, 2003, 12:05 PM
 
Are you getting anything at all when you hit it from other computers? Are you using IP address or named? I am thinking that this might be a virtual host issue...
     
scip  (op)
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status: Offline
Reply With Quote
Nov 11, 2003, 02:39 PM
 
Originally posted by larkost:
Are you getting anything at all when you hit it from other computers? Are you using IP address or named? I am thinking that this might be a virtual host issue...
Nothing whether I use the IP or name of the machine. I haven't configured any virtual hosts. Built-in Apache works fine.

My understanding is that a default install *should* load over the network (by IP at least) if it loads on the localhost, which verifies the Apache service is running...no?
     
larkost
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Nov 11, 2003, 04:28 PM
 
When you say "nothing"... do you mean that the other clients get a time-out? And just to be pendantic, for testing locally, you are typing "http://localhost" into a browser and getting pages, yes?
     
scip  (op)
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status: Offline
Reply With Quote
Nov 11, 2003, 04:35 PM
 
Originally posted by larkost:
When you say "nothing"... do you mean that the other clients get a time-out? And just to be pendantic, for testing locally, you are typing "http://localhost" into a browser and getting pages, yes?
Yes, other clients get a timeout.

Yes, while testing locally, if I type localhost into the web browser address field, it loads as it should.

Further, if I turn on the built-in web server in OS X, I can access it just fine by typing either the IP or domain name I've given the server. I'm beginning to wonder why I should be running Apache2 afterall...since the built-in one seems to work just fine.
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 06:48 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,