So, zach had a mybb 1822 mysql dump, and no backup of the site (which has attachments, avatars etc..) He said that was enough for him to get it back up originally.
First step was to load that version of mybb with that mysql db.
That was fairly straightforward, I just needed to configure the fastcgi stuff in nginx and add the .php match action.
I just added site names to localhost in /etc/hosts to use as virtual hosts.
Next step was to the conversion to phpbb 3.1, because the converter was from mybb 18 to phpbb 31.
Here I learned that that version of phpbb requires php 5 and refuses to work with 7, which was not available from gentoo.
So I used docker for its intended purpose for the first time.
This is my Dockerfile for php 5:
Code: Select all
FROM php:5-fpm
RUN \
apt-get -y update && \
apt-get -y install libpq-dev libgd-dev && \
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ && \
docker-php-ext-install -j`nproc` gd mysqli pdo_pgsql pgsql
With this command to run the image:
Code: Select all
docker run --rm --name fpm56_latest -v /home/rkitover:/home/rkitover -p 127.0.0.1:9000:9000 rkitover/fpm56:latest
this binds port 9000 in the container to your localhost port 9000, acting just like a system fastcgi php server, except you have to make provisions for the necessary filesystem paths to be bound.
The conversion to phpbb 3.1 was just a matter of using their web UIs.
Once that was done, I decided that docker is a better way to run php and used this Dockerfile for php 7:
Code: Select all
FROM php:7-fpm
RUN \
apt-get -y update && \
apt-get -y install libpq-dev libgd-dev && \
docker-php-ext-install -j`nproc` gd mysqli pdo_pgsql pgsql
I followed the documentation to do the update to phpbb 3.3, and this is what we have here.
And then the minstrels were eaten, and there was much rejoicing.