File and folder permission errors can be very inconvenient while uploading and modifying files, decompressing archives, and running scripts.
Your Cloudways server hosts your web application (website) files, but you need the correct permissions to apply any changes.
Without these, you can not do anything on your website and may see errors preventing you from changing your files and directories.
Setting up the correct permissions can avoid these errors and security breaches.
Table of Contents:
How Can I reset File and Folder Permission?
There are many variations in error messages, such as:
Permission denied.
403 forbidden error.
Upload of the file was successful, but an error occurred when setting permissions and/or timestamp.
Could not copy the file.
Unable to create a server folder. An error occurred. Please contact your administrator, etc.
It is good practice to diagnose whether permissions are correctly set for your user before diving in deep and checking other aspects. There are multiple ways of fixing permissions, but in the Cloudways Platform, it’s just a matter of a few clicks.
How to Fix File and Folder Permissions on Cloudways
Need a quick solution? Watch this video to learn how to reset file and folder permissions on your Cloudways server in just a few clicks.
It’s a simple guide to help you fix common permission issues without hassle.
Resetting File & Folder Permissions on Cloudways Platform
You can easily reset file and folder permissions using the Cloudways Platform if you are the account owner or a team member with the necessary rights to the application.
Tip:
Learn more about managing your team members, such as creating a new team member, updating permissions, etc.
Please note that this reset permission operation only applies to the webroot, which is the public_html directory of your application and all the files and directories residing there.
After resetting permissions, the following operations will happen:
Directories’ permission will be reset to 775. This is also the default permission for directories.
Files’ permissions will be reset to 664. This is also the default permission for files.
The ownership of the files and folders will change to the application user or master user based on your preference.
Here, 775 translates to drwxrwxr-x, which means that the owner and group member can read, write, and execute, while all others can read and execute.
On the other hand, 664 translates to -rw-rw-r–, which means that the owner and group member can read and write a file, while all others can only read the file.
If you connect to your server using SSH, you can easily verify the set permissions and see the user and the group name.
The master user name typically starts with master_XXXXX unless you have changed it, and the application user name is the same as your application folder name.
Step #1 — Navigate to Application Settings:
Log in to your Cloudways Platform using your email address and password.
From the left menu bar, click on Flexible and then choose My Servers.
2. Choose the server where your target application is deployed.
3. Next, click WWW Globe Button and choose the application as shown below.
4. You will be in the General Settings of that application. From the side menu, click on Application Settings.
5. Navigate to the Reset File/Folders Permission as shown below.
Step #2 — Resetting the Permissions:
Click on the dropdown button and list of users will appear. Choose the desired user (master user or an application user) who should have permission, and click on reset.
Note:
We recommend you choose an application user usually and only choose a master user when you properly know how to operate it.
Step #3 — Verifying the Permissions [Optional]:
Here is how you can verify if the permissions are successfully reset.
First, connect to your server using SSH.
Navigate to your target application folder and run ls -l command to see it all.
Now your desired user should have all the required permissions.
If you still see permission-related errors while accessing specific directories or files, then make sure you don’t have any rules in the .htaccess file causing conflict.
Try managed DigitalOcean hosting at Cloudways Platform to experience the top-notch performance, simplicity, and flexibility with Cloudways. In addition, Cloudways removes all your server administration and maintenance hassles, so you remain focused on your business.
That's it! We hope this article was helpful.
Need Help?
If you need assistance, feel free to:
Visit the Cloudways Support Center
Chat with us: Need a Hand > Send us a Message
Or create a support ticket anytime.
We're here 24/7 to help you!







