twitter
    !! Tell us what you want to Learn / Know !!

Configuring Apache


    httpd.conf file is the configuration file for apache server, which is present in the conf directory.
Open the httpd.conf file in any text editor and edit it as shown below

Original lines
Modified Lines
ServerRoot "c:/Apache2"
ServerRoot "D:/surendra/Apache2"
DocumentRoot "c:/Apache2/htdocs"
DocumentRoot " D:/surendra/Apache2/htdocs"
<Directory "c:/Apache2/htdocs">
<Directory " D:/surendra/Apache2/htdocs">
ScriptAlias /cgi-bin/ "c:/Apache2/cgi-bin/"
ScriptAlias /cgi-bin/ " D:/surendra/Apache2/cgi-bin/"
<Directory "c:/Apache2/cgi-bin">
<Directory " D:/surendra/Apache2/cgi-bin">


* D:/surendra is my apache installation location.

Now let us check whether you have edited correctly or not.

Open the command prompt and navigate to the bin directory.

Enter the following command

httpd  -t


You should see the message Syntax OK


0 comments:

Post a Comment