Configuring
Apache
Ok, now remember when apache install was on 'Server
Information'? We specified localhost
as 'Server Name' or your local ip addy/dns.
Apache was configured just to run on default.
So lets try it out.
For Win9x
Click on "Start->Programs->Apache HTTP Server
2.0.47->Control Apache Server-> Start Apache
in Console"
Apache launches a DOS window then the
window is immediately renamed to 'APACHE'.
Give it some time to load[patience]. In win98, the
windows stays there... so just minimize it.
WinXP
after install apache should have automatically opened.
Now in any event during install you
get an error mentioning apache was unable to bind to
0.0.0.0:80, you will need to set apache to
port 8080 since 80 is being used, all explained
in the next block below.
-Open C:\Program Files\Apache Group\Apache2\conf
-Edit the file named httpd.conf
-Search for Listen 80 and change it to Listen 8080
-Save and Exit
-Click Start->Run, type cmd or command
Install apache service - retry
-In command prompt, browse to C:\Program Files\Apache Group\Apache2\bin
-Type apache -k install -n "apacheretry"
To start an installed Apache service
-Type apache -k start -n "apacheretry"
Now, we configured apache. Let's take it for
a test. Open you're browser and type http://localhost or http://localhost:8080
You should see this after you have typed the address:
'If you can see this, it means that the installation of the
Apache web server software on this system was successful.'
We will make a little index file for apache to use everytime you are in http://localhost
Remember, we will not use the index file until apache is configured for the folder web.
-Stop Apache. net stop apache in command or stop apache using the start menu.
-First, open the configuration file(httpd) - located in the 'conf' folder of Apache
-Search for DirectoryIndex then we will add little extra characters to that line.
-Unlike the image below, add index.php and index.htm after index.html.var
-Save and Close the file.
-Make a folder named 'web' under your main[c] drive.