Book Image

Mastering Linux Network Administration

By : Jay LaCroix
Book Image

Mastering Linux Network Administration

By: Jay LaCroix

Overview of this book

Linux is everywhere. Whether you run a home office, a small business, or manage enterprise systems, Linux can empower your network to perform at its very best. Armed with the advanced tools and best practice guidance of this practical guide, you'll be able to mold Linux networks to your will, empowering your systems and their users to take advantage of all that Linux-based networks have to offer. Understand how Linux networks function and get to grips with essential tips and tricks to manage them - whether you're already managing a networks, or even just starting out. With Debian and CentOS as its source, this book will divulge all the details you need to manage a real Linux-based network. With detailed activities and instructions based on real-world scenarios, this book will be your guide to the exciting world of Linux networking.
Table of Contents (17 chapters)
Mastering Linux Network Administration
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing Apache


As usual, installing Apache on your system is just a matter of installing the proper package from your package manager. On a CentOS system, you can obtain Apache by installing the httpd package, and on Debian systems with the apache2 package (yum install httpd or apt-get install apache2 respectively, as root). Once you install the package, Apache's daemon is now present with a default set of configuration files. You will be able to confirm the existence of the daemon on your system with systemctl, though the name of the daemon is different depending on your distribution.

Use the following command on Debian:

# systemctl status apache2

Use the following command on CentOS:

# systemctl status httpd

By default, Debian starts and enables the daemon for you. As is typical, CentOS makes no assumptions and does neither. You can start and enable the daemon easily with the systemctl command:

# systemctl enable httpd
# systemctl start httpd

Once you install and enable Apache, you technically...