change cpanel main domain root folder forbidden
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
-
Check the permissions and owner on the document root folder. Incorrect permissions/owner is most likely the cause of this. 0 -
You should see the exact cause of that error in /etc/apache2/logs/error_log 0 -
Good ideas from @DennisMidjord and @quietFinn - let us know if that helps! 0 -
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 0 -
sorry to bother but DennisMidjord was right as it was a permissions issue. Thank u very much for your help 0 -
I'm glad the logs helped get that working! 0
Please sign in to leave a comment.
Comments
6 comments