I was able to install WordPress on my MIAB box, even though they say don’t do this I figured there would be a very unobtrusive way that didn’t require modifying anything outside the /home/user-data/www directory. So I am sharing this so others can leverage off of it.
STEP 1. Add the following nginx config to /home/user-data/www/your-domain.com.conf changing your-domain.com to whatever yours may be.
location ~* \.php$ { include fastcgi_params; fastcgi_pass php-fpm; fastcgi_index index.php; client_max_body_size 8M; } location ~* { index index.php index.html; try_files $uri $uri/ /index.php?$args; } location ^~ /wp-content/database/ { deny all; }
STEP 2. Run web_update
cd /root/mailinabox/tools ./web_update
STEP 3. Download and install WordPress to /home/user-data/www/default (don’t run setup, use directions in step #4).
STEP 4. Download and install SQLite Integration plugin.
STEP 5. Change the user and group owner of all files.
cd /home/user-data/www/default chown -R www-data.www-data *
STEP 6. Follow the install instructions located at the link in STEP #4.
That’s all folks! It doesn’t require you to install any binaries like MySQL or Apache even though they are recommended to run WordPress. My site has been running for a few days with no problems. I even have a custom theme installed. It would be nice to see MIAB support this in the future as WordPress is a very popular website framework and you just can’t survive with static HTML websites in this day and age.