social.solarpunk.au

social.solarpunk.au

wordpress self-hosted woes:

default upload limit 2M.

to use the web browser to upload anything meaningful, this needs to be increased.

  • do not edit the wp-config.php.
  • do not create/edit the .htaccess file.
  • do not create php.ini in either the wordpress root, or the wp-admin folder.

correct solution:

  • find your php-fpm's system php.ini and find the correct setting field and edit that.

filesystem ownership

nowhere is it explained well how to make wordpress work with nginx.

nginx is the process running the wordpress app. self-hosted installs could have wordpress files and directories with user ownership and permissions of effectively anything.

incorrect filesystem access to the wordpress app makes it impossible to upload anything.

  • youruser:youruser is INCORRECT
  • editing wp-config.php alone is INCORRECT
  • merely changing file and directory permissions alone is INSUFFICIENT

correct solution:

  • all wordpress files and directories must have ownership set as: www-data:www-data

conclusion

pretty much all search engine results obsess over merely fiddling with file/folder permissions.

many websites are just copies of others, almost entirely verbatim ripping the content from the last one.

the official wordpress documentation says nothing.

total time fixing simple configuation like this?

2 hours.

replies
0
announces
0
likes
0