Installing LAMP uBuntu

Post Reply
mpskinner
Site Admin
Posts: 74
Joined: Wed Sep 20, 2017 6:52 am

Installing LAMP uBuntu

Post by mpskinner » Sat Mar 17, 2018 1:53 am

Install Apache Server

Code: Select all

sudo apt-get install apache2
Install MySql

Code: Select all

sudo apt-get install mysql-server
Open MySQL

Code: Select all

sudo mysql -u root -p  
Create a MySQL User

Code: Select all

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
Give that User Permissions

Code: Select all

GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
Install php

Code: Select all

sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql
Restart Apache

Code: Select all

sudo systemctl restart apache2
Install phpMyAdmin

Code: Select all

sudo apt-get install phpmyadmin

Post Reply