Install WordPress in Rocky Linux 9
Initially, it’s required to install the “wget” command to download, extract, move, and set specific permissions for WordPress files by running the following commands.
yum install wget
Download the latest version of WordPress and make sure you put the “latest.tar.gz” at the ending (at this time the latest version of WordPress is 6.5.2):
wget https://wordpress.org/latest.tar.gz
Extract the downloaded files:
tar -xzvf latest.tar.gz
It’s required to move WordPress files to the Apache web server’s root directory, despite it allowing the webserver to serve the WordPress site correctly when users access it through a web browser:
cp -r wordpress/* /var/www/html/
Set the specific permissions for WordPress files, and verify the “html” directory permissions via the “ls” and “grep” commands:
chown -R apache:apache /var/www/html/
chmod -R 755 /var/www/html/
ls -l /var/www | grep html
How To Install WordPress On Rocky Linux 9
WordPress is widely recognized as the preferred platform for building websites and blogs due to its ease of use and wide range of customization features. Suppose you’re considering installing WordPress on Rocky Linux, an open-source operating system known for its reliability. In that case, you’ll find the process to be quite straightforward when coupled with the LAMP stack – Linux, Apache, MySQL, and PHP. In the following article, we will guide you through each step of setting up WordPress on Rocky Linux using LAMP, allowing you to get your website or blog up and running smoothly in no time. So, let’s dive into the process!
Install WordPress On Rocky Linux 9
- Step 1: Update Your System in Rocky Linux
- Step 2: Installation process of LAMP
- Step 3: Install WordPress in Rocky Linux 9
- Step 4: Configuration of Database
- Step 5: Configuration of WordPress
- Step 6: Configuration of Firewall settings
- Step 7: Log in to WordPress