{"id":11847,"date":"2024-05-16T14:54:40","date_gmt":"2024-05-16T12:54:40","guid":{"rendered":"https:\/\/www.main-vision.com\/richard\/blog\/?p=11847"},"modified":"2024-05-16T14:54:40","modified_gmt":"2024-05-16T12:54:40","slug":"a-pi5-wordpress-and-classsicpress","status":"publish","type":"post","link":"https:\/\/www.main-vision.com\/richard\/blog\/a-pi5-wordpress-and-classsicpress\/","title":{"rendered":"A Pi5, WordPress and ClasssicPress"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><p>Last night I started to install wordpress on the Pi5 and I got it to work. I then started to install ClassicPress via the ClassicPress switchtoclassicpress plugin and got blocked. I was blocked because in order for WordPress to update plugins, themes and wordpress it needs to have access to itself via FTP. That&#8217;s when I stopped for the night. <\/p>\n<p>## VSFTPD<\/p>\n<p>This morning [I installed vsftpd](https:\/\/pimylifeup.com\/raspberry-pi-ftp\/) and the first part went well. Within a few minutes I had access to the Pi via FTP, and then changed from the default tutorial directory to the wordpress directory where apt install wordpress places WordPress. I was able to navigate the directories and see the files. <\/p>\n<p>## Missing Permission to Create Directoriess<\/p>\n<p>I then went to my wordpress instance in browser, added the FTP credentials and told it to switch from WordPress to ClassicPress and that&#8217;s when I encountered difficulties. The difficulty is that I need to use sudo to have permission to create directories so for every directory I need to run a sudo command. <\/p>\n<p>I tried changing directory permissions from the command line and an FTP client and neither workded. Specifically neither option allowed me to create new directories. That&#8217;s where I got trapped. <\/p>\n<p>I decided to create a new directory within my \/home\/user\/ directory but I haven&#8217;t been able to get apache2 to see this directory. It gives me a forbidden error.\u00a0The same is true when I created a directory for classicpress in \/usr\/share. <\/p>\n<p>## User Permissions<\/p>\n<p>In the end I think that it&#8217;s because the tutorial that I was following from the Ubuntu site forgot to mention that we need to [add our ftp user to the www-data group](https:\/\/pimylifeup.com\/raspberry-pi-apache\/). Once I did this I was able to update wordpress plugins, themes, and translations. I think that this has resolved the issue. <\/p>\n<p>## And Finally<\/p>\n<p>Now I have a critical error with wordpress but that should be quite easy to resolve so I think I have learned how to do what I want. The next step is to fix the critical error, and then repeat this process flawlessly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>Last night I started to install wordpress on the Pi5 and I got it to work. I then started to install ClassicPress via the ClassicPress switchtoclassicpress plugin and got blocked. I was blocked because in order for WordPress to update plugins, themes and wordpress it needs to have access to itself via FTP. That&#8217;s when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11292,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[4559,5654,1094,6175,1010],"class_list":["post-11847","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-related","tag-classicpress","tag-ftp","tag-learning","tag-raspberry-pi","tag-wordpress"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/posts\/11847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/comments?post=11847"}],"version-history":[{"count":1,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/posts\/11847\/revisions"}],"predecessor-version":[{"id":11848,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/posts\/11847\/revisions\/11848"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/media\/11292"}],"wp:attachment":[{"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/media?parent=11847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/categories?post=11847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/tags?post=11847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}