There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Tag Cloud
acer audio backup bios boot bsod computer connection crash dell driver drivers error excel firefox freeze hard disk hard drive hardware hijackthis internet laptop linksys macro malware network outlook outlook 2003 outlook 2007 password problem recovery redirect router server slow sound toshiba trojan usb video virus vista vpn windows windows 7 windows vista windows xp wireless youtube
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

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
andynic's Avatar
Computer Specs
Member with 71 posts.
 
Join Date: May 2007
Location: Amsterdam
Experience: Beginner
26-Oct-2009, 03: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 71 posts.
 
Join Date: May 2007
Location: Amsterdam
Experience: Beginner
26-Oct-2009, 08: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
Closed Thread Bookmark and Share   techguy.org/871751

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.

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 09:40 PM.
Copyright © 1996 - 2010 TechGuy, Inc. All rights reserved.
Powered by Cermak Technologies, Inc.