{"id":121,"date":"2024-05-04T23:46:35","date_gmt":"2024-05-05T05:46:35","guid":{"rendered":"https:\/\/www.redshirt1701.com\/?p=121"},"modified":"2024-07-01T22:07:11","modified_gmt":"2024-07-02T04:07:11","slug":"putting-wordpress-on-a-pi-debian-or-ubuntu-server","status":"publish","type":"post","link":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/","title":{"rendered":"Install WordPress on a Pi, Debian, or Ubuntu server"},"content":{"rendered":"\n<p>You can create a WordPress site in a Virtual Machine and Make a Template of It!<\/p>\n\n\n\n<p>Setting up WordPress can be straight forward, and it can be confusing.&nbsp; This depends on the guide, &amp; the depths that you go to when setting it up.<\/p>\n\n\n\n<p>These are the two sets of guides I referenced in setting up WordPress on my Pimox.&nbsp; I like referencing multiple guides.&nbsp; They all leave something out, add something extra in, etc. Multiple guides help me understand what is going on and maybe finding a feature in one guide that I can&#8217;t find in the other guides.<\/p>\n\n\n\n<p>I say sets of guides because WordPress runs on a Linux, Apache, MySQL Python stack or LAMP stack.&nbsp; With these guides you get to setup the Apache web server &amp; Python first, MySQL second and WordPress third.<\/p>\n\n\n\n<p>Once I get a working VM, just before configuration while the slate is still clean, I create a VM template or&nbsp;image of the sd card before moving on.&nbsp; That way I only have to set it up once.<\/p>\n\n\n\n<p><strong>Resources<\/strong>:<\/p>\n\n\n\n<p>Building an Apache Web Server with php &#8211; <a href=\"https:\/\/pimylifeup.com\/raspberry-pi-apache\/\">https:\/\/pimylifeup.com\/raspberry-pi-apache\/<\/a><\/p>\n\n\n\n<p>Skip testing php, if you want<br>Skip setting up an Apache Virtual Host.&nbsp; It creates a virtual host you have to learn how to get rid of later.<\/p>\n\n\n\n<p>Adding sql <a href=\"https:\/\/pimylifeup.com\/raspberry-pi-mysql\/\">https:\/\/pimylifeup.com\/raspberry-pi-mysql\/<\/a><\/p>\n\n\n\n<p>Skip adding a user and table, we will do that with the WordPress tutorial.<\/p>\n\n\n\n<p>Finally, putting WordPress on top of the stack using the <a href=\"https:\/\/pimylifeup.com\/raspberry-pi-wordpress\">Pi My Life Up WordPress Guide<\/a><\/p>\n\n\n\n<p>There are a couple big banks of code you can grab and run as a batch.&nbsp; The first time I like to grab each command separately and watch what it does.<\/p>\n\n\n\n<p>If you want to install using Ubuntu &amp; with a more granular approach, use Digital Ocean&#8217;s guides: <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-lamp-stack-on-ubuntu\">LAMP Stack<\/a> &amp; <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-wordpress-on-ubuntu-22-04-with-a-lamp-stack\">WordPress<\/a><\/p>\n\n\n\n<p>Following the Digital Ocean instructions first, I ran into issues with Mysql on the ubuntu stack. I couldn&#8217;t log into mysql as root after securing the msql server.&nbsp; It kept saying root was set to no login, though it was set to have a login with a password. Instead of fixing it, I just moved on to the other guide.&nbsp; Running and spinning up Virtual Machines is sometimes easier and more fun than troubleshooting, so I moved to Debian which works with the pimylifeup.com instructions.<\/p>\n\n\n\n<p>To lock down a certificate, either put nginx or traefik in front of it and have those grab the cert, or put the cert to the server:<\/p>\n\n\n\n<p><a href=\"https:\/\/pimylifeup.com\/raspberry-pi-ssl-lets-encrypt\/\">Pi My Life Up -Raspberry Pi SSL Let&#8217;s Encrypt<\/a>&nbsp; <\/p>\n\n\n\n<p><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-secure-apache-with-let-s-encrypt-on-ubuntu\">Digital Ocean &#8211;&nbsp; How to secure apache with let&#8217;s encrypt on Ubuntu<\/a> <\/p>\n\n\n\n<p>Note &#8211; I&#8217;ve had problems with htaccess being read only in the past so I inserted step 3 from Digital Ocean&#8217;s WordPress setup into my Pi My Life Up&nbsp; process. The steps were supposed to be done before the WordPress setup.  It became step &#8220;0&#8221; of my Pi My Life WordPress process, though I think you can run it any time before firing up the website for the first time. <\/p>\n\n\n\n<p><strong>I ran into an issue not covered in the guides<\/strong> &#8211; when I was done with the Pi My Life setup, I still had the Debian Apache welcome screen showing up, no WordPress in sight. I renamed index.html, as described in <a href=\"https:\/\/stackoverflow.com\/questions\/48152746\/apache-apache2-debian-default-page-instead-of-my-website\">this stackoverflow post<\/a> . He says delete, However&nbsp; renamed the file until I knew it was OK to delete it.&nbsp; I hate deleting things I don&#8217;t fully understand.<\/p>\n\n\n\n<p>WordPress setup is fun, and longer than most because of the multiple guides.&nbsp; Now to learn about WordPress themes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can create a WordPress site in a Virtual Machine and Make a Template of It! Setting up WordPress can be straight forward, and it can be confusing.&nbsp; This depends on the guide, &amp; the depths that you go to when setting it up. These are the two sets of guides I referenced in setting&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,7],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-general-it","category-raspberry-pi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install Wordpress on a Pi, Debian, or Ubuntu server - Redshirt1701<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Wordpress on a Pi, Debian, or Ubuntu server - Redshirt1701\" \/>\n<meta property=\"og:description\" content=\"You can create a WordPress site in a Virtual Machine and Make a Template of It! Setting up WordPress can be straight forward, and it can be confusing.&nbsp; This depends on the guide, &amp; the depths that you go to when setting it up. These are the two sets of guides I referenced in setting...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Redshirt1701\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-05T05:46:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-02T04:07:11+00:00\" \/>\n<meta name=\"author\" content=\"Dylan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dpedersen\" \/>\n<meta name=\"twitter:site\" content=\"@dpedersen\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dylan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/\"},\"author\":{\"name\":\"Dylan\",\"@id\":\"https:\/\/www.redshirt1701.com\/#\/schema\/person\/178b5651c1b98c2201e455772be8947e\"},\"headline\":\"Install WordPress on a Pi, Debian, or Ubuntu server\",\"datePublished\":\"2024-05-05T05:46:35+00:00\",\"dateModified\":\"2024-07-02T04:07:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/\"},\"wordCount\":627,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.redshirt1701.com\/#\/schema\/person\/178b5651c1b98c2201e455772be8947e\"},\"articleSection\":[\"General IT\",\"Raspberry Pi\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/\",\"url\":\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/\",\"name\":\"Install Wordpress on a Pi, Debian, or Ubuntu server - Redshirt1701\",\"isPartOf\":{\"@id\":\"https:\/\/www.redshirt1701.com\/#website\"},\"datePublished\":\"2024-05-05T05:46:35+00:00\",\"dateModified\":\"2024-07-02T04:07:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redshirt1701.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install WordPress on a Pi, Debian, or Ubuntu server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.redshirt1701.com\/#website\",\"url\":\"https:\/\/www.redshirt1701.com\/\",\"name\":\"Redshirt1701 - What's On My Mind\",\"description\":\"Supplemental guides for the Raspberry Pi  to fill in the gaps in regular tutorials and other stuff\",\"publisher\":{\"@id\":\"https:\/\/www.redshirt1701.com\/#\/schema\/person\/178b5651c1b98c2201e455772be8947e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.redshirt1701.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.redshirt1701.com\/#\/schema\/person\/178b5651c1b98c2201e455772be8947e\",\"name\":\"Dylan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redshirt1701.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/192.168.7.21:8000\/wp-content\/uploads\/2024\/05\/image.png\",\"contentUrl\":\"http:\/\/192.168.7.21:8000\/wp-content\/uploads\/2024\/05\/image.png\",\"width\":1071,\"height\":1051,\"caption\":\"Dylan\"},\"logo\":{\"@id\":\"https:\/\/www.redshirt1701.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/192.168.7.21:8000\",\"https:\/\/x.com\/dpedersen\"],\"url\":\"https:\/\/www.redshirt1701.com\/index.php\/author\/redshirtdkp\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install Wordpress on a Pi, Debian, or Ubuntu server - Redshirt1701","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/","og_locale":"en_US","og_type":"article","og_title":"Install Wordpress on a Pi, Debian, or Ubuntu server - Redshirt1701","og_description":"You can create a WordPress site in a Virtual Machine and Make a Template of It! Setting up WordPress can be straight forward, and it can be confusing.&nbsp; This depends on the guide, &amp; the depths that you go to when setting it up. These are the two sets of guides I referenced in setting...","og_url":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/","og_site_name":"Redshirt1701","article_published_time":"2024-05-05T05:46:35+00:00","article_modified_time":"2024-07-02T04:07:11+00:00","author":"Dylan","twitter_card":"summary_large_image","twitter_creator":"@dpedersen","twitter_site":"@dpedersen","twitter_misc":{"Written by":"Dylan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/#article","isPartOf":{"@id":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/"},"author":{"name":"Dylan","@id":"https:\/\/www.redshirt1701.com\/#\/schema\/person\/178b5651c1b98c2201e455772be8947e"},"headline":"Install WordPress on a Pi, Debian, or Ubuntu server","datePublished":"2024-05-05T05:46:35+00:00","dateModified":"2024-07-02T04:07:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/"},"wordCount":627,"commentCount":0,"publisher":{"@id":"https:\/\/www.redshirt1701.com\/#\/schema\/person\/178b5651c1b98c2201e455772be8947e"},"articleSection":["General IT","Raspberry Pi"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/","url":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/","name":"Install Wordpress on a Pi, Debian, or Ubuntu server - Redshirt1701","isPartOf":{"@id":"https:\/\/www.redshirt1701.com\/#website"},"datePublished":"2024-05-05T05:46:35+00:00","dateModified":"2024-07-02T04:07:11+00:00","breadcrumb":{"@id":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redshirt1701.com\/index.php\/2024\/05\/04\/putting-wordpress-on-a-pi-debian-or-ubuntu-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redshirt1701.com\/"},{"@type":"ListItem","position":2,"name":"Install WordPress on a Pi, Debian, or Ubuntu server"}]},{"@type":"WebSite","@id":"https:\/\/www.redshirt1701.com\/#website","url":"https:\/\/www.redshirt1701.com\/","name":"Redshirt1701 - What's On My Mind","description":"Supplemental guides for the Raspberry Pi  to fill in the gaps in regular tutorials and other stuff","publisher":{"@id":"https:\/\/www.redshirt1701.com\/#\/schema\/person\/178b5651c1b98c2201e455772be8947e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redshirt1701.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.redshirt1701.com\/#\/schema\/person\/178b5651c1b98c2201e455772be8947e","name":"Dylan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redshirt1701.com\/#\/schema\/person\/image\/","url":"http:\/\/192.168.7.21:8000\/wp-content\/uploads\/2024\/05\/image.png","contentUrl":"http:\/\/192.168.7.21:8000\/wp-content\/uploads\/2024\/05\/image.png","width":1071,"height":1051,"caption":"Dylan"},"logo":{"@id":"https:\/\/www.redshirt1701.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/192.168.7.21:8000","https:\/\/x.com\/dpedersen"],"url":"https:\/\/www.redshirt1701.com\/index.php\/author\/redshirtdkp\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":5,"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redshirt1701.com\/index.php\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}