If you encounter the message „Unable to create directory wp-content/uploads/2020/02. Is there write permission for the parent directory?“ when uploading a theme or images in the WordPress Admin Dashboard, the directory location is based on the current year and month, such as 2020/01, 02, 03, etc. You just need to set the correct folder directory permissions. The specific method is as follows:
Method to resolve directory permissions in Baota Panel
1. Log in to the Baota Panel, enter your website's folder. As shown in the figure below, you can see the permissions and owner are 755 and root respectively. The correct settings should be 755 and www, so we just need to modify them accordingly.

2. First, select all files and folders, then click the permissions button in the upper right corner. In the pop-up interface, choose 755 for permissions and www for the owner, then confirm. This will solve the problem.

Setting methods for other panels
If you are not using Baota Panel but another panel or no panel at all, the same principle applies: you only need to set the folder permissions. If you don't know how, you can refer to the method below,
Connect to the VPS using xshelland then operate.
- chmod -R 755 your-website-directory-path
- chown -R www:www your-website-directory-path
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.