Wordpress builds and uploads theme error, Unable to create directory wp-content/uploads/...

Just after setting up the wordpress environment, I uploaded my purchased theme and reported an error

Unable to create directory wp-content/uploads/2022/08. Is its parent directory writable by the server?

I am using the lnmp environment. It should be that the directory has no permissions. Just use the following command:

chown -R www /home/wwwroot/网站目录

Upload again and it will be successful

Guess you like

Origin blog.csdn.net/cll_869241/article/details/126559514