The following instructions are for SLES 11 SP1 and SP2.
Download and install the Apache 2 and PHP 5 modules:
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.
In the YaST left navigation window, click the Software icon, then click Software Management.
The YaST software Search screen must open.
In the Search field, type Apache2, then click Search.
All available Apache 2 software packages are listed.
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.
Click Accept.
Verify that the php5 package is also selected for install, then click Continue to install that package as well as the other dependent packages.
Configure SUSE to start the Apache server during boot up:
In the YaST left navigation window, click Network Services > HTTP Server.
In the HTTP Server Wizard, enable the Start Apache2 Server When Booting option, then click Finish.
Reboot the server or manually start the Apache server.