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