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

Top 10 Federated Learning Platforms

Introduction Federated Learning Platforms enable organizations to collaboratively train AI and machine learning models across multiple decentralized data sources without moving or exposing raw data. In plain Read More

Read More

Comparing Heart Surgery Options, Costs, and Leading Hospitals

INTRODUCTION When dealing with complex cardiovascular conditions, choosing the right medical institution is one of the most critical health decisions you will ever make. The quality of Read More

Read More

Top 10 AI ESG Data Extraction Tools: Features, Pros, Cons & Comparison

Introduction AI ESG Data Extraction Tools use artificial intelligence, machine learning, natural language processing (NLP), document intelligence, and automation technologies to collect, extract, classify, and organize environmental, Read More

Read More

Top 10 AI Carbon Accounting Automation Tools: Features, Pros, Cons & Comparison

Introduction AI Carbon Accounting Automation Tools use artificial intelligence, machine learning, natural language processing, data automation, and sustainability analytics to help organizations measure, track, calculate, and report Read More

Read More

Top 10 AI Smart Meter Anomaly Detection Tools: Features, Pros, Cons & Comparison

Introduction AI Smart Meter Anomaly Detection Tools use artificial intelligence, machine learning, pattern recognition, and advanced analytics to identify unusual energy consumption behaviors, meter faults, fraud patterns, Read More

Read More

Top 10 AI Building Energy Optimization Tools: Features, Pros, Cons & Comparison

Introduction AI Building Energy Optimization Tools use artificial intelligence, machine learning, IoT sensors, predictive analytics, and automation to help buildings reduce energy consumption, improve operational efficiency, and Read More

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