SHARE
Facebook X Pinterest WhatsApp

Linux for Newbies, pt. 22: Installing Packages from Source

Jul 20, 2010
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



Let’s visit Apache first. Before we get started we should give some thought to where we want Apache binaries and files
to live. If your Linux server is an active webserver, you may prefer a directory such as /var/www or even /www for your
Apache site. I personally like /usr/local, the traditional Unix place to put things that are “localized”–software that is not
part of the base operating system. Hence I am going to use /usr/local/apache as my destination.

“… This was a very simple Apache and PHP installation, but once you’ve nailed down the basics, adding more
modules or adjusting the options is just more of the same. On this system, Apache and PHP can now be easily updated
whenever you want, and the files are located in your directory of choice. Moreover, you have the satisfaction of a job
well done.”

Let’s visit Apache first. Before we get started we should give some thought to where we want Apache binaries and files
to live. If your Linux server is an active webserver, you may prefer a directory such as /var/www or even /www for your
Apache site. I personally like /usr/local, the traditional Unix place to put things that are localized–software that is not
part of the base operating system. Hence I am going to use /usr/local/apache as my destination.

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
What Is a Network Policy Server (NPS)? | Essential Guide
Virtual Servers vs. Physical Servers: Comparison and Use Cases
Ray Fernandez
Nov 14, 2023
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.