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.
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
Mageia Control Center >>
Setup your personal firewall >>
Web Server and configure it.