www.wowwebdesigns.com/power_guides/killer_trio_part_1.php
| |||||||
| |||||||
|
|
1.1 What is Apache anyway?
| ||||||
|
If you are using Windows 9x or ME, you may need to download the new Windows installer first to install Apache.
I'd like to thank Horacio Bermudez for bringing this matter to my attention. |
Double click on the apache_1.13.xx-win32-src.msi file. When your server information is asked type localhost in the first two fields and admin@localhost in the last field. Next, you can choose a complete install or a custom install. If you choose custom install you will have the option of not installing the source code. You will not need it unless you are a C programmer and want to examine the source code, so you can safely choose not to install it. That will save you about 12 MB of disk space.
For Unix (including Linux) Download Apache in a directory of your choice, if you already didn't. The command bellow will download it for you where xx is the version number. You can of course download it with your web browser too:
Assuming that the Apache archive is in the current directory decompress it with
This will create a directory called apache_1.3.xx in the current directory. Change to it by typing
| ||||||
|
If you want to install Apache to another location add the --prefix option (e.g. --prefix= /var/lib/apache) to the command line. |
Compile Apache by running the make utility
After compiling ends, copy Apache to its location by typing
Congratulations! The installation is complete.
Apache normally runs automatically at startup. So there is no need to run it manually.
For Unix (including Linux)
Once Apache started, you can launch your browser and type localhost in the address line. If you see the (in)famous "Seeing this instead of the website you expected" page, it means Apache is running. But if you get an error try typing 127.0.0.1 in the address line. If this too doesn't help then something went wrong.
The configuration file is called httpd.conf, and it is found in the conf directory of Apache. The path is normally C:\Program Files\Apache Group\Apache\conf under Windows, and /usr/local/apache/conf under Unix. Open httpd.conf with your favorite text editor (if you open it with a word processor such as MS Word make sure that when you save the file it will be stored as a text file). You have to change only two lines. You can leave all others untouched; default values would be ok for most purposes. | ||||||
|
If you want Apache to store agent (browser information) and referer (sites that send your site visitors) information in the server log file uncomment (remove #) the following line
CustomLog logs/access.log combined and comment (add a # to the beginning) this line, which is just a few lines above: CustomLog logs/access.log common A log file is a detailed record of all requests made to your server and your server's responses. You can find various log analyzers on the Internet. A popular free log analyzer for Unix based systems is Webalizer. |
Now restart the server, and the changes you have made will immediately take effect. You can restart Apache by typing ./bin/apachectl restart (assuming that you are in the Apache root directory) under Unix. If you are using Windows, you can either restart Windows, or enter C:\Program Files\Apache Group\Apache\apache -k restart from Start Menu > Run. If you prefer the latter, it might be easier to create a shortcut since you may need restarting the server more than once.
| ||||||
|
Rating: 9.5 (5 votes)
| |||||||
Reader Feedback:
|