Leave a comment

Steps to Install Linux, Apache, MySQL, PHP (LAMP) on Ubuntu

This guide provide detailed information about LAMP  known as opensource software’s (Linux Apache MySQL and PHP.

1. Check Host name by executing:   # to check host name of your system and fqdn:
$ hostname
$ hostname -f
2. first update ubuntu by executing below commands for latest releases and updates:
$ sudo apt-get update
$ sudo apt-get upgrade

3. Install MySQL:

$ sudo apt-get install mysql-server
During the installation it will promt for a password for the MySQL root user please type your password.

4.  Secure MySQL Installations by following the steps test uses and databases etc.

$ sudo mysql_secure_installation

5. Root Login:

mysql -u root -p


mysql -h localhost -u root -p
create database render_web;
create user ‘render_web’@’localhost’ identified by ‘mypassword’;

For Exetnal Access:

create user ‘render_web’@’remote-ip’ identified by ‘mypassword’;

grant all on render_web.* to ‘render_web’;


Leave a Reply

Your email address will not be published. Required fields are marked *