Installing Wordpress with Epinio

Create a directory for your application:

mkdir wordpress
cd wordpress

Get the code:

https://wordpress.org/download/#download-install

wget https://wordpress.org/latest.tar.gz
tar xvf latest.tar.gz
mv wordpress htdocs
rm -rf latest.tar.gz

Create a buildpack.yml for your application

cat << EOF > buildpack.yml
---
php:
  version: 7.3.x
  script: index.php
  webserver: nginx
  webdirectory: htdocs
EOF

Enable needed php extensions

The PHP buildpack supports additional ini files for PHP through the PHP_INI_SCAN_DIR mechanism.

We need zlib and mysqli extensions enabled:

mkdir .php.ini.d
cat << EOF > .php.ini.d/extensions.ini
extension=zlib
extension=mysqli
EOF

Deploy

epinio push --name wordpress

Additional steps

Wordpress needs a database to work. After visiting the route of your deployed application you will have to set the connection details to the database.

You can install a MySQL database on your cluster or use an external one. One option is using a helm chart like this one: https://bitnami.com/stack/mysql/helm