SlideShare une entreprise Scribd logo
1  sur  29
1. Installation of Apache
Hello Everyone, 
In this tutorial, 
let us Install LAMP Server (Apache, MySQL, PHP) 
on Ubuntu 12.04/14.04 Server.
What is Lamp? 
LAMP is a combination of operating system and 
open-source software stack. The acronym LAMP 
is derived from first letters of Linux, Apache 
HTTP Server, MySQL or Maria DB database, and 
PHP/Perl/Python.
What is Apache ? 
Apache is an open-source multi-platform web 
server. It provides a full range of web server 
features including CGI, SSL and virtual domains. 
Website link for Apache: httpd.apache.org/
I'm running all the steps in this tutorial with root 
privileges, so make sure you're logged in as 
ROOT
Update Ubuntu repositories by giving 
the below command
sudo apt-get update & sudo apt-get 
upgrade -y
sudo apt-get install apache2
Testing for Apache Working or Not 
http://localhost/ 
or 
http://server-ip-address/.
2. Installation of MySQL
What is MySQL ? 
MySQL is a relational database management 
system (RDBMS) that runs as a server providing 
multi-user access to a number of databases, 
though SQLite probably has more total 
embedded deployments. 
Website link MySQL: http://www.mysql.com/
sudo apt-get install mysql-server mysql-client 
or 
sudo apt-get install mysql-server libapache2- 
mod-auth-mysql php5-mysql
You can verify the MySQL server status using 
command 
sudo service mysql status 
Sample output:mysql start/running, process 
3470
3. Installation of PHP
What is PHP ? 
PHP (recursive acronym for PHP: Hypertext 
Preprocessor) is a widely used open-source 
general purpose scripting language that is 
especially suited for web development and can 
be embedded into HTML. 
Website phpMyAdmin: www.phpmyadmin.net
sudo apt-get install php5 php5-mysql 
libapache2-mod-php5
Test PHP Create a sample “testphp.php” file in 
Apache document root folder. 
sudo nano /var/www/html/testphp.php 
Add the following lines. 
<? 
phpphpinfo(); 
?>
Restart apache2 service: 
sudo service apache2 restart 
or 
/etc/init.d/apache2 restart
Testing testphp 
(e.g. localhost:testphp or 
http://192.168.0.100/testphp.php) 
If you want to install all php modules enter the 
command 
sudo apt-get install php* and restart the 
apache2 service 
.
To verify the modules, open web browser and 
navigate to 
http://server-ip-address/testphp.php. 
You will able to see all installed php modules
3. Installation of phpMyAdmin
phpMyAdmin is a free open-source web 
interface tool used to manage your MySQL 
databases. It is available in the Official Debian 
repositories.
sudo apt-get install phpmyadmin
Web server to reconfigure automatically: <-- 
apache2 
Configure database for phpmyadmin with 
dbconfig-common? <-- yes 
Enter MySQL application password phpmyadmin 
< --- 123456
Afterwards, you can access 
phpMyAdmin under:- 
http://192.168.0.100/phpmyadmin/
How to change MYSQL root Passwd
Once you have installed MySQL, we should 
activate it with this command 
sudo mysql_install_dbsudo 
/usr/bin/mysql_secure_installation
The prompt will ask you for your current root 
password. 
Go ahead and choose N and move on to the 
next steps 
Remove anonymous users? [Y/n] y 
Disallow root login remotely? [Y/n] y 
Remove test database and access to it? [Y/n] y 
Reload privilege tables now? [Y/n] y 
Now you can manage your MySQL databases 
from phpMyAdmin web interface
That’s it. Your LAMP server is up and running now. 
NOTE :- For Any Clarification Please Comment Below 
Watch Next Video :- see How to Install Ubuntu Server 
14.04 
https://www.youtube.com/watch?v=PiKchOXHwpE&list 
=PLmMAzSMza_1f4b8Keim51-9LfKBU28pWf 
Thanking You 
Hope U Like it........

Contenu connexe

Tendances

Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modulesmohamedmoharam
 
Apache Presentation
Apache PresentationApache Presentation
Apache PresentationAnkush Jain
 
Aj
AjAj
AjReka
 
Howto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyHowto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyopenQRM Enterprise GmbH
 
Prabu apache installations
Prabu apache installationsPrabu apache installations
Prabu apache installationsPrabu Cse
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmersMd. Al Amin
 
Apache ppt
Apache pptApache ppt
Apache pptReka
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionSammy Fung
 
Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Zakaria Hossain
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuWirabumi Software
 

Tendances (17)

Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modules
 
Apache
ApacheApache
Apache
 
Linux
LinuxLinux
Linux
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
 
Installing and configuring apache
Installing and configuring apacheInstalling and configuring apache
Installing and configuring apache
 
Aj
AjAj
Aj
 
Howto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyHowto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian Wheezy
 
instaling
instalinginstaling
instaling
 
Readme
ReadmeReadme
Readme
 
Performance_Up.ppt
Performance_Up.pptPerformance_Up.ppt
Performance_Up.ppt
 
Prabu apache installations
Prabu apache installationsPrabu apache installations
Prabu apache installations
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Babitha.4appach
Babitha.4appachBabitha.4appach
Babitha.4appach
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server Edition
 
Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
 

En vedette

Linux installation and booting process
Linux installation and booting processLinux installation and booting process
Linux installation and booting processSiddharth Jain
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04mikehie
 
NTRLS June08
NTRLS June08NTRLS June08
NTRLS June08hblowers
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux osjoycoronado
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux pptOmi Vichare
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt onu9
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 

En vedette (9)

Linux installation and booting process
Linux installation and booting processLinux installation and booting process
Linux installation and booting process
 
linux introduction
linux introductionlinux introduction
linux introduction
 
X Windows
X WindowsX Windows
X Windows
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04
 
NTRLS June08
NTRLS June08NTRLS June08
NTRLS June08
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux ppt
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 

Similaire à How to Install LAMP in Ubuntu 14.04

Installing WampServer
Installing WampServerInstalling WampServer
Installing WampServerDrupal Jax
 
Installing Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu InstanceInstalling Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu Instancekamarul kawnayeen
 
Securing Your Web Server
Securing Your Web ServerSecuring Your Web Server
Securing Your Web Servermanugoel2003
 
Apache web server tutorial for linux
Apache web server tutorial for linuxApache web server tutorial for linux
Apache web server tutorial for linuxSahad Sali
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011Alfred Ayache
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with NginxBud Siddhisena
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationChetan Soni
 
R hive tutorial supplement 1 - Installing Hadoop
R hive tutorial supplement 1 - Installing HadoopR hive tutorial supplement 1 - Installing Hadoop
R hive tutorial supplement 1 - Installing HadoopAiden Seonghak Hong
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Kaan Aslandağ
 
Diva23
Diva23Diva23
Diva23diva23
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0venkatakrishnan k
 
Installation instruction of Testlink
Installation instruction of TestlinkInstallation instruction of Testlink
Installation instruction of Testlinkusha kannappan
 

Similaire à How to Install LAMP in Ubuntu 14.04 (20)

Apache - Quick reference guide
Apache - Quick reference guideApache - Quick reference guide
Apache - Quick reference guide
 
Installing WampServer
Installing WampServerInstalling WampServer
Installing WampServer
 
Installing Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu InstanceInstalling Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu Instance
 
Lumen
LumenLumen
Lumen
 
Securing Your Web Server
Securing Your Web ServerSecuring Your Web Server
Securing Your Web Server
 
Apache
ApacheApache
Apache
 
Apache web server tutorial for linux
Apache web server tutorial for linuxApache web server tutorial for linux
Apache web server tutorial for linux
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with Nginx
 
Lamp introduction in Fedora
Lamp introduction in FedoraLamp introduction in Fedora
Lamp introduction in Fedora
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
zLAMP
zLAMPzLAMP
zLAMP
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
 
R hive tutorial supplement 1 - Installing Hadoop
R hive tutorial supplement 1 - Installing HadoopR hive tutorial supplement 1 - Installing Hadoop
R hive tutorial supplement 1 - Installing Hadoop
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
 
Diva23
Diva23Diva23
Diva23
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Installation instruction of Testlink
Installation instruction of TestlinkInstallation instruction of Testlink
Installation instruction of Testlink
 

Dernier

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Dernier (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 

How to Install LAMP in Ubuntu 14.04

  • 2. Hello Everyone, In this tutorial, let us Install LAMP Server (Apache, MySQL, PHP) on Ubuntu 12.04/14.04 Server.
  • 3. What is Lamp? LAMP is a combination of operating system and open-source software stack. The acronym LAMP is derived from first letters of Linux, Apache HTTP Server, MySQL or Maria DB database, and PHP/Perl/Python.
  • 4. What is Apache ? Apache is an open-source multi-platform web server. It provides a full range of web server features including CGI, SSL and virtual domains. Website link for Apache: httpd.apache.org/
  • 5. I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as ROOT
  • 6. Update Ubuntu repositories by giving the below command
  • 7. sudo apt-get update & sudo apt-get upgrade -y
  • 9. Testing for Apache Working or Not http://localhost/ or http://server-ip-address/.
  • 11. What is MySQL ? MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases, though SQLite probably has more total embedded deployments. Website link MySQL: http://www.mysql.com/
  • 12. sudo apt-get install mysql-server mysql-client or sudo apt-get install mysql-server libapache2- mod-auth-mysql php5-mysql
  • 13. You can verify the MySQL server status using command sudo service mysql status Sample output:mysql start/running, process 3470
  • 15. What is PHP ? PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely used open-source general purpose scripting language that is especially suited for web development and can be embedded into HTML. Website phpMyAdmin: www.phpmyadmin.net
  • 16. sudo apt-get install php5 php5-mysql libapache2-mod-php5
  • 17. Test PHP Create a sample “testphp.php” file in Apache document root folder. sudo nano /var/www/html/testphp.php Add the following lines. <? phpphpinfo(); ?>
  • 18. Restart apache2 service: sudo service apache2 restart or /etc/init.d/apache2 restart
  • 19. Testing testphp (e.g. localhost:testphp or http://192.168.0.100/testphp.php) If you want to install all php modules enter the command sudo apt-get install php* and restart the apache2 service .
  • 20. To verify the modules, open web browser and navigate to http://server-ip-address/testphp.php. You will able to see all installed php modules
  • 21. 3. Installation of phpMyAdmin
  • 22. phpMyAdmin is a free open-source web interface tool used to manage your MySQL databases. It is available in the Official Debian repositories.
  • 23. sudo apt-get install phpmyadmin
  • 24. Web server to reconfigure automatically: <-- apache2 Configure database for phpmyadmin with dbconfig-common? <-- yes Enter MySQL application password phpmyadmin < --- 123456
  • 25. Afterwards, you can access phpMyAdmin under:- http://192.168.0.100/phpmyadmin/
  • 26. How to change MYSQL root Passwd
  • 27. Once you have installed MySQL, we should activate it with this command sudo mysql_install_dbsudo /usr/bin/mysql_secure_installation
  • 28. The prompt will ask you for your current root password. Go ahead and choose N and move on to the next steps Remove anonymous users? [Y/n] y Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] y Reload privilege tables now? [Y/n] y Now you can manage your MySQL databases from phpMyAdmin web interface
  • 29. That’s it. Your LAMP server is up and running now. NOTE :- For Any Clarification Please Comment Below Watch Next Video :- see How to Install Ubuntu Server 14.04 https://www.youtube.com/watch?v=PiKchOXHwpE&list =PLmMAzSMza_1f4b8Keim51-9LfKBU28pWf Thanking You Hope U Like it........