Page 1 of 1

WordPress on Pi4

Posted: Sun Jul 28, 2019 3:31 pm
by compuquak
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!

Re: WordPress on Pi4

Posted: Sun Jul 28, 2019 4:04 pm
by Andyroo
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:

Re: WordPress on Pi4

Posted: Sun Jul 28, 2019 4:10 pm
by B.Goode
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

Re: WordPress on Pi4

Posted: Sun Jul 28, 2019 4:39 pm
by Andyroo
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:

Re: WordPress on Pi4

Posted: Sun Jul 28, 2019 4:40 pm
by epoch1970
Ok try the official docker image?

Re: WordPress on Pi4

Posted: Mon Jul 29, 2019 1:39 am
by compuquak
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.

Re: WordPress on Pi4

Posted: Sun Aug 25, 2019 8:14 pm
by Andyroo
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.