Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to Install & configure Xampp and WordPress in Linux?

How to setup WAMP server in Linux?

$ sudo -s
$ cd /opt/
$ yum install wget -y

# URL for right package - https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/7.4.29/

$ wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/7.4.29/xampp-linux-x64-7.4.29-1-installer.run/download

$ mv download xampp-linux-x64-7.4.29-1-installer.run

$ chmod 755 xampp-linux-x64-7.4.29-1-installer.run
$ ./xampp-linux-x64-7.4.29-1-installer.run

$ /opt/lampp/lampp status
$ /opt/lampp/lampp start
$ /opt/lampp/lampp status
$ /opt/lampp/lampp stop
$ /opt/lampp/lampp start
$ curl http://13.233.196.197/dashboard/
$ sudo -s
$ cd /opt/
$ yum install wget -y
$ wget https://www.apachefriends.org/xampp-files/8.0.0/xampp-linux-x64-8.0.0-2-installer.run
$ chmod 755 xampp-linux-x64-8.0.0-2-installer.run
$ ./xampp-linux-x64-8.0.0-2-installer.run

$ /opt/lampp/lampp status
$ /opt/lampp/lampp start
$ /opt/lampp/lampp status
$ /opt/lampp/lampp stop
$ /opt/lampp/lampp start
$ curl http://13.233.196.197/dashboard/

Referece:

  • https://www.apachefriends.org/index.html

How to create mysql user, database and grant a permission to a database in mysql?

$ /opt/lampp/bin/mysql -u root
CREATE DATABASE wordpress;
show databases;
CREATE USER 'wp-user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'wp-user'@'localhost';
FLUSH PRIVILEGES;
SHOW GRANTS FOR 'wp-user'@'localhost';	

Reference

  • https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql

How to setup WordPress in Xampp in Linux?

cd /opt/lampp/htdocs/
wget https://wordpress.org/latest.tar.gz
tar -zxvf latest.tar.gz
ls -la
chown -R daemon:daemon wordpress
ls -la
Reference:
- https://wordpress.org/download/#download-install

# ACCESS your Web server @ http://13.233.196.197/wordpress
DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.