Monday, May 11, 2020

how to install LAMP server in ubuntu



What is LAMP ?

LAMP is an open-source Web development platform, its commonly known as LAMP Stack Because it has four software components.

Which are : 

L for =  Linux as the operating system
A For =  Apache as the Web server
M For =  MySQL as the database Server
P For =  PHP or Perl or Python as the object-oriented scripting language.





INSTALL APACHE2
 
sudo apt update
sudo apt install apache2 
sudo service apache2 enable
sudo service apache2 status




INSTALL MYSQL

sudo apt install mysql-server
sudo service mysql enable
sudo service mysql status

For Update User  Password

sudo mysql -u root -p


ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

flush privileges;


INSTALL PHP5.6

   #    sudo apt-get install python-software-properties
   #   sudo add-apt-repository ppa:ondrej/php
   #   sudo apt-get update
   #   sudo apt-get install -y php5.6
   #   php -v


AFTER INSTALL PHP RESTART APACHE2 SERVICE

   #   sudo service apache2 restart


AFTER INSTALL PHP INSTALL ITS MODULAS


   #  sudo apt-get install -y php5.6-bcmath php5.6-gd php5.6-curl  php5.6-imap php5.6-intl php5.6-       soap  php5.6-xsl php5.6-xml php5.6-zip php5.6-mbstring php5.6-mysql php5.6-mcrypt



AFTER INSTALL PHP INSTALL PHP7.2 VERSION

   #  sudo apt-get install -y php7.2


No comments:

Post a Comment

testing