{"id":1973,"date":"2019-01-08T22:24:11","date_gmt":"2019-01-08T19:24:11","guid":{"rendered":"http:\/\/kifarunix.com\/?p=1973"},"modified":"2019-11-29T08:40:25","modified_gmt":"2019-11-29T05:40:25","slug":"install-wordpress-5-0-with-apache-on-fedora-29-fedora-28","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-wordpress-5-0-with-apache-on-fedora-29-fedora-28\/","title":{"rendered":"Install WordPress 5.x with Apache on Fedora 29\/Fedora 28"},"content":{"rendered":"<p>So WordPress 5.0, code-named, &#8220;Bebo&#8221; has just been released and you are looking at installing it for building your blog? Worry not because we are bringing to you a guide on how to Install WordPress 5.x with Apache on Fedora 29\/Fedora 28.<\/p>\n<p>Fedora has made the installation of WordPress a very easy task. It provides by default pre-packaged softwares that ensures WordPress is installed with the least effort. Let us see how this is true.<\/p>\n<h2>Install WordPress 5.0 with Apache on Fedora 29\/Fedora 28<\/h2>\n<p>Update and upgrade your system packages<\/p>\n<pre>dnf update\ndnf upgrade<\/code><\/pre>\n<h3>Install LAMP Stack on Fedora 29\/Fedora 28<\/h3>\n<p>As usual, LAMP stack is required in order to run WordPress. Therefore, the command below will install LAMP stack and all the required PHP extensions.<\/p>\n<pre>dnf install @\"Web Server\" php-mysqlnd mariadb-server<\/code><\/pre>\n<p>The <code>@\"Web Server\"<\/code> package group installs Apache Web server and other required tools such as PHP and the required extensions. If you do not want to do this, you can install the normal packages one by one, Apache (httpd), MySQL\/MariaDB, PHP and other required extensions.<\/p>\n<p>We covered <a href=\"https:\/\/kifarunix.com\/how-to-install-lamp-linux-apache-mysql-php-stack-on-fedora-28-29\/\" target=\"_blank\" rel=\"noopener noreferrer\">how to install LAMP stack on Fedora 29\/Fedora 28<\/a> in our previous guide.<\/p>\n<h3>Install WordPress 5.x on Fedora 29\/Fedora 28<\/h3>\n<p>WordPress 5.0 is available on the default Fedora repositories.<\/p>\n<pre>dnf provides wordpress\nLast metadata expiration check: 0:06:16 ago on Tue 08 Jan 2019 09:05:02 PM EAT.\n<strong>wordpress-5.0.2-1.fc29.noarch<\/strong> : Blog tool and publishing platform\nRepo        : updates\nMatched from:\nProvide    : wordpress = 5.0.2-1.fc29<\/code><\/pre>\n<p>Hence, WordPress 5.x can be installed by running the command;<\/p>\n<pre>dnf install wordpress\n...\n===============================================================================================================================================================\n Package                                         Arch                           Version                                  Repository                       Size\n===============================================================================================================================================================\nInstalling:\n wordpress                                       noarch                        <strong> 5.0.2-1.fc29<\/strong>                             updates                         8.2 M<\/code><\/pre>\n<h3>Configure Apache Web Server<\/h3>\n<p>Allow Apache through firewall in case it is running on your system.<\/p>\n<pre>firewall-cmd --add-port=80\/tcp --permanent\nfirewall-cmd --reload<\/code><\/pre>\n<p>If SELinux is running, run the commands below to allow Apache to connect to database and send mail as well. You may want to put SELinux on a permissive mode or leave it enforcing if you are conversant with how it operates;<\/p>\n<pre>setsebool -P httpd_can_network_connect_db=1\nsetsebool -P httpd_can_sendmail=1<\/code><\/pre>\n<p>By default, Apache is set to deny WordPress remote access. Hence to allow this, open the configuration file, <code>\/etc\/httpd\/conf.d\/wordpress.conf<\/code> and replace the line, <code>Require local<\/code> with the line <code>Require all granted<\/code>.<\/p>\n<p>Start and enable Apache to run on system start.<\/p>\n<pre>systemctl start httpd\nsystemctl enable httpd<\/code><\/pre>\n<p>You can verify that Apache is ready to server your web content by navigation to the browser and entering your server IP address or the hostname. You should be able to see the default Fedora Apache web server page.<\/p>\n<p>Start and enable MySQL to run on system start up.<\/p>\n<pre>systemctl enable mariadb\nsystemctl start mariadb<\/code><\/pre>\n<p>Once that is done, run MySQL security script to set the root password, remove the test databases, remove anonymous users and disable remote root login.<\/p>\n<pre><strong>mysql_secure_installation<\/strong><\/code><\/pre>\n<pre>Enter current password for root (enter for none): Press <strong>ENTER<\/strong>\n...\nSet root password? [Y\/n] <strong>y<\/strong>\nNew password: <strong>STRONGPASSWORD<\/strong>\nRe-enter new password: <strong>STRONGPASSWORD<\/strong>\n...\nRemove anonymous users? [Y\/n] <strong>y<\/strong>\n...\nDisallow root login remotely? [Y\/n] <strong>y<\/strong>\n...\nRemove test database and access to it? [Y\/n] <strong>y<\/strong>\n...\nReload privilege tables now? [Y\/n] <strong>y<\/strong>\n<\/code><\/pre>\n<h3>Create WordPress 5.x Database<\/h3>\n<p>Login to MariaDB as root using the password set above.<\/p>\n<pre>mysql -u root -p<\/code><\/pre>\n<p>Then create a WordPress database.<\/p>\n<pre>create database testsite;<\/code><\/pre>\n<p>You can simply run the command below to create the database straight from the terminal.<\/p>\n<pre>mysqladmin create testsite -u root -p<\/code><\/pre>\n<p>Create Database user with all the privileges granted. After that, reload grant tables and quit.<\/p>\n<pre>grant all privileges on testsite.* to testadmin@localhost identified by 'P@SSWORD';\nflush privileges;\nquit<\/code><\/pre>\n<h3>Configure WordPress 5.0<\/h3>\n<p>Open the WordPress configuration file, <code>\/etc\/wordpress\/wp-config.php<\/code>, and configure database connection details.<\/p>\n<pre>vim \/etc\/wordpress\/wp-config.php<\/code><\/pre>\n<pre>...\n\/\/ ** MySQL settings - You can get this info from your web host ** \/\/\n\/** The name of the database for WordPress *\/\ndefine('DB_NAME', '<strong>testsite<\/strong>');\n\n\/** MySQL database username *\/\ndefine('DB_USER', '<strong>testadmin<\/strong>');\n\n\/** MySQL database password *\/\ndefine('DB_PASSWORD', '<strong>P@SSWORD<\/strong>');\n...<\/code><\/pre>\n<p>Save the configuration file and restart the Apache web server.<\/p>\n<pre>systemctl restart httpd<\/code><\/pre>\n<p>To access, navigate to the address bar on your browser and type the URL of your WordPress like, <code>http:\/\/server_IP\/wordpress<\/code>.<\/p>\n<p><a href=\"http:\/\/kifarunix.com\/wp-content\/uploads\/2019\/01\/WordPress-5.0-final-setup.png.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1977\" src=\"http:\/\/kifarunix.com\/wp-content\/uploads\/2019\/01\/WordPress-5.0-final-setup.png.png\" alt=\"Install WordPress 5.0 with Apache on Fedora 29\/Fedora 28\" width=\"1069\" height=\"946\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/01\/WordPress-5.0-final-setup.png.png 1069w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/01\/WordPress-5.0-final-setup.png-768x680.png 768w\" sizes=\"(max-width: 1069px) 100vw, 1069px\" \/><\/a><\/p>\n<p>Perform the necessary configurations to finalize on WordPress 5.0 installation on Fedora 29\/Fedora 28. After that, login to WordPress dashboard.<\/p>\n<p><a href=\"http:\/\/kifarunix.com\/wp-content\/uploads\/2019\/01\/WordPress-5.0-dashabord.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1978\" src=\"http:\/\/kifarunix.com\/wp-content\/uploads\/2019\/01\/WordPress-5.0-dashabord.png\" alt=\"Install WordPress 5.0 with Apache on Fedora 29\/Fedora 28\" width=\"1426\" height=\"814\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/01\/WordPress-5.0-dashabord.png 1426w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/01\/WordPress-5.0-dashabord-768x438.png 768w\" sizes=\"(max-width: 1426px) 100vw, 1426px\" \/><\/a><\/p>\n<p>Magnificent!!! That is all it takes to install WordPress 5.0 with Apache on Fedora 29\/Fedora 28. We hope this was informative.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So WordPress 5.0, code-named, &#8220;Bebo&#8221; has just been released and you are looking at installing it for building your blog? Worry not because we are<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[289,293],"class_list":["post-1973","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-fedora-29","tag-wordpress-5-0","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1973"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=1973"}],"version-history":[{"count":7,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1973\/revisions"}],"predecessor-version":[{"id":4708,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1973\/revisions\/4708"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=1973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=1973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=1973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}