Install LAMP On Ubuntu 15.04

Like in older version of Installing LAMP on Ubuntu 13.xx 14.xx there aren’t any major changes (except if you are using MySQL instead of MariaDB, in that case you change one keyword 🙂 and ofcourse our lovely systemd) anyway, I will demonstrate the commands and procedures you need to Install LAMP Stack On Ubuntu 15.04 .

As stated before, LAMP is acronym for Linux Apache MySQL and PHP. Now in our days it’s also MariaDB instead of MySQL or LAMPP, meaning Linux Apache MariaDB(MySQL) Php and PhpMyAdmin. Let’s begin.

Install LAMP On Ubuntu 15.04

1. Install Apache

Apache httpd is our web server. It provides a full range of web server capabilities including CGI, SSL and virtual domains.

To install Apache, type:

sudo apt-get install apache2

or exclude sudo if your are already root, but really it doesn’t matter a lot.

Testing Apache:

Open your web browser and navigate to http://localhost/ or http://server-ip-address/. You don’t know your local IP address because of dhcp ?

Try ifconfig or ip addr

2. Install MySQL

MySQL is our relational database management system (RDBMS). There are also other choices like PostgeSQL, Firebird, Percona, but here we deal with the ..famous one, Mysql (and MariaDB eventually)

sudo apt-get install mysql-server mysql-client

During installation, you’ll be asked to setup the MySQL “root” user password. Enter two times a root password and it will be OK. Care, it’s not your system’s root password, it’s MySQL’s admin password. No need for the same password.

Alternatively, you can install it using MariaDB repository if you want to try most recent version of MariaDB. Run the following commands to add PPA. As of writing this, MariaDB PPA is not yet updated to Ubuntu 15.04. However, we can use the repository of Ubuntu 14.10 instead.