How to Install LAMP(Apache, Nginx, MySQL, MariaDB, PHP and PhpMyAdmin) in Ubuntu Server 15.04

Channel:
Subscribers:
25,100
Published on ● Video Link: https://www.youtube.com/watch?v=mB7khgvoL_4



Category:
Tutorial
Duration: 16:19
3,444 views
19


Hello Everyone,

In this tutorial,

Let Us Setting Up LAMP (Apache, Nginx, MySQL,MariaDB, PHP and PhpMyAdmin) on Ubuntu 15.04 Server

Set Server Hostname and System Update
Step 1 :- sudo hostnamectl set-hostname cloudnetwork.in
Step 2 :- hostnamectl

To Check System is up to Date
Step 3 :- sudo apt-get update && sudo apt-get upgrade

Install Apache Webserver & Restart Services
Step 4 :- sudo apt-get install apache2
Step 5 :- sudo service apache2 start
Step 6 :- sudo service apache2 status

To Verify Working or no Open Browser and type IPaddress
http://server-ip-address

Install PHP with Modules
Step 7 :- sudo apt-get install php5 php5-mysql php5-mcrypt php5-gd libapache2-mod-php5

To test your PHP installation
Step 8 :- cd /var/www/html/
Step 9 :- sudo nano php_info.php
Insert :- ?php phpinfo(); ?

To Verify Working or no Open Browser and type IPaddress
http://server-ip-address/php_info.php

Install more PHP modules
Step 10 :- sudo apt search php5


Install MariaDB Server and Client
Step 11 :- sudo apt-get install mariadb-client mariadb-server

Setting Root Password
Step 12 :- sudo mysql –u root
Step 13 :- use mysql;
Step 14 :- update user set plugin='' where User='root';
Step 15 :- flush privileges;

Root user can be secured
Step 16 :- mysql_secure_installation

Install PhpMyAdmin
Step 17 :- sudo apt-get install phpmyadmin

To Verify Working or no Open Browser and type IPaddress
http://your-ip-address/phpmyadmin

Start LAMP at System Boot
Step 18 :- sudo systemctl enable apache2
Step 19 :- sudo systemctl enable mysql

Step 20 :- Reboot

Install and Configure Nginx Webserver
Step 18 :- sudo apt-get install nginx
Step 18 :- sudo service nginx start
Step 19 :- sudo systemctl enable nginx

To Verify Working or no Open Browser and type IPaddress
http://your-ip-address/


Step 20 :- sudo vim /etc/nginx/sites-available/default
Step 21 :- sudo service nginx restart


Error’s - 1
Not Found The requested URL /phpmyadmin was not found on this server.

Step1 :- nano /etc/apache2/apache2.conf

Add the following line to the end of the file.
Step2 :- Include /etc/phpmyadmin/apache.conf

Then restart apache
Step3 :- /etc/init.d/apache2 restart


Error’s - 2
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

You can kill it using:
Step1 :- sudo fuser -k 80/tcp



NOTE :- For Any Clarification Please Below

Comment,
Like and
Share us and help us to spread.

####--------------------------------------------------------------------------------------####
Subscribe :- http://www.youtube.com/user/itcloudnet?sub_confirmation=1
Website :- http://www.cloudnetwork.in
Facebook :- http://facebook.com/itCloudNetwork/
Twitter :- http://twitter.com/itcloudnet
Pinterset :- http://pinterset.com/itcloudnet
LinkedIn :- http://in.linkedin.com/pub/itcloudnet
Google+ :- https://plus.google.com/u/0/107923552480070716949/posts
Skype Id :- cloud.network1
E-Mail Id :- itcloudnet@gmail.com
####----------------------------------------------------------------------------------------####
Thanking You
Hope U Like it........




Other Videos By Cloud Network


2015-06-19How to Install and Manage Sonatype Nexus 2.11.3 on Ubuntu Desktop 16.04 & Linux Mint 17.2
2015-06-14How To Install Apache Cassandra 2.1.5 & Run a Single or Multiple-Node Cluster On Ubuntu Server 15.04
2015-06-13How to Install OpenCart in Redhat Linux 7, CentOS Server 7 & Fedora Workstation 22, 21 - 64-bit
2015-06-12How to Install Jenkins (Deploying, Upgrade, Apache, Nginx Proxy) in Ubuntu Server 15.10/14.04
2015-06-11How to Install and Use Docker Machine 1.6 (Image, Containers) in Ubuntu Server 16.04,15.04,14.04
2015-06-06How to Install LibreOffice Released 4.4.3 in Ubuntu Desktop 15.10/15.04/14.10
2015-06-06How to Install Eclipse IDE 4.3.2 with Java 8 (JDK or JRE 8u45) in Ubuntu Desktop 15.04, 14.10 LTS
2015-06-06How to Install LibreOffice 4.4.3 on Fedora 23/22/21 & Ubuntu 15.10/14.04 Desktop
2015-06-06How to Install CentOS Web Panel (All-in-One Free Web Hosting CWP) in CentOS 7 & Fedora Server 22
2015-06-06How to Upgrade Fedora 21 to Fedora 22 Workstation
2015-06-06How to Install LAMP(Apache, Nginx, MySQL, MariaDB, PHP and PhpMyAdmin) in Ubuntu Server 15.04
2015-06-02How to Install VMware Workstation 11 to Create Virtual Machines Fedora 23/22 Desktop - 64/32-Bit
2015-05-31Top 5 Things to Do After Installing Fedora 22 Live Workstation
2015-05-31How to Install Fedora Server 22 on Virtual Box
2015-05-31How to Install Nagios Log Server in Redhat Linux 7, CentOS 7 and Fedora Server 22, 21, 20 - 64bit
2015-05-28How to Configure ‘DNF’ Fork of Yum 27 Commands for RPM Package Management in Fedora 22 & CentOS 7
2015-05-28How to Install Fedora Workstation Live 22 With Full Screen Resolution
2015-05-25How to Install Debian 8 (Jessie) GNU/Linux on Virtual Box - 32/64-Bit
2015-05-24How to Install & Configure Nagios Core 4.1.0rc1 & Plugins 2.0.3 in Ubuntu 15.04 Server - Part 2
2015-05-24How to Install NSClient++ in Windows 7,8,10 to Add Host in Nagios Server to Monitor Remote
2015-05-24How to Install & Configure Nagios Core 4.1.0rc1 & Plugins 2.0.3 in Ubuntu 15.04 Server - Part 1



Tags:
Apache HTTP Server (Software)
MySQL (Software)
PhpMyAdmin (Software)
MariaDB
PHP (Programming Language)
Ubuntu (Operating System)
LAMP
Computer
Light
Tutorial
Linux
Lights
Desktop
Nginx (Software)
Ubuntu Software Center (Software)
Ubuntu One (Software)
Ubuntu Studio (Operating System)
How-to (Website Category)