How to Install LAMP Stack (Apache, MariaDB, PHP, phpMyAdmin) on Mageia 5 System

LAMP stands for Linux, Apache, MySQL & PHP and now it’s called Linux, Apache, MySQL, MariaDB, MongoDB, PHP, PERL, PYTHON, PhpMyAdmin. In the real world 60% of websites are serving by LAMP. LAMP is a bunch of open-source software which is developed by different organizations.

How to install LAMP on other Linux Distributions

1) Update your system upto date

Use the below command’s to keep your system upto date. Make sure you should update your system whenever new updates available.

[Update your system to latest package]
$ sudo urpmi.update
or
$ sudo urpmi.update -a

2) Install Apache

Use the below command to install apache web server. The Apache HTTP Server is called Apache, Apache is a Web server application which is suitable for All LINUX and UNIX distribution and also provide support for windows. It is serving .html, .php, .pl, .cgi, etc ,..Apache is developed and maintained by open community of developers under Apache Software Foundation.

[Install Apache]
$ sudo urpmi apache

[Start, Enable & check Apache Status]
$ sudo systemctl start httpd
$ sudo systemctl enable httpd
$ sudo systemctl status httpd

Allow web server on firewall for public access, by navigating Applications >> Tools >> Mageia Control Center >> Security >> Setup your personal firewall >> Web Server and configure it.

Open your web browser and navigate to http://localhost/ or http://your-server-ip-address/ or http://127.0.0.1/
install-lamp-apache-on-mageia

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...