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

Published: Jul 20, 2010
Updated: Nov 10, 2020
1 minute read
ServerWatch Le contenu et les recommandations de produits sont indépendants de la rédaction. Nous pouvons gagner de l'argent lorsque vous cliquez sur des liens vers nos partenaires. En savoir plus



“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.

ServerWatch Logo

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

Propriété de TechnologyAdvice. © 2026 TechnologyAdvice. Tous droits réservés

Divulgation publicitaire : Certains des produits qui apparaissent sur ce site proviennent d'entreprises dont TechnologyAdvice reçoit une compensation. Cette compensation peut influencer la façon dont les produits apparaissent sur ce site, notamment l'ordre dans lequel ils apparaissent. TechnologyAdvice n'inclut pas toutes les entreprises ou tous les types de produits disponibles sur le marché.