rpvw

Well-Known Member
Jul 18, 2013
1,088
446
113
UK
cPanel Access Level
Root Administrator
The normal cPanel permissions given to files and folders in the ~/public_html folder are:

Folders 755
Files 644

I should try setting the files to those permissions, and seeing if that works for you.

If it still doesn't work, you may need to ask your server provider for assistance.
 

Nicola Urbinati

Well-Known Member
Feb 1, 2017
73
10
8
Italy
cPanel Access Level
Root Administrator
Hi,

I am my own server provider.

From cpanel's file manager, trying to edit a ".htaccess" file in ~/public_html folder (644 permissions), I receive a
"
Errore HTTP 401
Token di sicurezza non valido
L’URL richiesto non contiene il corretto token di sicurezza della sessione.

Questo errore può essersi verificato dopo che l’utente ha copiato e incollato un URL da una sessione cPanel, WHM o Webmail diversa nella barra dell’indirizzo del browser. Per risolvere il problema, adottare una delle seguenti misure:

  • Go back one page e ricaricare l’URL, assicurandosi che la sezione /cpsess…/ dell’URL rimanga inalterata.
  • Reinserire la password dell’account di seguito. In questo modo verrà assegnato un nuovo token di sicurezza alla sessione. Questo nuovo token impedirà all’utente di utilizzare altre pagine di questa applicazione che potrebbero essere aperte in altre schede.
"

Error (sorry for the italian)

If I try to navigate some pages (I have a Joomla site), I get:

"
Forbidden
You don't have permission to access /xxx/yyy on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
If I try to navigate some pages (I have a Joomla site), I get:

"
Forbidden
You don't have permission to access /xxx/yyy on this server.
Hello @Nicola Urbinati,

It's possible this relates to a file ownership issue. Can you let us know the output to /usr/local/apache/logs/error_log when reproducing the error message that appears when navigating to the website from your browser?

Thank you.
 

Nicola Urbinati

Well-Known Member
Feb 1, 2017
73
10
8
Italy
cPanel Access Level
Root Administrator
Hi all,

It's turned out it was some misconfiguration of mod_pagespeed, as I removed it and everything got working smoothly.

Don't know what configuration exactly went wrong, I'll test it again probably in the future.

Thank you all for the assistance.