{"id":1,"date":"2020-05-19T21:40:28","date_gmt":"2020-05-19T21:40:28","guid":{"rendered":"http:\/\/10.10.18.8\/wordpress\/?p=1"},"modified":"2020-05-22T12:38:27","modified_gmt":"2020-05-22T19:38:27","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=1","title":{"rendered":"How to install WordPress on RHEL 8 \/ CentOS 8 Linux"},"content":{"rendered":"\n<p>Based on the thread from Lubos Rendek.<\/p>\n\n\n\n<p><a href=\"https:\/\/linuxconfig.org\/install-wordpress-on-redhat-8\">https:\/\/linuxconfig.org\/install-wordpress-on-redhat-8<\/a><\/p>\n\n\n\n<p>This article covers an installation of WordPress, free and open-source content management system, on RHEL 8 Linux Server. In this instance the installation is based on the well-know&nbsp;<a href=\"https:\/\/linuxconfig.org\/how-to-install-lamp-on-redhat-8\" target=\"_blank\" rel=\"noreferrer noopener\">LAMP stack<\/a>&nbsp;comprising the RHEL 8, MariaDB, PHP and Apache webserver.<br><br><strong>In this tutorial you will learn:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>How to Install LAMP Stack on RHEL 8 \/ CentOS 8.<\/li><li>How to configure MariaDB database.<\/li><li>How to install WordPress on RHEL 8 \/ CentOS 8.<\/li><li>How to open&nbsp;<a href=\"https:\/\/linuxconfig.org\/redhat-8-open-http-port-80-and-https-port-443-with-firewalld\" target=\"_blank\" rel=\"noreferrer noopener\">HTTP and HTTPS firewall ports<\/a>.<\/li><\/ul>\n\n\n\n<p><a href=\"https:\/\/linuxconfig.org\/images\/07-how-to-install-wordpress-rhel8-linux.png\"><\/a><\/p>\n\n\n\n<p>Installed WordPress on Red Hat Enterprise Linux 8 Server\/Workstation.<\/p>\n\n\n\n<p><strong>Software Requirements and Conventions Used<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><em>Software Requirements and Linux Command Line Conventions<\/em><\/td><\/tr><tr><td><strong>Category<\/strong><strong><\/strong><\/td><td><strong>Requirements, Conventions or Software Version Used<\/strong><strong><\/strong><\/td><\/tr><\/thead><tbody><tr><td><strong>System<\/strong><strong><\/strong><\/td><td>RHEL 8 \/ CentOS 8<\/td><\/tr><tr><td><strong>Software<\/strong><\/td><td>MariaDB Server 10.3.10, PHP 7.2.11-1, Apache\/2.4.35 (Red Hat Enterprise Linux)<\/td><\/tr><tr><td><strong>Other<\/strong><strong><\/strong><\/td><td>Privileged access to your Linux system as root or via the&nbsp;sudo&nbsp;command.<\/td><\/tr><tr><td><strong>Conventions<\/strong><\/td><td><strong>#<\/strong>&nbsp;&#8211; requires given&nbsp;<a href=\"https:\/\/linuxconfig.org\/linux-commands\" target=\"_blank\" rel=\"noreferrer noopener\">linux commands<\/a>&nbsp;to be executed with root privileges either directly as a root user or by use of&nbsp;sudo&nbsp;command<br><strong>$<\/strong>&nbsp;&#8211; requires given&nbsp;<a href=\"https:\/\/linuxconfig.org\/linux-commands\" target=\"_blank\" rel=\"noreferrer noopener\">linux commands<\/a>&nbsp;to be executed as a regular non-privileged user<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>How to install WordPress on RHEL 8 \/ CentOS 8 Linux step by step instructions<\/strong><\/p>\n\n\n\n<p>The following command will install all prerequisites and tools required to perform the WordPress installation:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li># dnf makecache<\/li><li># dnf install php-mysqlnd php-fpm mariadb-server httpd tar curl php-json<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Open HTTP and optionally HTTPS&nbsp;<a href=\"https:\/\/linuxconfig.org\/redhat-8-open-http-port-80-and-https-port-443-with-firewalld\" target=\"_Blank\" rel=\"noreferrer noopener\">port 80 and 443 on your firewall<\/a>:<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li># firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-service=http<\/li><li># firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-service=https<\/li><li># firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-port=3306\/tcp<\/li><li># firewall-cmd &#8211;reload<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Start both the Apache webserver and the&nbsp;<a href=\"https:\/\/linuxconfig.org\/how-to-install-mysql-on-redhat-8\" target=\"_blank\" rel=\"noreferrer noopener\">MariaDB<\/a>&nbsp;services:<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li># systemctl start mariadb<\/li><li># systemctl start httpd<\/li><\/ol>\n\n\n\n<p>Enable MariaDB and httpd to start after system reboot:<\/p>\n\n\n\n<p># systemctl enable mariadb<\/p>\n\n\n\n<p># systemctl enable httpd<\/p>\n\n\n\n<p>(Optional) Secure your MariaDB installation and set root password:<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li># mysql_secure_installation<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Create a new database&nbsp;wordpress&nbsp;and give new user&nbsp;admin&nbsp;access to the&nbsp;wordpress&nbsp;database with password&nbsp;pass:<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li># mysql -u root -p<\/li><li>mysql&gt; CREATE DATABASE wordpress;<\/li><li>mysql&gt; CREATE USER `admin`@`localhost` IDENTIFIED BY &#8216;Password&#8217;;<\/li><li>mysql&gt; GRANT ALL ON wordpress.* TO `admin`@`localhost`;<\/li><li>mysql&gt; FLUSH PRIVILEGES;<\/li><li>mysql&gt; exit<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Download and extract WordPress. Start by downloading the WordPress installation package and extracting its content:<\/li><li>$ curl https:\/\/wordpress.org\/latest.tar.gz &#8211;output wordpress.tar.gz<\/li><li>$ tar -xzvf wordpress.tar.gz<\/li><\/ul>\n\n\n\n<p>Copy the extracted WordPress directory into the&nbsp;\/var\/www\/html&nbsp;directory:<\/p>\n\n\n\n<p># cp -r wordpress \/var\/www\/html<\/p>\n\n\n\n<p>Lastly in this step, change permissions and change file SELinux security context:<\/p>\n\n\n\n<p># chown -R apache:apache \/var\/www\/html\/wordpress<\/p>\n\n\n\n<p># chcon -t httpd_sys_rw_content_t \/var\/www\/html\/wordpress -R<\/p>\n\n\n\n<p>Access WordPress installation wizard and perform the actual WordPress installation. Navigate your browser to&nbsp;http:\/\/localhost\/wordpress&nbsp;or&nbsp;http:\/\/SERVER-HOST-NAME\/wordpress&nbsp;and follow the instructions.<a href=\"https:\/\/linuxconfig.org\/images\/01-how-to-install-wordpress-rhel8-linux.png\"><\/a><\/p>\n\n\n\n<p>Enter previously configured database details as per&nbsp;Step 5.<a href=\"https:\/\/linuxconfig.org\/images\/02-how-to-install-wordpress-rhel8-linux.png\"><\/a><\/p>\n\n\n\n<p>Start WordPress installation by clicking on the&nbsp;Run the installation&nbsp;button.<a href=\"https:\/\/linuxconfig.org\/images\/03-how-to-install-wordpress-rhel8-linux.png\"><\/a><\/p>\n\n\n\n<p>Provide the requested information by the WordPress wizard.<a href=\"https:\/\/linuxconfig.org\/images\/04-how-to-install-wordpress-rhel8-linux.png\"><\/a><\/p>\n\n\n\n<p>This screen will show once the WordPress installation was successful.<a href=\"https:\/\/linuxconfig.org\/images\/05-how-to-install-wordpress-rhel8-linux.png\"><\/a><\/p>\n\n\n\n<p>Login with your new user credentials.<a href=\"https:\/\/linuxconfig.org\/images\/06-how-to-install-wordpress-rhel8-linux.png\"><\/a><\/p>\n\n\n\n<p>WordPress admin back-end. All done.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Based on the thread from Lubos Rendek. https:\/\/linuxconfig.org\/install-wordpress-on-redhat-8 This article covers an installation of WordPress, free and open-source content management system, on RHEL 8 Linux Server. In this instance the installation is based on the well-know&nbsp;LAMP stack&nbsp;comprising the RHEL 8, MariaDB, PHP and Apache webserver. In this tutorial you will learn: How to Install LAMP <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=1\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1"}],"version-history":[{"count":0,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}