There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus batch bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard mouse network printer problem ram registry router slow software sound svchost.exe trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Apple MacOS >
Solved: Apache2 on Mac OS X 10.6 does not seem to be working

Reply  
Thread Tools
andynic's Avatar
Computer Specs
Member with 122 posts.
 
Join Date: May 2007
Location: Amsterdam
Experience: Beginner
26-Oct-2009, 05:34 AM #1
Solved: Apache2 on Mac OS X 10.6 does not seem to be working
When I put the following URL into Safari
http://localhost/dev/gfrm.cgi?init
or
http://10.0.0.150/dev/gfrm.cgi?init

Safari returns the message:
Safari can’t open the page “http://localhost/dev/gfrm.cgi?init” because Safari can’t connect to the server “localhost”. (or 10.0.0.150)

(10.0.0.150 is the address showing in system preferences --> Sharing when "Web sharing" is checked
gfrm.cgi is a perl cgi script that ran perfectly in an apache2 installation on Windows XP).

Any ideas of what I need to do to get apache running on Mac OS X 10.6 (Snow Leopard)?

Thanks for your help
Andnic
andynic's Avatar
Computer Specs
Member with 122 posts.
 
Join Date: May 2007
Location: Amsterdam
Experience: Beginner
26-Oct-2009, 10:54 AM #2
Problem solved:
I stopped the service via system preferences --> sharing; and unchecked "web sharing".

Then via a terminal window used:
sudo apachectl -k start

The above command said there was an error at a sepcific line number in httpd.conf which is located in /private/etc/apache2

I commented out the offending line and the server started using
sudo apachectl -k start.
Andynic
Reply

Tags
apache2, mac os x 10.6, snow leopard

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:10 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.