Pada Kali ini saya akan menjelaskan cara instalasi di linux mint 18 :
1. Open up the Terminal (Applications > Accessories > Terminal).
2. Copy/Paste or type the following line of code into Terminal and then press enter:
3. The Terminal will then ask you for you’re password, type it and then press enter.
In this part we will install PHP 7.
Step 1. Again open up the Terminal (Applications > Accessories > Terminal).
Step 2. Copy/Paste or type the following line into Terminal and press enter:
Step 3. In order for PHP to work and be compatible with Apache we must restart Apache. Type the following code in Terminal to do this:
To finish this guide up we will install MySQL.
Step 1. Once again open up the amazing Terminal and then copy/paste or type this line:
Step 2 Copy/paste or type the following line into Terminal:
After that is installed our next task is to get PHP to work with MySQL
Now just restart Apache and you are all set!
If you get a 404 error upon visiting http://localhost/phpmyadmin: You will need to configure apache2.conf to work with Phpmyadmin.
Include the following line at the bottom of the file, save and quit.
Then just restart Apache
To ensure there are no issues with PHP let’s give it a quick test run.
Step 1. In the terminal copy/paste or type the following line:
This will open up a file called testphp.php.
Step 2. Copy/Paste this line into the phptest file:
Step 3. Save and close the file.
Step 4. Now open you’re web browser and type the following into the web address:
(It will show you the page that has all information about your php. If you have prior experience of installing php in some other OS, you must have seen this page.)
Congrats you have now installed both Apache and PHP!
Referensi : https://community.linuxmint.com/tutorial/view/486