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.
Step 1) Access Linux Machine
Step 2) Install Apache Webserver
sudo apt update
sudo apt install apache2
sudo service apache2 enable
sudo service apache2 status
Step 3) Install Mysql Database Server
sudo apt install mysql-server
sudo service mysql enable
sudo service mysql status
sudo mysql -u root -p
For Update User Password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
flush privileges;
Step 4) Install PHP as a scripting language.
sudo apt install ca-certificates apt-transport-https software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt install php8.0 libapache2-mod-php8.0
sudo apt-get install -y php8.0-cli
sudo apt-get install -y php8.0-common
sudo apt-get install -y php8.0-json
sudo apt-get install -y php8.0-opcache
sudo apt-get install -y php8.0-mysql
sudo apt-get install -y php8.0-mbstring
sudo apt-get install -y php8.0-mcrypt
sudo apt-get install -y php8.0-zip
sudo apt-get install -y php8.0-fpm
sudo apt-get install -y php8.0-xml
sudo apt-get install -y php8.0-xmlrpc
sudo apt-get install -y php8.0-gd
sudo apt-get install -y php8.0-curl
sudo apt-get install -y php8.0-imap
sudo apt-get install -y php8.0-soap
sudo apt-get install -y php8.0-bcmath
sudo apt-get install -y php8.0-bz2
Completed !
YouTube : tech2towards
Website : https://tech2towards.blogspot.com
Facebook : / tech2towards
Telegram : https://t.me/+iIVdbJfg7q5iNjRl