12.2.1 Installing the Apache Web Server and PHP Components

The following instructions are for SLES 11 SP1 and SP2.

  1. Download and install the Apache 2 and PHP 5 modules:

    1. On your SLES 11 SP1 and SP2 server, click the YaST icon, provide your root password if requested, then click OK.

      NOTE:For SLES12 Service Pack it is required that you connect to SuseConnect with a registration code. Later you must enable the SUSEConnect -p sle-module-web-scripting/12/x86_64 repository to install the PHP.

    2. In the YaST left navigation window, click the Software icon, then click Software Management.

      The YaST software Search screen must open.

    3. In the Search field, type Apache2, then click Search.

      All available Apache 2 software packages are listed.

    4. If they are not already selected, select the following Apache 2 check boxes:

      apache2: Specifies the Apache 2.0 web server.

      apache2-mod_php5: Specifies the PHP5 module for Apache 2.0.

      apache2-prefork: Specifies the Apache 2 prefork multiprocessing module.

      apache2-worker: Specifies the Apache 2 worker multiprocessing module.

    5. Click Accept.

    6. Verify that the php5 package is also selected for install, then click Continue to install that package as well as the other dependent packages.

  2. Configure SUSE to start the Apache server during boot up:

    1. In the YaST left navigation window, click Network Services > HTTP Server.

    2. In the HTTP Server Wizard, enable the Start Apache2 Server When Booting option, then click Finish.

    3. Reboot the server or manually start the Apache server.