Installing Lampp on Rosa Linux using Shell Script

Installing Lampp on Rosa Linux using Shell Script

I have  published so many tutorial on installing and configuring xampp but today going to show you how to install lampp (stands for Linux, apache,MariaDB/MySQL,php and perl) on Rosa Linux.

System configuration :
Laptop used – Acer eMachine 732Z with 4GB RAM
Distro used – ROSA DESKTOP FRESH R9 2016.1 KDE 5.9

Installing Lampp on Rosa Linux

Method 1 : Manually
Open Terminal and run commands given below, remember on thing when installing mariaDB(MySQL) terminal will ask to set a password for MySQL, so set a password and remember it, because when you are going to login to phpmyadmin you have to use root as user and password you have already given.

sudo urpmi curl
sudo urpmi apache
sudo systemctl enable httpd
sudo systemctl start httpd
sudo urpmi mariadb
sudo systemctl enable mysqld
sudo systemctl start mysqld
sudo urpmi apache-mod_php
sudo systemctl restart httpd
sudo urpmi php-mysql
sudo urpmi php-pdo
sudo urpmi php-pdo_mysql
sudo urpmi phpmyadmin
sudo chown -R apache:apache /var/www/html/
sudo chmod -R 777 /var/www/html/

After executing all above command one can start using url http://localhost or http://127.0.0.1 and phpmyadmin using url http://localhost/phpmyadmin.

Folder ownership and rewrite access is already set,so one can create files and folder at /var/www/html/

Method 2 : Installing Lampp using Shell script

create a file called lammp.sh on home directory using editor kate,gedit,geany, or editor of your choice
Now copy the code below to lammp.sh and Save.

sudo urpmi curl
sudo urpmi apache
sudo systemctl enable httpd
sudo systemctl start httpd
sudo urpmi mariadb
sudo systemctl enable mysqld
sudo systemctl start mysqld
sudo urpmi apache-mod_php
sudo systemctl restart httpd
sudo urpmi php-mysql
sudo urpmi php-pdo
sudo urpmi php-pdo_mysql
sudo urpmi phpmyadmin
sudo chown -R apache:apache /var/www/html/
sudo chmod -R 777 /var/www/html/

Now Open terminal/ konsole and run

sudo chmod -R 777 lampp.sh
sudo sh lampp.sh

Now Shell Script will install all packages automatically only you have to set MySQL/MariaDB password.

2 Comment

  • Vikas Kumar says:

    Fantastic post, what I looking for ..
    Will you publish a article to install lampp on ubuntu (or any debian based), OpenSUSE, Fedora, CentOS and Kali

    • Sanjay Prasad says:

      for ubuntu, cent os just google it you will get answer, I will soon publish a article when ubuntu 17.10 will launch

Leave a Reply

Your email address will not be published. Required fields are marked *

Do you have any Query / Suggestion