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 WordPress Inside a blog Folder on Linux (XAMPP Public Directory)

If you are running a Linux server with XAMPP and want to install WordPress inside a blog folder within your project’s public directory, this step-by-step guide will help you set it up properly.
In this example, WordPress will be installed at:

/opt/lampp/htdocs/hyderabadorbit.com/public/blog

After installation, your blog will be accessible at:

https://yourdomain.com/blog

Step 1 — Navigate to the Public Directory

Open your terminal and move to your project’s public folder:

cd /opt/lampp/htdocs/hyderabadorbit.com/public

Step 2 — Download the Latest WordPress Package

Download the latest WordPress version directly from the official source:

wget https://wordpress.org/latest.zip

Extract the downloaded file:

unzip latest.zip

Step 3 — Rename the WordPress Folder to blog

Rename the extracted folder so that WordPress runs under the /blog URL:

mv wordpress blog

Now your WordPress files will be located at:

public/blog

Step 4 — Set Proper Permissions

Since you are using XAMPP, set ownership and permissions for the web server:

sudo chown -R daemon:daemon blog
sudo chmod -R 755 blog

This ensures Apache can access and manage the files correctly.


Step 5 — Create a Database for WordPress

Open MySQL using XAMPP:

/opt/lampp/bin/mysql -u root -p

Create a new database and user:

CREATE DATABASE blog_db;
CREATE USER 'blog_user'@'localhost' IDENTIFIED BY 'StrongPassword';
GRANT ALL PRIVILEGES ON blog_db.* TO 'blog_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 6 — Restart XAMPP Services

Restart XAMPP to apply changes:

sudo /opt/lampp/lampp restart

Step 7 — Complete WordPress Installation via Browser

Open your browser and go to:

https://yourdomain.com/blog

Enter the following database details:

  • Database Name: blog_db
  • Username: blog_user
  • Password: StrongPassword
  • Database Host: localhost

Click Install WordPress, and follow the on-screen instructions.


Related Posts

Advance Your IT Career with Certified AIOps Manager Certification

Introduction The transition toward automated IT operations is a significant shift for modern businesses. If you want to lead this change, the Certified AIOps Manager program at Read More

Read More

Strategic Proven AIOps Certification Plan for Strong IT Career Growth Opportunities

Introduction The tech world is changing fast and moving toward automation driven by artificial intelligence. A Certified AIOps Architect is a professional who knows how to use Read More

Read More

Strategic career growth starts with becoming a dedicated certified AIOps professional

Introduction The world of IT operations is changing very fast. Keeping up with thousands of logs and alerts is no longer possible for humans alone. This is Read More

Read More

Certified AIOps Engineer: Learn AI-Driven IT Operations Fast

Introduction The Certified AIOps Engineer program is a highly specialized learning path designed for technical professionals who want to lead the next generation of IT operations. This Read More

Read More

Elevate your career with the professional AIOps Foundation Certification guide

Introduction The AIOps Foundation Certification represents a critical shift in how engineering teams manage the growing complexity of modern, distributed systems. As environments move toward hyper-scale, manual Read More

Read More

Strategic Certified Site Reliability Manager Certification Guide for Technical Managers

Introduction The Certified Site Reliability Manager program is recognized by DevOpsSchool as a primary standard for leadership in modern infrastructure. This guide is crafted for professionals who are tasked Read More

Read More
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x