tagline: From openSUSE
|Tested on openSUSE||Recommended articles||Related articles|
This document provides a quick step by step guide to get Apache running on your openSUSE box.
General Machine Setup
The first thing which must be taken care of is the network. The network must be properly configured before proceeding further.
The second thing is to ensure that the system is uptodate. This can be done by opening the YaST Control Center. In the Software section click the Online update icon to check for software update and install them.
Installation of Apache Packages
The Apache web server can be installed by using zypper. Open a terminal and become root. Type the below command:
By default the firewall configuration blocks all traffic coming on port 80 to your machine. So if you need to allow access so that the web server can be accessed from within a LAN we need to fine tune the firewall configuration. The below step needs to be performed as root user. The supplied configurations are called apache2 and apache2-ssl. They can be enabled via YaST, by adding them to FW_CONFIGURATIONS_EXT in /etc/sysconfig/SuSEfirewall2
Start the server and configure it to automatically start at boot time.
To enable required Apache Modules we can edit APACHE_MODULES in /etc/sysconfig/apache2. Modules can also be enabled/disabled/listed with the commands below. Any such operation requires a restart of the service and of course needs root privileges.