{"id":21,"date":"2021-02-18T23:09:02","date_gmt":"2021-02-19T04:09:02","guid":{"rendered":"https:\/\/www.tocobee.com\/?p=21"},"modified":"2021-02-19T20:31:20","modified_gmt":"2021-02-20T01:31:20","slug":"install-wordpress-in-lamp-ubuntu20-04-apache-mariadb-php8-0","status":"publish","type":"post","link":"https:\/\/www.tocobee.com\/?p=21","title":{"rendered":"Install wordpress in LAMP Ubuntu20.04, Apache,  mariadb,  php8.0"},"content":{"rendered":"<p>Moving to this new server, everything has to be installed from scratch<br \/>\nSince we have to install a new version, we installed 20.04 for ubuntu.<br \/>\nAs always, security is the most important thing, so we installed CSF and fail2ban first.<br \/>\nThen we installed apache, php8, and mariadb with apt-get.<br \/>\nThe next step was to upload wordpress to the installation.<br \/>\nI didn&#8217;t expect to see &#8220;Your PHP installation appears to be missing the MySQL extension which is required by WordPress.&#8221; and not allowed me to install. I was dumbfounded.<br \/>\nIs it because the PHP version too new? I found out later that I had not installed the php extension.<br \/>\nI added it as below command and it was fine.<\/p>\n<p>sudo apt install php8.0-snmp php-memcached php8.0-mysql<\/p>\n<p>Oaky, I&#8217;m going to go ahead and install the mail server later&#8230; It&#8217;s tiring<\/p>\n<p>&nbsp;<\/p>\n<p>\u79fb\u5230\u9019\u500b\u65b0\u7684server, \u4e00\u5207\u8981\u5f9e\u982d\u88dd\u8d77<br \/>\n\u65e2\u7136\u8981\u88dd\u5c31\u88dd\u65b0\u7248\u672c, \u6240\u4ee5ubuntu\u5c31\u88dd20.04.<br \/>\n\u548c\u5f80\u5e38\u4e00\u6a23\u4fdd\u5168\u6700\u91cd\u8981, \u6240\u4ee5\u5148\u88dd\u4e86CSF\u548cfail2ban.<br \/>\n\u63a5\u8457\u7528apt-get \u88ddapache, php8, \u548cmariadb.<br \/>\n\u4e0b\u4e00\u6b65\u5c31\u628awordpress \u50b3\u9001\u4e0a\u53bb\u5b89\u88dd.<br \/>\n\u6c92\u60f3\u5230\u7adf\u7136\u51fa\u73fe &#8220;Your PHP installation appears to be missing the MySQL extension which is required by WordPress.&#8221; \u4e0d\u7d66\u88dd. \u7576\u5834\u50bb\u4e86. \u96e3\u9053\u662fPHP\u7248\u672c\u592a\u65b0\u7684\u95dc\u4fc2? \u5f8c\u4f86\u624d\u767c\u73fe\u5c11\u88dd\u4e86 php extension.<br \/>\n\u7528\u4e0b\u9762\u9019\u884c\u52a0\u4e86\u5c31\u597d\u4e86.<\/p>\n<p>sudo apt install php8.0-snmp php-memcached php8.0-mysql<\/p>\n<p>\u597d\u4e86, \u6211\u8981\u7e7c\u7e8c\u88dd\u4e86, \u7b49\u4e0b\u9084\u8981\u88dd\u90f5\u4ef6\u4f3a\u670d\u5668&#8230;\u771f\u7d2f\u4eba<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moving to this new server, everything has to be installed from scratch Since we have to install a new version, we installed 20.04 for ubuntu. As always, security is the most important thing, so we installed CSF and fail2ban first. Then we installed apache, php8, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":1,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/www.tocobee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}