Download and Install Apache 2.2
Download apache from the Apache 2.2 download page.
Look for the section with the phrase "best available version" like "Apache HTTP Server (httpd) 2.2.x is the best available version". At the time of writing this tutorial Apache 2.2.16 is the official best available version.
Click on the link for "httpd-2.2.16.tar.gz" and download the installer. Once the file is copied to the folder. You need to remote copy the file to the Linux server. There are many tools available to ftp the file.
Once the file is copied on the Linux server (example: /usr/local/install).
1. Use the following command to extract the tar file.
cd /usr/local/installA directory will be created "httpd-2.2.16"
tar -xzf httpd-2.2.16.tar.gz
2. Now, Let`s execute the configuration script:
cd /usr/local/install/httpd-2.2.163. The following steps will compile Apache based upon the configuration defined:
./configure --prefix=/usr/local/install/apache --enable-mods-shared=all --enable-proxy --enable-expires --enable-vhost-alias
make4. The following step will install the Apache build:
make install5. Use the following commands to control the Apache Web Server.
/usr/local/install/apache/bin/apachectl -k stop6. Go to the internet browser and try the url http://host:80/.
/usr/local/install/apache/bin/apachectl -k start
You should see, It Works!
This means, the Apache webserver installation went successful.
0 Comment:
Post a Comment