You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a silly issue. The fix is a tad obvious. But others might run into this, so I thought I'd share. This happens in macOS with the default configuration, because there's no www-data user by default. For reference, I installed nginx with brew.
When uploading an image, Wordpress shows an HTTP error. The log is:
So obviously, the problem is that I started nginx without sudo. (I like it that way.) If I sudo nginx I have the permission to write files to /usr/local/var/run/nginx/, so the upload works.
Even more obvious, the better solution is to start have a proper user for nginx:
# in nginx.conf
user www www;
The above applies to macOS. I'm not sure if in Linux www-data is preferred.
The text was updated successfully, but these errors were encountered:
This is a silly issue. The fix is a tad obvious. But others might run into this, so I thought I'd share. This happens in macOS with the default configuration, because there's no
www-data
user by default. For reference, I installed nginx with brew.When uploading an image, Wordpress shows an HTTP error. The log is:
So obviously, the problem is that I started nginx without sudo. (I like it that way.) If I
sudo nginx
I have the permission to write files to/usr/local/var/run/nginx/
, so the upload works.Even more obvious, the better solution is to start have a proper user for nginx:
The above applies to macOS. I'm not sure if in Linux
www-data
is preferred.The text was updated successfully, but these errors were encountered: