compuquak
Posts: 8
Joined: Mon Nov 26, 2012 12:21 am

WordPress on Pi4

Sun Jul 28, 2019 3:31 pm

I find numerous articles on setting up WordPress, most interesting in the PressPi "key-turn" approach. Tried it, the image will not boot on my Pi4. Ran through several step-wise articles, ran into conflicts in every one ... repository fails to load php.7.0 or MySql or Mariadb. So ... has anyone got this done on a new Pi? The PressPi approach would be great ... it has plenty of "press" and web refs, but COME-ON ...they haven;t even certified it for the Pi3. This would be a great project for lots of people!

Andyroo

Re: WordPress on Pi4

Sun Jul 28, 2019 4:04 pm

I've not got WP up and running yet but using BUSTER on a Pi 3B+ its taken less than 15 mins to get Apache and PHP up and running:

Code: Select all

sudo apt update
sudo apt upgrade
Reboot

Code: Select all

sudo apt install apache2 apache2-utils
sudo systemctl enable apache2
sudo apt install mariadb-server mariadb-client
sudo systemctl enable mariadb
I then run

Code: Select all

sudo mysql_secure_installation
though some on here say you do not need to - your call.

Code: Select all

sudo apt install php7.3 libapache2-mod-php7.3 php7.3-mysql php-common php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-readline
sudo a2enmod php7.3
sudo systemctl restart apache2
This gives you a basic Apache2, MariaDB and PHP 7.3 running
To change to use PHP-FPM:

Code: Select all

sudo a2dismod php7.3
sudo apt install php7.3-fpm
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php7.3-fpm
sudo systemctl restart apache2
After this - phpMyAdmin (if needed) and WP should go on but I'm out of time at the mo for these steps :roll:

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: WordPress on Pi4

Sun Jul 28, 2019 4:10 pm

Raspberry Pi themselves have a fully functional and supported Operating System, Raspbian. They also have project documentation covering the installation of WordPress on a Raspbian system.


PressPi is a separate third-party contribution that seems to have 'stalled' - https://www.raspberrypi.org/forums/view ... 36&t=95278

Maybe try contact@presspi.com

Andyroo

Re: WordPress on Pi4

Sun Jul 28, 2019 4:39 pm

B.Goode wrote:
Sun Jul 28, 2019 4:10 pm
Raspberry Pi themselves have a fully functional and supported Operating System, Raspbian. They also have project documentation covering the installation of WordPress on a Raspbian system.
...
Problem is that is well out of date (last updated 10 months ago and still missing MariaDB change) - maybe I should update it :?:

My post was mainly a copy and paste from a build log :lol:

epoch1970
Posts: 5131
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: WordPress on Pi4

Sun Jul 28, 2019 4:40 pm

Ok try the official docker image?
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

compuquak
Posts: 8
Joined: Mon Nov 26, 2012 12:21 am

Re: WordPress on Pi4

Mon Jul 29, 2019 1:39 am

I hope ANDYROO takes the next step and loads WordPress!! I might give it a shot, following his early steps to set-up the environment. Still, I would really like for PressPi to do the job! There ought to at least be a script for loading and configuring everything ... I suppose that's what PressPi really is.

Andyroo

Re: WordPress on Pi4

Sun Aug 25, 2019 8:14 pm

compuquak wrote:
Mon Jul 29, 2019 1:39 am
I hope ANDYROO takes the next step and loads WordPress!! I might give it a shot, following his early steps to set-up the environment. Still, I would really like for PressPi to do the job! There ought to at least be a script for loading and configuring everything ... I suppose that's what PressPi really is.
Well - it took me awhile :oops: but updated all the above and WordPress in one post https://www.raspberrypi.org/forums/view ... 1&t=249882

Still not anywhere suitable for a live site but gets you up and running.

Return to “Networking and servers”