Install LEMP Stack (Nginx, MariaDB, php, phpMyAdmin) on Arch Linux & Manjaro

LEMP stack stands for Linux, Nginx, MySQL, MariaDB, MongoDB, PHP, Perl, Python & phpMyAdmin. LEMP is bunch of open source software which is developed by different organization. NGINX stands for engine-x is a free, open-source, high-performance HTTP server and reverse proxy, as well as an mail (IMAP/POP3) proxy server. Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption. Currently 146 million websites use NGINX to deliver super-fast web experiences. The big companies like (WordPress, facebook, GitHub & cloudflare, etc..) using nginx.

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. For more details about PHP-FPM.

How to install LEMP Server on other Linux Distribution

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) Remove Existing LAMP stack

If you are planning to install NGINX, I advise you to remove your existing LEMP stack completely to avoid conflicts. Use the below single command to purge everything.

[Remove LAMP Stack]
$ sudo pacman -Rsn apache mariadb php php-apache php-gd php-mcrypt phpmyadmin

[Remove Apache Configuration files]
$ whereis httpd
$ sudo rm -Rf /etc/httpd /usr/lib/httpd

[Remove MySQL Configuration files]
$ sudo rm -Rf /var/lib/mysql/
$ sudo rm -Rf /etc/mysql/

Then recheck once, if anything still available. Using below commands.

$ pacman -Qs apache mysql php phpmyadmin

2) Update your system upto date

Use the below command to keep your system upto date.

[Update your system to latest package]
$ sudo pacman -Syu

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...

Shares
Close
Please support the site
By clicking any of these buttons you help our site to get better