Home > Software design >  getting error in cpanel regarding htacess permission
getting error in cpanel regarding htacess permission

Time:10-15

I have wordpress installed in cpanel and when my error log in cpanel is giving following error.

[Mon Oct 11 16:31:35.856159 2021] [core:crit] [pid 24371] (13)Permission denied: [client 209.141.51.176:39184] AH00529: /home/root123/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/root123/public_html/' is executable
[Mon Oct 11 13:12:48.427994 2021] [core:crit] [pid 8707] (13)Permission denied: [client 138.68.249.116:52090] AH00529: /home/root123/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/root123/public_html/' is executable

I read all related answers on stackoverflow , they are saying it is permission issue. i changed permission for this file home/root123/public_html/.htaccess to 775 but issue is still there.

any solution ?

CodePudding user response:

Files inside a cPanel account should have permissions as 644, ideally as 640. 755 is a permission for folders not files (unless you need a file to have the execute permission) which is not the case for .htaccess files.

In general, on cPanel server in /home/cpaneluser:

public_html should have permissions as 750 and ownership as cpaneluser:nobody

All files inside the public_html folder should have ownership as cpaneluser:cpaneluser and permisions as 750 for folders and as 640 for files

So you should check public_html permissions and the folders where those .htaccess files reside as well.

  • Related