{"id":620,"date":"2019-11-01T01:58:23","date_gmt":"2019-11-01T01:58:23","guid":{"rendered":"https:\/\/jandmf.com\/?p=620"},"modified":"2020-05-13T12:11:02","modified_gmt":"2020-05-13T02:11:02","slug":"lamp-wordpress","status":"publish","type":"post","link":"https:\/\/jandmf.com\/index.php\/2019\/11\/01\/lamp-wordpress\/","title":{"rendered":"LAMP + WordPress"},"content":{"rendered":"<p>This is not intended to be a complete HOWTO for Linux (Raspbian), Apache2, PHP, MySQL and\u00a0 WordPress on a Raspberry Pi 4 4GB. What it is supposed to be is a guide that demonstrates that it is easy to get LAMP + WordPress going on a Pi with some links to the documentation that I used.<\/p>\n<p>Assuming you&#8217;ve got your Pi and possibly some external storage it&#8217;s important to plan out what you&#8217;re trying to accomplish and how you want to go about it.<\/p>\n<p>So, I had a 4GB Pi4 as well as a Sandisk Extreme external SSD. First step was to get the latest Raspbian (Buster) in an SD card and booting. Once that was accomplished I installed Apache2 and got that working properly. MySQL \/ MariaDB was the next cab off the rank followed by PHP and php-mysql.<\/p>\n<p>After each step it&#8217;s a damn good idea to make good and sure that what you&#8217;ve just installed works properly.<\/p>\n<p>Downloading and installing WordPress was quite possibly the easiest part of the whole process.<\/p>\n<p>For each of the LAMP components there is a heap of available documentation available &#8211; remember that Google is your friend. The <a href=\"https:\/\/www.raspberrypi.org\/forums\/\" target=\"_blank\" rel=\"noopener noreferrer\">Raspberry Pi Forums<\/a> are a brilliant resource. The <a href=\"https:\/\/mariadb.com\/kb\/en\/library\/documentation\/\" target=\"_blank\" rel=\"noopener noreferrer\">MariaDB documentation<\/a> is comprehensive to say the least as is the <a href=\"\/\/www.php.net\/docs.php\" target=\"_blank\" rel=\"noopener noreferrer\">PHP documentation.<\/a> There is more <a href=\"https:\/\/codex.wordpress.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress<\/a> documentation than any mortal could ever want.<\/p>\n<p>So, the steps I followed were :-<\/p>\n<ol>\n<li>Get Raspbian working.<\/li>\n<li>Download, install and get Apache2 working.<\/li>\n<li>If you are going to get SSL working this is when you&#8217;d do. I decided not to and just skipped it.<\/li>\n<li>Download and get MariaDB installed and working.<\/li>\n<li>Get PHP and php-mysql downloaded, installed and working.<\/li>\n<li>Get the latest version of WordPress downloaded and installed.<\/li>\n<li>In MySQL reate the WordPress user and the WordPress database.<\/li>\n<li>Set up the privileges for the user.<\/li>\n<li>Configuring WordPress is pretty trivial IF you follow the WordPress procedures.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=63&amp;t=265177\" target=\"_blank\" rel=\"noopener\">This <\/a>is a much more complete HOWTO.<\/p>\n<p>Once I got it all working I set about getting all my stuff over from an ISP&#8217;s server. Lots of copying and pasting is all it took.<\/p>\n<p>Once I got it all over I started messing around with WordPress themes and layouts. The choices are bewildering and the theme and layout of this site is a &#8220;first attempt mess&#8221; which I&#8217;ll refine as I work out what I want and how to get there.<\/p>\n<p>At this point I decided that a 32GB SD card probably wouldn&#8217;t be enough so I decided to press a Sandisk Extreme 500GB SSD into service. I found a great HOWTO on the\u00a0 <a href=\"https:\/\/www.raspberrypi.org\/forums\/\" target=\"_blank\" rel=\"noopener noreferrer\">Raspberry Pi Forums<\/a> and it worked first time. I&#8217;ll put that procedure into another post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is not intended to be a complete HOWTO for Linux (Raspbian), Apache2, PHP, MySQL and\u00a0 WordPress on a Raspberry Pi 4 4GB. What it is supposed to be is a guide that demonstrates that it is easy to get LAMP + WordPress going on a Pi with some links to the documentation that I &hellip; <a href=\"https:\/\/jandmf.com\/index.php\/2019\/11\/01\/lamp-wordpress\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;LAMP + WordPress&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[],"class_list":["post-620","post","type-post","status-publish","format-standard","hentry","category-pi"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/comments?post=620"}],"version-history":[{"count":13,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/620\/revisions"}],"predecessor-version":[{"id":2262,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/620\/revisions\/2262"}],"wp:attachment":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/media?parent=620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/categories?post=620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/tags?post=620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}