Question: How do I change file permissions? Print

  • GHFS Hosting, shared hosting guide, GHFS web hosting, best hosting provider, GHFS cloud hosting, managed hosting services, SSD web hosting, VPS hosting setup, hosting knowledge base, how to register a domain, domain and hosting tutorials, how to transfer a domain, DNS configuration guide, email hosting setup, hosting control panel tutorial, firewall configuration VPS, cloud server configuration, secure VPS server, A record guide, install Docker on VPS, MySQL optimization, DNS records explained, disable root login SSH, FTP upload guide, MX record setup, MySQL database tutorial, hosting troubleshooting guide, enable SSH access, SSL installation guide, CNAME configuration, Node.js on VPS, Nginx setup GHFS, SSL certificate troubleshooting, SSL troubleshooting, Linux server commands, optimize WordPress performance, website security tutorial, PHP configuration guide, Python hosting tutorial, how to manage Linux VPS, WordPress migration guide, malware removal guide, secure hosting best practices, Redis installation, cPanel tutorial, VPS hosting tutorial, fix internal server error, DDoS protection GHFS, server hardening tutorial, secure website setup, SMTP configuration guide, email deliverability guide, Plesk tutorial, hosting performance optimization, WordPress installation GHFS, Apache configuration guide
  • 0

Answer :

File permissions determine who can read, write, or execute files on your hosting account. Incorrect permissions may cause issues such as:

  • “403 Forbidden” errors

  • Plugins or themes not working

  • Upload failures

  • Security vulnerabilities

GHFS Hosting allows you to change permissions easily using Plesk File Manager or SSH.


1. Change File Permissions Using Plesk File Manager (Recommended)

Steps:

  1. Log in to your Plesk panel

  2. Go to Websites & Domains

  3. Click File Manager

  4. Navigate to the file or folder you want to modify

  5. Click the three dots (⋮) next to the item

  6. Select Change Permissions

  7. Adjust permissions as needed

  8. Click OK to save


2. Recommended File Permission Settings (WordPress and PHP Sites)

To keep your site secure and functional, GHFS Hosting recommends:

Files:

 
 
644

Folders:

 
 
755

wp-config.php:

 
 
600 or 640

Never set:

 
 
777

This is unsafe and allows anyone to write to your files.


3. Changing Permissions via SSH (Advanced Users)

If you have SSH access, you can change permissions with the chmod command.

Change file permissions:

 
 
chmod 644 filename.php

Change folder permissions:

 
 
chmod 755 foldername

Change recursively (be very careful):

 
 
chmod -R 755 foldername

4. What Do Permission Numbers Mean?

Permissions are grouped into three parts:

  1. Owner

  2. Group

  3. Public (Everyone else)

Example:

 
 
755

Breaks down into:

  • 7 = owner can read/write/execute

  • 5 = group can read/execute

  • 5 = public can read/execute


5. Common Problems Caused by Wrong Permissions

Problem: “403 Forbidden”

Cause: folder permissions too restrictive
Fix: change to 755


Problem: WordPress cannot upload images

Cause: wrong permissions on /wp-content/uploads/
Fix: set folders to 755, files to 644


Problem: Plugin installation fails

Cause: insufficient write permissions
Fix: ensure WordPress directories follow 755/644 rules


Problem: Security vulnerabilities

Cause: permissions too open (example: 777)
Fix: never use 777; fix to 755/644


6. When Should I NOT Change Permissions?

Avoid changing permissions if:

  • You are not sure what a folder is used for

  • You think a plugin error is unrelated

  • You see system directories (Plesk, Apache, nginx, system logs)

Changing permissions on the wrong folder may break your website.


7. When to Contact GHFS Hosting Support

Contact support if:

  • You cannot fix a permission issue

  • Changing permissions breaks your site

  • You need help identifying correct settings

  • WordPress still cannot write to files

  • A security plugin reports permission errors

Support can diagnose permissions and apply correct settings for you.

 


Was this answer helpful?

« Back