public_html folder accidentally deleted

eveklc

Registered
Sep 12, 2009
1
0
51
Hi! I accidentally deleted public_html folder. Can I recreate the folder? How can I reset the File Manager? Please help!
 

BianchiDude

Well-Known Member
PartnerNOC
Jul 2, 2005
617
0
166
Dude your asking like really basic stuff

Here it is:
mkdir public_html
chmod 750 public_html
chown user.nobody public_html
 

peteer

Registered
Apr 17, 2011
1
0
51
I have the same problem, This is the first time I use cpanel and I deleted public_html folder.

I do not know how to use those commands to set up the directory.

somebody help me please.
 

LinuxTechie

Well-Known Member
Jan 22, 2011
502
14
68
cPanel Access Level
Root Administrator
Hello Peteer,

The above commands need to be executed from backend. i.e., via SSH. After logging into the server execute cd /home/user and execute the above mentioned commands.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
If you do not have access to anything but FTP and File Manager for the server, since it appears you have a cPanel account only, then you can use File Manager or FTP to recreate the folder. You won't be able to create it with the right ownership permissions, though, and you'll have to ask your webhost to correct the permissions to be username:nobody

Basically, please contact your hosting provider to ask them to resolve this for you.