Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

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.

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Vikas Kumar

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

Farhan Khan

Good article