Install LAMP [All Latest Versions] On UBUNTU 16.04
Below is collective list of All Commands in one shot, to deploy LAMP on Ubuntu. The pure collection of commands gives better understanding of task in hand :
- sandip@Satellite-X205:~$ sudo apt-get update
- sandip@Satellite-X205:~$ sudo apt-get upgrade
- sandip@Satellite-X205:~$ sudo apt-get install apache2
- sandip@Satellite-X205:~$ sudo apt-get install mysql
- sandip@Satellite-X205:~$ sudo apt-get update
- sandip@Satellite-X205:~$ sudo apt-get install mysql-server
- sandip@Satellite-X205:~$ systemctl status mysql.service
- sandip@Satellite-X205:~$ sudo apache2ctl configtest
- sandip@Satellite-X205:~$ sudo nano /etc/apache2/apache2.conf
- sandip@Satellite-X205:~$ sudo apt-get install curl
- sandip@Satellite-X205:~$ curl http://icanhazip.com
- sandip@Satellite-X205:~$ ping localhost
- sandip@Satellite-X205:~$ sudo nano /etc/apache2/apache2.conf
- sandip@Satellite-X205:~$ sudo apache2ctl configtest
- sandip@Satellite-X205:~$ sudo systemctl restart apache2
- sandip@Satellite-X205:~$ sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql
- sandip@Satellite-X205:~$ sudo nano /etc/apache2/mods-enabled/dir.conf
- sandip@Satellite-X205:~$ sudo systemctl restart apache2
- sandip@Satellite-X205:~$ sudo systemctl status apache2
- sandip@Satellite-X205:~$ sudo nano /var/www/html/info.php
- sandip@Satellite-X205:~$ sudo apt-get update
- sandip@Satellite-X205:~$ sudo apt-get install phpmyadmin php-mbstring php-gettext
- sandip@Satellite-X205:~$ sudo phpenmod mcrypt
- sandip@Satellite-X205:~$ sudo phpenmod mbstring
- sandip@Satellite-X205:~$ sudo systemctl status apache2
- sandip@Satellite-X205:~$ sudo systemctl restart apache2
- sandip@Satellite-X205:~$ sudo nano /etc/apache2/conf-available/phpmyadmin.conf
- sandip@Satellite-X205:~$ sudo systemctl restart apache2
- sandip@Satellite-X205:~$ sudo nano /etc/phpmyadmin/apache.conf
- sandip@Satellite-X205:~$ sudo nano /etc/apache2/apache2.conf
- sandip@Satellite-X205:~$ sudo systemctl restart apache2
- sandip@Satellite-X205:~$ sudo service apache2 restart
- sandip@Satellite-X205:~$ sudo nano /etc/phpmyadmin/config.inc.php
- sandip@Satellite-X205:~$ sudo systemctl restart apache2
- sandip@Satellite-X205:~$ sudo mysql -u root
- mysql> create user 'sandip'@'localhost' identified by '';
- mysql> grant all privileges on *.* to 'sandip'@'localhost';
- sandip@Satellite-X205:~$ sudo service mysql restart
Voila ! You're all Set with basic commands to install LAMP on Ubuntu !!
Add new comment