With the help of this section, quickly set up and start Apache. You must
be root to install and configure Apache.
is not installed by default. To install it, start YaST and select
. Now choose
and select under . Confirm
the installation of the dependent packages to finish the installation
Apache is installed with a standard, predefined configuration that runs
out of the box. The installation includes the
multiprocessing module apache2-prefork as well
the PHP5 module. Refer to Section 28.4, Installing, Activating, and Configuring Modules for more
information about modules.
To start Apache and make sure that it is automatically started during
boot, start YaST and select apache2 and the service.
The Web server starts immediately. By saving your changes with
, the system is configured to automatically
start Apache in runlevels 3 and 5 during boot. For more information
about the runlevels in
and a description of the YaST runlevel editor, refer to
Section 14.2.3, Configuring System Services (Runlevel) with YaST.
. Search for
To start Apache using the shell, run rcapache2 start.
To make sure that Apache is automatically started during boot in
runlevels 3 and 5, use chkconfig -a apache2.
If you have not received error messages when starting Apache, the Web
server should be running now. Start a browser and open
https://localhost/. You should see an Apache test
It works!. If you do not see this page,
refer to Section 28.8, Troubleshooting.
Now that the Web server is running, you can add your own documents,
adjust the configuration according to your needs, or add functionality
by installing modules.