How to Install WordPress on Ubuntu 25.10
WordPress is one of the most popular and user-friendly CMS (Content Management Systems) available. It allows you to easily create and manage websites without requiring coding skills. Whether it’s for a personal blog or a business site, WordPress offers flexibility and a wide range of plugins and themes.
Prerequisites
- Root or sudo access to your Ubuntu 25.10 server.
- A LAMP Stack (Linux, Apache, MariaDB/MySQL, PHP) installed and running.
👉 Learn how to install LAMP Stack on Ubuntu 25.10
Create a Database for WordPress
Login to MySQL or MariaDB:
mysql -u root -p
Inside the MySQL shell, create a database and user for WordPress:
CREATE DATABASE wordpress_db;
CREATE USER 'wordpress_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wordpress_user'@'localhost';
FLUSH PRIVILEGES;
exit;
🔹 Replace
wordpress_userandpasswordwith your preferred username and a strong password.
Example Output:
root@server:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 15
Server version: 11.4.3-MariaDB-1 Ubuntu 25.10
MariaDB [(none)]> CREATE DATABASE wordpress_db;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]> CREATE USER 'wordpress_user'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.002 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wordpress_user'@'localhost';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> exit
Bye
Download and Install WordPress
Download the latest version of WordPress from the official website:
wget -O /tmp/wordpress.tar.gz https://wordpress.org/latest.tar.gz
Extract the WordPress archive into the Apache web root directory:
tar -xzvf /tmp/wordpress.tar.gz -C /var/www/html/
Set correct ownership and permissions:
chown -R www-data:www-data /var/www/html/wordpress
chmod -R 755 /var/www/html/wordpress
Configure WordPress
Now open your web browser and navigate to:
http://YOUR_SERVER_IP/wordpress
Replace
YOUR_SERVER_IPwith your actual server IP address or domain name.
You will see the WordPress setup screen.
-
Select your preferred language and click Continue.

-
Click Let’s Go to proceed.

-
Enter your database details:
- Database Name:
wordpress_db - Username:
wordpress_user - Password: (your chosen password)
- Database Host:
localhost - Table Prefix:
wp_
- Database Name:
-
Click Run the Installation.

-
Enter your Site Title, Admin Username, Password, and Email.

- Click Install WordPress.
Once installation completes, you’ll see a success message:

Access WordPress Dashboard
Login using the admin credentials you created earlier:
http://YOUR_SERVER_IP/wordpress/wp-admin

After logging in, you’ll see the WordPress Dashboard, where you can install themes, add plugins, and customize your website.

✅ Conclusion:
You have successfully installed WordPress on Ubuntu 25.10 using the Apache web server.
You can now start building and customizing your website.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS