Installing Apache from Binaries On Linux
Installing Apache from binaries
To install Apache from binaries is similar to installing Apache from source. Use the following steps to install Apache from binaries:
- Point your web browser to http.apache.org/dist/httpd/binaries/linux.
- Check the latest version to download it. The most recent binary is currently httpd-2.0.45-x86_64-unknown-linux-gnu.tar.gz. The binary version is usually slightly older than the source version.
- Select the option to save the file.A specific mirror is selected for you. If you do not want to use this mirror, select another. Or if you have problems downloading from this mirror, return to this page and select another. Navigate to where you want to save the source code (for example, /usr/local/bindir). Then click Save.
- After download is complete, change to the download directory (for example, cd-/usr/local/bindir). You see a file named httpd-, followed by the version name and tar.gz. This file is called a tarball. Be sure you’re using an account that has permission to write into /usr/src, such as root.
- Verify the downloaded file to be sure it hasn’t been tampered with. To verify the file, follow these steps.i. Download two files from www.apache.org/dist/httpd/: KEYS and a file with the same version number as the source with a filename that ends in .asc.ii. Type one of the following lines, depending on which version of PGP is installed on your computer:
pgp <KEYS
gpg — import KEYSSeveral lines of output are displayed.iii. Type one of the following lines, with the correct version number.pgp httpd-2.0.47.tar.gz.asc
gpg — verify httpd-2.0.47.tar.gz.ascYou should see something
similar to the following.Good signature from user “KS”
This is what you’re looking for. Several may be displayed, but the preceding message is the important one. Your may also see a message stating that the relationship between the key and the signer of the key cannot be verified. This is okay.
If you don’t get a message that the signature is good, the file may have been tampered with and may be dangerous. In this case, repeat the process starting with Step 1 and select a different mirror to download from.
- Unpack thetarball.The command to unpack the tarball for version 2.0.47 is the following: gunzip -c httpd-2.0.47.tar.gz | tar -xf - A new directory called httpd-2.0.47 is created with several subdirectories containing all the files that you just unpacked from the tarball.
- Change to the new directory that was created when you unpacked the tarball.For example, you can user a command like the following: cd httpd-2.0.47
- Type the following command:./install-bindist.shIf you want to install Apache in a location other than the default, which is
/user/local/apache2, you can specify a different installation location as follows :./install-bindist.sh /usr/mine/apache2
- Start the Apache Web Server.See the section “starting Apache” later in next lesson for details.
- Type the URL for your web site (for example, www.mysite.com or localhost) into a browser to test Apache.If all goes well, you can see the Apache message telling you that Apache is working. If don’t see this message, something is amiss, and you should read the section “Troubleshooting Apache” later in next lesson for detail.
- 231 reads
Recent popular content



















