{"id":2839,"date":"2019-05-05T21:23:52","date_gmt":"2019-05-05T18:23:52","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2839"},"modified":"2019-06-24T15:36:23","modified_gmt":"2019-06-24T12:36:23","slug":"install-lamp-stack-on-fedora-30","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-lamp-stack-on-fedora-30\/","title":{"rendered":"Install LAMP Stack on Fedora 30"},"content":{"rendered":"\n<p>This tutorial will guide you on how to install LAMP stack on Fedora 30. Just as you already know, LAMP stack is an acronym of four open-source components; Linux the operating system, Apache the web server, MySQL\/MariaDB the relational database management system and PHP the object-oriented scripting language.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install LAMP Stack on Fedora 30<\/h2>\n\n\n\n<p>To get LAMP stack on Fedora 30 up and running, you need to install all the four components.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Linux OS (Fedora 30 server)<\/h3>\n\n\n\n<p>The first component is the Linux operating system which in this case is the Fedora 30 server. Hence, this guide assumes that you already installed your Fedora 30 server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Apache HTTP server on Fedora 30<\/h3>\n\n\n\n<p>Once you have your Fedora 30 server up and running, proceed to install Apache HTTP server. We have already covered the installation of Apache Web server on Fedora 30 in our previous guide.<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-apache-on-fedora-30\/\" target=\"_blank\">Install Apache HTTP server on Fedora 30<\/a><\/p>\n\n\n\n<p>Once you have Apache HTTP server running, proceed with the installation of the next component of LAMP stack, MySQL or MariaDB.<\/p>\n\n\n\n<p>Want to use Nginx instead? See the link below on installation of Nginx.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-nginx-web-server-on-fedora-30\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Nginx Web Server on Fedora 30<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install MariaDB on Fedora 30<\/h3>\n\n\n\n<p>The next step is to install MySQL or MariaDB the relational database management system. Hence see our guide on how to install MariaDB 10.3 on Fedora 30 by following the link below;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-mariadb-10-3-on-fedora-30\/\" target=\"_blank\">Install MariaDB 10.3 on Fedora 30<\/a><\/p>\n\n\n\n<p>You can as well use MySQL 8 instead.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-mysql-8-on-fedora-30-fedora-29\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install MySQL 8 on Fedora 30\/Fedora 29<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install PHP on Fedora 30<\/h3>\n\n\n\n<p>PHP the web scripting language is the last component of the LAMP stack. We have covered the installation of PHP 7.3.4 on Fedora 30. See the link below;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-php-7-3-4-on-fedora-30\/\" target=\"_blank\">Install PHP 7.3.4 on Fedora 30<\/a><\/p>\n\n\n\n<p>Well, you also need to install other PHP modules such as <strong>php-mysqlnd<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install php-mysqlnd<\/code><\/pre>\n\n\n\n<p>If you need other PHP modules, you can always search them and install them;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf search php-<\/code><\/pre>\n\n\n\n<p>Install PHP extension;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install php-&lt;extension-name&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Testing PHP<\/h3>\n\n\n\n<p>This can be done by creating a simple PHP test page on the default Apache web root directory with the content shown below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/var\/www\/html\/info.php<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>&lt;?php\nphpinfo();\n?&gt;<\/code><\/pre>\n\n\n\n<p>Restart Apache web server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart httpd<\/code><\/pre>\n\n\n\n<p>Next, navigate to the browser and access PHP test page via <strong>http:\/\/&lt;server-ip&gt;\/info.php<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/php-test-page.png\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"681\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/php-test-page.png\" alt=\"install LAMP stack on Fedora 30\" class=\"wp-image-2843\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/php-test-page.png 935w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/php-test-page-768x559.png 768w\" sizes=\"(max-width: 935px) 100vw, 935px\" \/><\/a><\/figure>\n\n\n\n<p>Great. You have successfully Setup LAMP stack on Fedora 30.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will guide you on how to install LAMP stack on Fedora 30. Just as you already know, LAMP stack is an acronym of<\/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":[201],"tags":[202,924,204,136,203],"class_list":["post-2839","post","type-post","status-publish","format-standard","hentry","category-lamp-stack","tag-apache","tag-fedora-30","tag-lamp-stack","tag-mariadb","tag-php","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2839"}],"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=2839"}],"version-history":[{"count":5,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2839\/revisions"}],"predecessor-version":[{"id":3403,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2839\/revisions\/3403"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}