This tutorial will guide you to install LAMP Stack on Manjaro Linux. LAMP is a perfect combination of Linux, Apache, MySQL and PHP to build a powerful and reliable server on Linux OS. I am using Manjaro 16.10 on this tutorial but it should be applicable to any other Arch based Linux distribution. Most steps on this tutorial were done on Terminal with root permission.
Steps to install LAMP Stack on Manjaro
Step 1. Update Manjaro
Its always a good practice to make sure that our system is up to date.
sudo pacman -Syu
Step 2. Install Apache
sudo pacman -S apache
After Apache is installed, we need to check the Apache configuration.
sudo nano /etc/httpd/conf/httpd.conf
Find and comment out the following line:
#LoadModule unique_id_module modules/mod_unique_id.so
Restart Apache
sudo systemctl restart apache
Now check the apache status
sudo systemctl status httpd
At this point Apache is installed and the status is running. But its better to test it by creating an index.html in Apache root directory.
sudo nano /srv/http/index.html
Add some html lines
<html>
<title>Welcome</title>
<body>
<h2>Hello, Welcome to Manjaro</h2>
http://gamblisfx.com
</body>
</html>
Now open web browser type the Manjaro IP address as follow:
Step 3. Install MySQL Server
Command to install MySQL Server on Manjaro.
Start MySQL service
Restart Apache
sudo pacman -S mysqlPlease note that by executing the command, you will install Mariadb instead of MySQL.
Start MySQL service
sudo systemctl start mariadbCheck Mariadb status
sudo systemctl status mariadbSecure the MySQL Installation
mysql_secure_installation
Step 3. Install PHP
Install PHP with this commandsudo pacman -S php php-apache
Restart Apache
sudo systemctl restart httpdNow you have LAMP installed on Manjaro 16.10.
1 comments:
Interesting Article. Hoping that you will continue posting an article having a useful information. Best WordPress Resources
EmoticonEmoticon