Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Apple MacOS
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista 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

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

 
Thread Tools
andynic's Avatar
Computer Specs
Member with 51 posts.
 
Join Date: May 2007
Location: Amsterdam
Experience: Beginner
26-Oct-2009, 04: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 51 posts.
 
Join Date: May 2007
Location: Amsterdam
Experience: Beginner
26-Oct-2009, 09: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 Bookmark and Share

Tags
apache2, mac os x 10.6, snow leopard

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 03:38 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.