|
|
 |
|
 |
|
|
Quick Setup: Apache HTTP Server 1.3.3x
1. Download this file to a temp directory:
http://www.apache.org/dist/httpd/apache_1.3.33.tar.gz
Please use the mirrors
http://www.apache.org/dist/httpd/
2. From the directory you saved apache_1.3.33.tar.gz
tar xvfz apache_1.3.33.tar.gz
3. The tar command will create a directory named: apache_1.3.33 in the current directory.
cd apache_1.3.33
4. Next, configure Apache install.
./configure --prefix=/usr/local/apache --enable-module=all --enable-shared=max
"--prefix" tells Apache the path to install to.
This will install Apache to /usr/local/apache and enable most/all mods.
How To Control Apache Install Path
Type "./configure --help" for syntax.
After Apache is installed, edit httpd.conf and comment
out the LoadModule/Addmodule
lines for the modules that you do not wish to use at this time. They
will not be loaded by Apache plus, the modules will be installed and easily
enabled at a later date without having to re-compile.
NOTE: Apache 1.3.3x Performance Notes
NOTE: Apache 2.0.5x Performance Notes
5. Install Apache with these commands.
make
make install
Apache is now installed.
Next, configure Apache.
httpd.conf is the Apache configuration file.
"/usr/local/apache/conf/httpd.conf"
Apache only reads this file during startup, therefore
Apache must be restarted when changes are made to httpd.conf
1. Edit httpd.conf (/usr/local/apache/conf/httpd.conf)
2. Search for ServerName directive.
Add your IP (123.123.123.123) to ServerName (The IP of the Apache box)
ServerName 140.183.234.10:80
or
ServerName valid-domain.com
To use a Domain Name such as, www.domain.com you must have DNS correctly setup.
Save and exit.
Next, place HTML documents to be viewed from browsers.
HTML documents will go here:
/usr/local/apache/htdocs/
NOTE: This is a good time to look into virtual hosts.
Next, start apache.
cd /usr/local/apache/bin
./apachectl start
./apachectl stop (Stops The Server)
Apache should now be running.
Read error_log if Apache fails to start.
"/usr/local/apache/logs/error_log"
You should be able to load your browser and view your site.
Below is a working httpd.conf example.
httpd.conf
|
|