Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Configuration

 
Tanveer Mehmood
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi buddies,
I installed apache, edited httpd.conf with servername "localhost" but when i run this "apache.exe" it gives me error.
COMMAND:
c:\proram files\apache group\apache\apache
ERROR:
httpd: cannot determine to server local host name
Use sername to set it explicitly
An earliest reply required please.
Tanveer
 
Ganesh Anekar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
As u r using windows 98 check that u have installed network card in u r system...if not then install it and set the system name i.e. set name to u r system...
set all paths...APACHE_HOME,ANT_HOME,JAVA_HOME,ORACLE_HOME,TOMCAT_HOME
THEN ..run the server
Its very easy...check it...
Ganesh
 
Sandeep Jain
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
goto conf directory inside the apache directory
Open the file httpd.conf
Look for some statement give either ur host name or ip address there and revove the
# ServerName somstatement
serverName hostname
restart the apache it will work fine
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic