4) PHP installation
Use the below command to install PHP. PHP initially called Personal Home Page, now it is called asHypertext 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 old systems] $ sudo apt-get install php5 php5-mysql libapache2-mod-php5 php5-mbstring php5-common php5-gd php5-mcrypt php-gettext php5-curl php5-cli [Install php7 for Mint 18] $ sudo apt-get install php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-mbstring php7.0-common php7.0-gd php7.0-mcrypt php-gettext php7.0-curl php7.0-cli
Create test php file to check whether php is working with apache or not.
[Creating php info file] $ sudo nano /var/www/html/phpinfo.php <?php phpinfo(); ?> [Restart apache service] $ sudo systemctl restart httpd.service