Access Denied: You do not have permission to view this page

Usually i do it this way with WordPress deployment via ssh:

  1. Move all extracted files into public_html folder (/home/your_username/web/your_domain/public_html)
  2. Inside public_html i do this commands:
chown your_username:your_group -R *
  • Chown is not necessary in most cases because it’s predefined by HestiaCP, just to be sure.
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
  • These two lines fix all permissions in a few seconds. Fixing them via FTP/SFTP/FTPS can take from minutes to hours (depends on file amount).

Don’t forget to replace your_username, your_domain, your_group with correct values.

1 Like