{"id":2782,"date":"2024-07-15T00:19:19","date_gmt":"2024-07-14T22:19:19","guid":{"rendered":"https:\/\/itsimple.info\/?p=2782"},"modified":"2024-07-15T00:20:02","modified_gmt":"2024-07-14T22:20:02","slug":"how-to-install-wordpress-on-rocky-linux","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=2782","title":{"rendered":"How to install WordPress on Rocky Linux"},"content":{"rendered":"\n<p>To install WordPress on Rocky Linux 9, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Update System Packages<\/strong>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo dnf update -y<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li><strong>Install Apache<\/strong>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo dnf install httpd -y\n   sudo systemctl start httpd\n   sudo systemctl enable httpd<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li><strong>Install MariaDB<\/strong>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo dnf install mariadb-server mariadb -y\n   sudo systemctl start mariadb\n   sudo systemctl enable mariadb\n   sudo mysql_secure_installation<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Install PHP<\/strong>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo dnf install php php-mysqlnd php-fpm -y\n   sudo systemctl restart httpd<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li><strong>Download WordPress<\/strong>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   cd \/var\/www\/html\n   sudo wget https:\/\/wordpress.org\/latest.tar.gz\n   sudo tar -xzvf latest.tar.gz\n   sudo chown -R apache:apache wordpress\n   sudo chmod -R 755 wordpress<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\">\n<li><strong>Create WordPress Database<\/strong>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo mysql -u root -p\n   CREATE DATABASE wordpress;\n   CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'password';\n   GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';\n   FLUSH PRIVILEGES;\n   EXIT;<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li><strong>Configure Apache<\/strong>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo vi \/etc\/httpd\/conf.d\/wordpress.conf<\/code><\/pre>\n\n\n\n<p>Add the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   <VirtualHost *:80>\n       ServerAdmin admin@example.com\n       DocumentRoot \/var\/www\/html\/wordpress\n       ServerName example.com\n       <Directory \/var\/www\/html\/wordpress\/>\n           Options FollowSymLinks\n           AllowOverride All\n           Require all granted\n       <\/Directory>\n       ErrorLog \/var\/log\/httpd\/wordpress_error.log\n       CustomLog \/var\/log\/httpd\/wordpress_access.log combined\n   <\/VirtualHost><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo systemctl restart httpd<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li><strong>Finalize Installation<\/strong>:<br>Open your browser and navigate to <code>http:\/\/your_server_IP\/wordpress<\/code> to complete the WordPress setup.<\/li>\n<\/ol>\n\n\n\n<p>For more details, refer to the full guide on <a href=\"https:\/\/www.geeksforgeeks.org\/how-to-install-wordpress-on-rocky-linux-9\/\">GeeksforGeeks<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-pullquote has-vivid-green-cyan-color has-text-color has-link-color has-large-font-size wp-elements-913a8d28a4fab8f1d7b7023910a23e04\"><blockquote><p>Good Luck<\/p><\/blockquote><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>To install WordPress on Rocky Linux 9, follow these steps: Add the following: For more details, refer to the full guide on GeeksforGeeks. Good Luck<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,13,21,4,12],"tags":[],"class_list":["post-2782","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","category-operating-systems","category-tech","category-tutorials"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2782"}],"version-history":[{"count":1,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2782\/revisions"}],"predecessor-version":[{"id":2783,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2782\/revisions\/2783"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}