How To Install LAMP Stack On Linux, Ubuntu, Debian,Mint,Fedora

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/how-to-install-lamp-stack-on-linux-ubuntu-debianmintfedora/
PINTEREST
PINTEREST
INSTAGRAM

LAMP stack is a popular term in IT world. It is used to express multiple application package to server PHP applications. Here is the formula Linux+Apache+MySQL+PHP=LAMP . LAMP stack can be created by installing these components one by one. In this tutorial we assume that we have already installed the Linux distribution like Ubuntu, Debian, CentOS, Mint .

Installing Apache or Httpd

We will start by installing Apache web server. Apache is most popular web server in the internet. Apache has a different name in rpm based distributions which is httpd.

Install Apache for Debian, Ubuntu, Mint

We will use apt or interchangeble apt-get command for apache2 package installation.

Install Apache for CentOS, Fedora, RHEL

We will use dnf or yum command for httpd package installation. httpd is the name of Apache in rpm based distributions.

Installing MySQL or MariaDB

MySQL or with its opensource version MariabDB is database component of the LAMP. We can install it like below.

Install MySQL for Debian, Ubuntu, Mint

We will install MySQL with the following command.

Install MySQL for CentOS, Fedora, RHEL

We will install mysql-server package.

Install MySQL for CentOS, Fedora, RHEL

Install MySQL for CentOS, Fedora, RHEL

Installing PHP

PHP is the programming part of the LAMP stack. Applications, CMS will run with PHP interpreter .

Install MySQL for Debian, Ubuntu, Mint

We will install PHP with a simple command.

LEARN MORE  Php Tutorial

Install MySQL for CentOS, Fedora, RHEL

We will install PHP package like below.

Install MySQL for CentOS, Fedora, RHEL

Install MySQL for CentOS, Fedora, RHEL

Configuring LAMP Stack

Now we have installed all components of the LAMP Stack. We can

Start Apache Web Server

We will start Apache web server explicitly by running following service control command systemctl .

Debian, Ubuntu, Mint

CentOS, Fedora, RHEL

Check Apache Web Server Status

We can check Apache web server service status with the following command

Debian, Ubuntu, Mint

CentOS, Fedora, RHEL

Check Apache Web Server Status

Check Apache Web Server Status

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/how-to-install-lamp-stack-on-linux-ubuntu-debianmintfedora/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)