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.

3
Leave a Reply

avatar
2 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
Farhan KhanSanjay PrasadVikas Kumar Recent comment authors

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

  Subscribe  
newest oldest most voted
Notify of
Vikas Kumar
Guest

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
Guest

Good article

Do you have any Query / Suggestion