change cpanel main domain root folder forbidden

James Eco

Active Member
Dec 2, 2020
33
3
8
Israel
cPanel Access Level
Root Administrator
Hello, I moved my Cpanel main domain from Public_html to publick_html/domain_name.com folder with customizing the
/var/cpanel/userdata/my_user/domainname & /var/cpanel/userdata/my_user/domainname-SSL.
I deleted the caches file for that domain.
then runing cmd
# /scripts/updateuserdatacache
#/scripts/rebuildhttpdconf
as well I run a new autossl.
and in the new folder, there is index.php file of new WordPress installation

but the result is that the page Forbidden You don't have permission to access this resource. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request...
What I'm doing wrong
Thank u
 

quietFinn

Well-Known Member
Feb 4, 2006
1,695
351
438
Finland
cPanel Access Level
Root Administrator
You should see the exact cause of that error in /etc/apache2/logs/error_log
 
  • Like
Reactions: cPRex

James Eco

Active Member
Dec 2, 2020
33
3
8
Israel
cPanel Access Level
Root Administrator
as quietFinn suggest I checked the apache error log and I found that there is no index page in public_html. so I added it but still, domain is forbidden and this is my new error log

[Fri Feb 04 09:07:48.429574 2022] [core:crit] [pid 3416599:tid 47147236005632] (13)Permission denied: [client client_ip:59648] AH00529: /home/cpanel_user/public_html/domain_name/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/cpanel_user/public_html/domain_name/' is executable, referer: https://server_ip:2083/
[Fri Feb 04 09:07:48.429710 2022] [core:crit] [pid 3416599:tid 47147236005632] (13)Permission denied: [client client_ip:59648] AH00529: /home/cpanel_user/public_html/domain_name/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/cpanel_user/public_html/domain_name/' is executable, referer: https://server_ip:2083/
[Fri Feb 04 09:07:48.690363 2022] [core:crit] [pid 3416599:tid 47147240208128] (13)Permission denied: [client client_ip:59648] AH00529: /home/cpanel_user/public_html/domain_name/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/cpanel_user/public_html/domain_name/' is executable, referer: https://www.domain_name/sapp-wp-signon.php?pass=dsjk3ld4iajvsjigmvadqz33uydx0mtc
[Fri Feb 04 09:07:48.690505 2022] [core:crit] [pid 3416599:tid 47147240208128] (13)Permission denied: [client client_ip:59648] AH00529: /home/cpanel_user/public_html/domain_name/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/cpanel_user/public_html/domain_name/' is executable, referer: https://www.domain_name/sapp-wp-signon.php?pass=dsjk3ld4iajvsjigmvadqz33uydx0mtc
[Fri Feb 04 09:07:56.462321 2022] [core:crit] [pid 3347627:tid 47147227600640] (13)Permission denied: [client client_ip:59650] AH00529: /home/cpanel_user/public_html/domain_name/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/cpanel_user/public_html/domain_name/' is executable, referer: https://server_ip:2083/
[Fri Feb 04 09:07:56.462493 2022] [core:crit] [pid 3347627:tid 47147227600640] (13)Permission denied: [client client_ip:59650] AH00529: /home/cpanel_user/public_html/domain_name/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/cpanel_user/public_html/domain_name/' is executable, referer: https://server_ip:2083/
[Fri Feb 04 09:07:56.709369 2022] [core:crit] [pid 3347627:tid 47147227600640] (13)Permission denied: [client client_ip:59650] AH00529: /home/cpanel_user/public_html/domain_name/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/cpanel_user/public_html/domain_name/' is executable, referer: https://www.domain_name/
[Fri Feb 04 09:07:56.709467 2022] [core:crit] [pid 3347627:tid 47147227600640] (13)Permission denied: [client client_ip:59650] AH00529: /home/cpanel_user/public_html/domain_name/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/cpanel_user/public_html/domain_name/' is executable, referer: https://www.domain_name/
Thank u