Open Terminal and type:
At the end of installation you will see a message saying:
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
It’s nothing to worry about because most personal computers don’t have one.
Open a web browser and point it to URL:
You should see a message saying:
Open up Terminal again and type in the following command:
In the terminal, type this command:
This will create a new php file in Pluma text editor. Copy/Paste this line into the .php file.
Save and close the file.
From a web browser, try to load the file:
It should render a page with all information on the PHP installation.
Still in the Terminal, type this command:
You will be prompted with Configuring mysql-server dialog to setup a root password. It’s recommended that you set a password.
In Configuring phpmyadmin window, press spacebar to check apache2 and press TAB key to move to and press Enter.
Choose when asked to configure database for phpmyadmin with dbconfig-common.
From the browser, open this address:
You should see phpMyAdmin’s login page and be able to login using ‘root’ as Username and the password you setup earlier when you installed MySQL.