Share your love
Install and Configure WordPress on Rocky Linux 9 – Best Setup
In this guide, we want to show you how to Install and Configure WordPress on Rocky Linux 9. WordPress is web publishing software you can use to create your website or blog. WordPress enables you to build and manage your full-featured website using your web browser—without learning how to code. If you’ve ever used a text editor like Microsoft Word, you’ll be at home with the WordPress Editor.
You can now follow the steps below provided by the Orcacore team to Install and Configure WordPress on Rocky Linux 9.
Table of Contents
Steps To Install and Configure WordPress on Rocky Linux 9
To Install and Configure WordPress on Rocky Linux 9, you need some requirements. Let’s see what we need first.
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 Rocky Linux 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 Rocky Linux 9.
Install Additional PHP Modules on Rocky Linux 9
Here we assumed that you are done with the requirements. First, you need to install the additional PHP extensions on Rocky Linux 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 Rocky Linux 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)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Set up WordPress on Rocky Linux 9
At this point, you can download the latest tar.gz package of WordPress on Rocky Linux 9 with the following wget command:
sudo wget http://WordPress.org/latest.tar.gz
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 Rocky Linux 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 Rocky Linux 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:
http://server-ip-address
You will see the WordPress Language screen. Select your desired language and press Continue.
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 Rocky Linux 9 and click submit.
Next, click Run the Installation and provide the information that is needed, and click 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.
That’s it, you are done. As you saw, you can easily Install and Configure WordPress on Rocky Linux 9.
Conclusion
If you’re looking for an easy tool that will help you build your blog or website without learning how to code, no other software makes it this easy. And, you’ll find that WordPress is incredibly flexible, with thousands of themes, plugins, and support options to ensure that your site will continue to grow with you in the future.
At this point, you have learned to Install and Configure WordPress on Rocky Linux 9.
Hope you enjoy it. You may like these articles:
Install Django on Rocky Linux 9
Set up Siege Stress Tester on AlmaLinux 9
FAQs
What are the prerequisites for installing WordPress on Rocky Linux 9?
You need to set up a LAMP stack and a non-root user with sudo privileges.
Which PHP modules are required for WordPress?
Modules like bz2, mysqli, curl, gd, intl, mbstring, and xml are necessary.
How can I access the WordPress setup page?
Enter your server’s IP in a web browser after configuring the firewall. You can use the full setup in the above guide on Install and Configure WordPress on Rocky Linux 9.
Thanks a lot for post. I have a question.
Can I use this steps for Almalinux 8?
Hello dear. We glad to help you.
yes you can use it with some different.
But on Orcacore you can search install WordPress on AlmaLinux 8, and we published an article about it
Frequently We do not set up upon weblogs, however i would like to say that this set up truly forced me personally to do this! seriously great publish
very very much thanks, your really explain all steps Completely
your welcome, We glad to help you.