Install LAMP Stack (Apache, MariaDB, PHP, phpMyAdmin) on Arch Linux based systems
LAMP Stands for Linux, Apache, MySQL, MariaDB, MongoDB, PHP, PERL, PYTHON, PhpMyAdmin. LAMP is combination of operating system and bunch of open-source software which is developed by different organizations.
In this tutorial, we will show you about LAMP Stack installation On Arch Linux.
Assume we have already installed Arch Linux & Desktop Environment too. If no, follow the below articles for further installation procedure.
Arch Linux additional articles
1) Update your system upto date
Use the below command to keep your system upto date.
[Update your system to latest package] $ sudo pacman -Syu
2) Install Apache
Apache is a Free open-source multi-platform web server. It’s support wide range of language such as (.html, .php, .pl, .cgi, etc..,) Apache is developed and maintained by open community of developers under Apache Software Foundation. The default apache directory location in Fedora are
[Install Apache] $ sudo pacman -S apache [Start the Apache service] $ sudo systemctl start httpd.service [Enable Apache in boot] $ sudo systemctl enable httpd.service [Check Apache Status] $ sudo systemctl status httpd.service
By default you will not get apache index page, how other distros shows. We have to create apache
index.html file manually and add the below contents.
$ sudo nano /srv/http/index.html <html> <title>Welcome</title> <body> <h2>Hello, Welcome to Arch</h2> </body> </html>