The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

public_html folder accidentally deleted

Discussion in 'General Discussion' started by eveklc, Sep 12, 2009.

  1. eveklc

    eveklc Registered

    Joined:
    Sep 12, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi! I accidentally deleted public_html folder. Can I recreate the folder? How can I reset the File Manager? Please help!
     
  2. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    Dude your asking like really basic stuff

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

    peteer Registered

    Joined:
    Apr 17, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  4. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    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.
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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.
     
Loading...

Share This Page