Apache is the most widely used web server package in the world. When using it in the Unix environment it must be prepared and installed manually.
See Installing Stuff for an explanation of these routines. See the Apache documentation for more detail.
Download the required apache version from www.apache.org/download - in this case the Unix Source version httpd-2.0.52.tar.gz and place in a directory.
Substitute your own filename version for my httpd-2.0.52 filename..
tar -zxvf httpd-2_0_52.tar.gz
- uncompresses and extracts the .gz file to a directory of the same name
CD to the new /httpd-2.0.52/ Apache directory
./configure - Configures the source tree and creates the makefile
make - reads the makefile and invokes c. compiler (a.k.a. the build)
make install - puts files in place, sets permissions (a.k.a. the install)
And that's the installation completed. Some final configuration may be necessary. The location of the Apache tree can vary, so perform a search for httpd.conf and open it in vi. For example..
This will reveal all the standard configuration settings, including the location of the Apache Server Tree ServerRoot and DocumentRoot, the latter being /usr/local/apache2/htdocs. This is where the default index.htm and the rest of the server tree will live, unless otherwise configured.
Some httpd.conf settings which might require alteration include..
DocumentRoot - customisable location of web documents
Listen [::]:80 - number of TCP/IP port to run on
ServerAdmin - email of server administrator
ServerName - the name Apache uses to identify itself, i.e. www.goth.it.net
DirectoryIndex - default filename for each directory, I prefer index.htm
Once the configuration is completed, it's time to start the server. The executable file is apachectl
and can be invoked from its directory thus..
And that's about it. If further modification is required to httpd.conf
, run the above command with stop
and restart it again after reconfiguration.
Establish a method of uploading files to the server, such as FTP or a Mapped Share
Finally make Apache start automatically
with the cunning use of rc.local