Install and Configure WordPress on AlmaLinux 9

This guide intends to teach you to Install and Configure WordPress on AlmaLinux 9.

A WordPress website is any website that uses WordPress as its content management system (CMS). WordPress powers both the backend of the website (the interface where a user logs in to make changes or add new content) and the frontend (the visible part of the website that your visitors see on the web).

Steps To Install and Configure WordPress on AlmaLinux 9

To complete this guide, you need some requirements.


You must log in to your server as a non-root user with sudo privileges and set up a basic firewall. To do this, you can follow our guide on Initial Server Setup with AlmaLinux 9.

Also, you need to have the LAMP Stack installed on your server. To do this, you can follow our article on Installing LAMP Stack on AlmaLinux 9.

Install Additional PHP Modules on AlmaLinux 9

Here we assumed that you are done with the requirements. First, you need to install the additional PHP extensions on AlmaLinux 9:

sudo dnf install php-{bz2,mysqli,curl,gd,intl,common,mbstring,xml}

Then, restart Apache to apply the changes:

sudo systemctl restart httpd

Create a WordPress Database and User

At this point, you need to create a user and database for your WordPress. To do this, log in to your MariaDB Shell with the command below:

sudo mysql -u root -p

From your MariaDB shell, run the following command to create a WordPress database, here we named it wordpressdb:

MariaDB [(none)]> CREATE DATABASE wordpressdb;

Next, use the command below to create a WordPress user and grant all privileges to it on AlmaLinux 9, here we named it wordpress_user and set a strong password for it:

MariaDB [(none)]> GRANT ALL PRIVILEGES ON wordpressdb.* TO 'wordpress_user'@'localhost' IDENTIFIED BY 'password';

Flush the privileges and exit from your MariaDB shell:

MariaDB [(none)]> EXIT;

Set up WordPress on AlmaLinux 9

At this point, you can download the latest tar.gz package of WordPress on AlmaLinux 9 with the following wget command:

sudo wget

When your download is completed, extract your file:

sudo tar -xzvf latest.tar.gz

Then, you need to move it to the webroot directory with the following command:

sudo mv wordpress/* /var/www/html/

Set the correct permissions for it:

sudo chown -R apache:apache /var/www/html/

Configure Firewall for WordPress

Now open ports 80 and 443 through the AlmaLinux 9 firewall with the following commands:

# sudo firewall-cmd --permanent --zone=public --add-service=http
# sudo firewall-cmd --permanent --zone=public --add-service=https

Reload the firewall to apply the new rules:

sudo systemctl reload firewalld

At this point, you can continue your WordPress installation and configure it on AlmaLinux 9 through the Web interface.

Access WordPress Web Interface

From here you can easily configure your WordPress through the web interface by  typing your server’s IP address in your web browser:


You will see the WordPress Language screen. Select your desired language and press Continue.

WordPress Language
WordPress Language

Then, you will see the Welcome WordPress screen. Read the contents and click Let’s Go.

After that, you need to enter the WordPress database information that you have created on AlmaLinux 9 and click submit.

WordPress database information
WordPress database information

Next, click Run the Installation and provide the information that is needed, and click Install WordPress.

Install WordPress
Install WordPress

Then, you will see the WordPress Login screen. Enter your username and password that you have generated in the previous step and click Sign-in.

Now you will see your WordPress dashboard.

WordPress dashboard AlmaLinux 9

That’s it, you are done.


At this point, you have learned to Install and Configure WordPress on AlmaLinux 9.

Hope you enjoy it. You may be like these articles on the Orcacore website:

Install and Use Podman on AlmaLinux 9

Install Nessus Scanner on AlmaLinux 9

  1. Keep up the wonderful work , I read few content on this site and I think that your blog is very interesting and contains sets of great info .

  2. This web-site is actually a walk-through you discover the data you desired in regards to this and didn’t know who must. Glimpse here, and you’ll certainly discover it.

  3. A person made some terrific factors right now there. Used to do any crusade on the subject and discovered nearly all people could have the identical notion along with your website. Many thanks! truly beneficial submit.

  4. After study a number of of the blog posts in your web site now, and I actually like your method of blogging. I bookmarked it to my bookmark website record and will be checking again soon. Pls take a look at my website as well and let me know what you think.

  5. It’s really a cool and useful piece of info. I’m glad that you shared this useful info with us. Please keep us informed like this. Thanks for sharing.

  6. Thank you pertaining to giving this excellent content on your web-site. I discovered it on google. I may check back again if you publish extra aricles.

  7. We wish to thank you once again for the gorgeous ideas you gave Jeremy when preparing a post-graduate research and, most importantly, pertaining to providing all of the ideas in a blog post. In case we had known of your website a year ago, we would have been saved the needless measures we were taking. Thank you very much.


Please enter your comment!
Please enter your name here

Latest Articles


Most Popular