= Logbook: horizon.justinwflory.com

Running logbook of documentation notes for Horizon.


== Firewall

_See https://github.com/jwflory/infrastructure/blob/master/roles/firewalld/tasks/main.yml[jwflory/infrastructure firewalld Ansible role]._


== WordPress

=== wp_cli cannot upgrade WordPress because another update is in progress

`wp option get core_updater.lock`::
Check if WordPress is holding a version lock.
If a number is returned, the version lock is on.

`wp option delete core_updater.lock`::
Break a version lock on WordPress.
Verify an update is NOT in progress before deleting (check processes, visit admin panel).

https://wordpress.stackexchange.com/questions/224989/get-rid-of-another-update-is-currently-in-progress[Reference]


== XenForo

* `sitemaps/` and `temp/` must have 0777 permissions…
** `temp/` is for the image proxy


= Logbook: horizon.justinwflory.com

Running logbook of documentation notes for Horizon.


== Firewall

_See https://github.com/jwflory/infrastructure/blob/master/roles/firewalld/tasks/main.yml[jwflory/infrastructure firewalld Ansible role]._


== WordPress

=== Updating from admin dashboard does not work: "failed to create directory"

The web server cannot read or write to files in the web directory.
Make sure the `php-fpm` user is a member of the `www-admin` group and that the folder is group-writable.

Why does this happen?
Normally, your web server needs access, like `nginx` or `httpd`.
But in my case, `nginx` is spinning off `php-fpm` processes to run PHP web applications.
This user is trying to read and write from files instead of the web server.
Look closer at https://github.com/jwflory/infrastructure[jwflory/infrastructure] for additional context.

=== wp_cli cannot upgrade WordPress because another update is in progress

`wp option get core_updater.lock`::
Check if WordPress is holding a version lock.
If a number is returned, the version lock is on.

`wp option delete core_updater.lock`::
Break a version lock on WordPress.
Verify an update is NOT in progress before deleting (check processes, visit admin panel).

https://wordpress.stackexchange.com/questions/224989/get-rid-of-another-update-is-currently-in-progress[Reference]


== XenForo

* `sitemaps/` and `temp/` must have 0777 permissions…
** `temp/` is for the image proxy


Add 'failed to create directory' WordPress scenario
[docs] Add 'failed to create directory' WordPress scenario
