From the course: Linux for PHP Developers

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Configuring Apache HTTP Server

Configuring Apache HTTP Server

From the course: Linux for PHP Developers

Configuring Apache HTTP Server

- [Instructor] The next few videos are about configuring Linux services, and the first service will be Apache HTTP Server. In Linux, configuration files are stored in the etc directory. Let's see what that looks like. From the terminal, change directory to /etc. A quick directory listing, this time with -1 to just list the files in directories. Well, that's a lot. Let's filter that down, ls -1 | grip apache. That's more like it. The Apache configuration is in the Apache2 directory. Change directory to Apache2, then list the contents, ls -la. Apache's main configuration is stored in apache2.conf however it's best practice to keep custom site configurations in their own separate files. At the bottom of the list, there are two directories, sites-available and sites-enabled. That seems slightly redundant, or is it? Let's see the contents of sites-available. ls -la sites-available. There are two files, a default configuration and a default secure configuration. In comparison, what's in…

Contents