Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Error when trying to start Apache in DOS window
(1 viewing) (1) Guest
All your queries regarding
Apache Installation,
Creating Virtual Domains Under Apache
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

Error when trying to start Apache in DOS window

Error when trying to start Apache in DOS window 1 year, 10 months ago #37

  • patrica
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Karma: 0
When I try to start Apache from a DOS window, I get a message like "Cannot determine host name. Use ServerName directive to set it manually." What does this mean?

Re: Error when trying to start Apache in DOS window 1 year, 10 months ago #43

  • dhuruv
  • OFFLINE
  • Senior Boarder
  • Posts: 60
  • Karma: 0
It means what it says; the Apache software can't determine the hostname of your system. Edit your conf\httpd.conf file, look for the string "ServerName", and make sure there's an uncommented directive such as

ServerName localhost

or

ServerName www.foo.com

in the file. Correct it if there one there with wrong information, or add one if you don't already have one.

Also, make sure that your Windows system has DNS enabled. See the TCP/IP setup component of the Networking or Internet Options control panel.

After verifying that DNS is enabled and that you have a valid hostname in your ServerName directive, try to start the server again.
  • Page:
  • 1
Time to create page: 1.47 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download