Install WordPress with Apache on Ubuntu 24.04 and set up a secure website quickly. Our WordPress Support team is ready to assist you. 

Build Your WordPress Website on Ubuntu 24.04

Creating your own website has never been easier. WordPress lets you design blogs, portfolios, online stores, and more without writing any code. With its flexible themes and plugins, you can customize your site exactly how you want. This guide shows how to install WordPress on Ubuntu 24.04 using Apache, so your website is up and running quickly and smoothly.

What is WordPress?

WordPress is a free, open-source platform that makes creating and managing websites easy without any coding. You can build blogs, portfolios, online stores, and more, and customize them with thousands of themes and plugins. Running on PHP, which is crucial for WordPress development, and MySQL, it powers millions of websites worldwide. WordPress.org offers self-hosted sites, while WordPress.com includes hosting, giving flexibility and control for beginners and professionals alike.

Prerequisites

To install WordPress with Apache on Ubuntu 24.04, you need a fresh server or VPS with SSH access and a user with sudo privileges. Make sure Apache, MySQL or MariaDB, and PHP with required extensions are installed. Our guide also applies if you want to install WordPress on Debian 12.11. A domain name is recommended for a professional site. Open ports 80 and 443 if a firewall is active. Keep your system updated and ensure your server has enough CPU and RAM for smooth performance.

Get your WordPress site running today

Chat animation


Install WordPress on Ubuntu 24.04 with Apache

Build Your WordPress Website on Ubuntu 24.04

WordPress is a popular platform for building websites, from blogs to online stores. Installing it on Ubuntu 24.04 with Apache is simple if you set up a LAMP stack first. Follow these steps to get your site running quickly.

Quick Installation Guide
  • Update System
sudo apt update && sudo apt upgrade -y
  • Install Apache
sudo apt install apache2 -y
sudo systemctl enable apache2
sudo systemctl start apache2
  • Install MariaDB
sudo apt install mariadb-server -y
sudo systemctl enable mariadb
sudo systemctl start mariadb
sudo mysql_secure_installation
  • Create Database and User
sudo mysql -u root -p
CREATE DATABASE wordpress_db;
CREATE USER 'wordpress_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wordpress_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
  • Install PHP and Extensions
sudo apt install php php-mysql libapache2-mod-php php-cli php-cgi php-xml php-mbstring php-zip php-curl php-soap -y
sudo systemctl restart apache2
  • Download and Prepare WordPress
cd /tmp
wget https://wordpress.org/latest.tar.gz
sudo tar -xzf latest.tar.gz -C /var/www/
sudo mv /var/www/wordpress /var/www/html/wordpress
sudo chown -R www-data:www-data /var/www/html/wordpress
sudo chmod -R 755 /var/www/html/wordpress
  • Configure Apache
sudo nano /etc/apache2/sites-available/wordpress.conf

Add configuration, then enable site and rewrite module:
sudo a2ensite wordpress.conf
sudo a2dissite 000-default.conf
sudo a2enmod rewrite
sudo systemctl reload apache2
  • Complete Installation

Open http://your_domain_or_ip in your browser, follow the setup wizard, and enter your database details to finish.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion 

Installing WordPress with Apache on Ubuntu 24.04 sets up a reliable and secure website. Once installed, you can easily customize your site and manage content for blogs, portfolios, or online stores.