4) Install PHP
Use the below command to install PHP. PHP initially called
Personal Home Page, now it is called as
Hypertext Preprocessor. PHP is a open-source software which is designed for web development purpose. It is used for server-side scripting language as well as general-purpose programming language.
[Install php5] $ sudo zypper in php5 php5-mysql apache2-mod_php5 [Enable mod-php] $ sudo a2enmod php5
Create a test php file, to check whether PHP is working with Apache or not.
[Creating PHP info file] $ nano /srv/www/htdocs/phpinfo.php <?php phpinfo(); ?>
Restart Apache service
$ sudo systemctl restart apache2.service