Transcript Apache

Apache Installation
2
Apache Download
3
Apache Installation
4
Apache Installation (cont.)
5
Apache Installation (cont.)
6
Apache
1. Install Apache
2. Edit httpd.conf file
– change ServerRoot entry
– change corresponding Directory entry
– make alias(es) for directory/ies with files
• pointer(s) with virtual names to an existing local directory
– abundant comments explain the settings
3. Test the server
– put index.html file into the ServerRoot directory
– in a web browser, open http://localhost
• Apache Monitor
– allows to start and stop the server or services
7
Editing httpd.conf
8
Editing httpd.conf (cont.)
9
Windows Installation Gotchas
•
On Vista
– you will not be able to save changes to
httpd.conf file even if you are an
"Administrator" (?!)
1. save httpd.conf someplace else
2.
make "Administrators" the "owner" of
Apache Software Foundation/
directory
•
3.
•
use Properties->Security>Advanced->Owner->Edit>Administrators->OK
copy httpd.conf into directory Apache
Software Foundation/Apache 2.2/
Restarting Windows may help if
Apache installation reports errors
10
Apache Monitor