{"id":5498,"date":"2020-06-16T17:49:57","date_gmt":"2020-06-16T17:49:57","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=5498"},"modified":"2020-06-16T17:49:57","modified_gmt":"2020-06-16T17:49:57","slug":"lamp-script-for-centos-8","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2020\/06\/16\/lamp-script-for-centos-8\/","title":{"rendered":"Lamp script for CentOS 8"},"content":{"rendered":"<p>Here is a simple lamp install script for CentOS 8.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#!\/bin\/bash\n#update system\ndnf update\n#install apache\ndnf install httpd httpd-tools -y\nsystemctl enable httpd\nsystemctl start httpd\nsystemctl status httpd\n#update firewall\nfirewall-cmd --permanent --zone=public --add-service=http\nfirewall-cmd --permanent --zone=public --add-service=https\nfirewall-cmd --reload\n#install mariadb\ndnf install mariadb-server mariadb -y\nsystemctl start mariadb\nsystemctl enable mariadb\nsystemctl status mariadb\nmysql_secure_installation\n# Install PHP 7 on CentOS 8\ndnf install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm\n#dnf install dnf-utils http:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm\n#dnf module list php\ndnf install php php-opcache php-gd php-curl php-mysqlnd -y\nsystemctl start php-fpm\nsystemctl enable php-fpm\nsystemctl status php-fpm\nsetsebool -P httpd_execmem 1\nsystemctl restart httpd\n<\/pre>\n<p>Check the installation<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# nano \/var\/www\/html\/info.php\n<\/pre>\n<p>Insert the PHP code below and save the file.<\/p>\n<pre lang=\"php\">\n<?php\n phpinfo ();\n?><br \/>\n[\/bash]<br \/>\nThen head out to your browser, and type the URL below. Remember to replace the server IP address with your server\u2019s actual IP address.<\/p>\n<p>http:\/\/server-ip-address\/info.php<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a simple lamp install script for CentOS 8. #!\/bin\/bash #update system dnf update #install apache dnf install httpd httpd-tools -y systemctl enable httpd systemctl start httpd systemctl status httpd #update firewall firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-service=http firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-service=https firewall-cmd &#8211;reload #install mariadb dnf install mariadb-server mariadb -y systemctl start mariadb systemctl enable &#8230; <a title=\"Lamp script for CentOS 8\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2020\/06\/16\/lamp-script-for-centos-8\/\" aria-label=\"Read more about Lamp script for CentOS 8\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,70,84],"tags":[],"class_list":["post-5498","post","type-post","status-publish","format-standard","hentry","category-apache","category-mysql","category-php"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=5498"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5498\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=5498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=5498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=5498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}