dzakharov

Registered
Jun 24, 2011
3
0
51
Yesterday my website has gone down and anytime someone accesses my website i get a 403 error.

The Public HTML folder now appears completely blank. Anytime I try to upload a new file to it, I get the below. Can someone please advise how I can fix this ASAP?

Can not change into /home2/shantibh/public_html: Permission denied at cpanel line 2821
Carp::croak('Can not change into /home2/shantibh/public_html: Permission deni...') called at /usr/local/cpanel/Cpanel/Fileman.pm line 152
Cpanel::Fileman::uploadfiles('dir', '/home2/shantibh/public_html', 'file-index.html-key', 'file1', 'file-index.html', '/home2/shantibh/tmp/Cpanel_Form_file.upload.Pb7J8kMYPDqipjUc', 'file2', '', ...) called at cpanel line 2821
main::dofileman('uploadfiles', 'ARRAY(0x992f350)') called at cpanel line 1372
eval {...} called at cpanel line 1372
main::real_exectag('<cpanel Fileman="uploadfiles()">') called at cpanel line 3876
main::dotag_finished_headers(0) called at cpanel line 3704
main::cpanel_parseblock('<html>^J<head>^J<title>cPanel X</title>^J<cpanel relinclude="files/...') called at cpanel line 3612
main::cpanel_parse('GLOB(0x97cfb14)') called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
 

garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
1
166
cPanel Access Level
DataCenter Provider
As the error indicates, there seems to be an issue with permissions. Check the permissions on /home2, /home2/shantibh, and /home2/shantibh/public_html, they should be the following:

/home2
root:root
0711

/home2/shantibh
shantibh:shantibh
0711

/home2/shantibh/public_html
shantibh:nobody
0750
 

dzakharov

Registered
Jun 24, 2011
3
0
51
How do I change the permission for

/home2
root:root
0711

/home2/shantibh
shantibh:shantibh
0711

I'm not too familiar with Cpanel. I can figure out how to change /home2/shantibh/public_html (within File Manager) but not those top directories.
 

garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
1
166
cPanel Access Level
DataCenter Provider
Without root-level access (which it appears you are lacking), there's not much you can do about this error.