In this video we look to install the Apache web server onto SUSE Linux. The default web directory for Apache on SUSE is /srv/www/htdocs/; in order to maintain all web pages in their own separate volume we will first create the directory /srv/www and mount it to to logical volumes that we created in lesson 20. With that in place we can then use zypper to install the programs.
zypper in apache2 apache2-docs apache2-example-pages
On SUSE we can use the symlink rcapache2 to start and stop the service. With apache started we can sample the web page on the server, yeah “It Works!”. To see more on the configuration we can see in the /etc/apache2 directory that SUSE chooses to use the httpd.conf file to pretty much just include other files and directory, all of the configuration could be in the one file as it is in other distros but SUSE chooses to make the system a little more modular.
Finally we look at the /etc/init.d directory to see how we can control the auto-starting of Apache with chkconfig