Here are the steps to install Java on Ubuntu.
- Remove OpenJDK, if you have it installed:
$ sudo apt-get purge openjdk*
2. install the software-properties-common package:
$ sudo apt-get install software-properties-common
3. Add the PPA:
$ sudo add-apt-repository ppa:webupd8team/java
4. Update the repo index:
$ sudo apt-get update
5. Install Java
5.1 Install Java 8:
$ sudo apt-get install oracle-java8-installer
5.2 install Java 7:
$ sudo apt-get install oracle-java7-installer
5.3 install Java 6:
$ sudo apt-get install oracle-java6-installer
phpMyAdmin is an free web software to work with MySQL on the web—it provides a convenient visual front end to the MySQL capabilities. Many website administrator have set up phpmyadmin to manage the mysql database.
However, by default, anyone can get access to your phpmyadmin through the url <your_hostname>/phpmyadmin. It is necessary to restrict the access to phpmyadmin to protect your website.
This post describes three ways to protect your phpmyadmin.
change the url of your phpmyadmin into a private name using the alias method.
Protect your phpmyadmin by allowing visit from known IP address
Protect your phpmyadmin by using ssh tunnel ( this is much safer)