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 deleted... now now www.

Discussion in 'General Discussion' started by sch, Jan 10, 2008.

  1. sch

    sch Member

    Joined:
    Jan 10, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I have a client that needed me to install a php app. Apparently, when removing an FTP account via cPanel he hit the 'Yes, and delete files' button and public_html and all its contents was removed. Now... his domain does not use the www. How do you fix that?


    P.S. I think he was confused about the Yes button which said delete all files. I looked and I would have thought it meant delete all files relating to the ftp account - might want to emphasize that on the next cPanel release.
     
    #1 sch, Jan 10, 2008
    Last edited: Jan 10, 2008
  2. Roxanne

    Roxanne Member
    PartnerNOC

    Joined:
    Jan 10, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, FL
    That doesn't sound like a Cpanel problem? Also the Yes, delete all files within this folder is pretty straight forward/blunt statement. Can't blame Cpanel for that.
     
  3. sch

    sch Member

    Joined:
    Jan 10, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    So what you are saying is, if the cPanel user clicks the 'Yes and all files' button when deleting an FTP account and cPanel deletes the public_html directory and ALL files in it and then they check their site later [after loading the script again] and and the www. no longer is displayed it has nothing to do with cPanel and the fact the public_html directory was deleted? I find that to be a little suspect.
     
  4. Roxanne

    Roxanne Member
    PartnerNOC

    Joined:
    Jan 10, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, FL
    Sorry, I wrote down what I was thinking the wrong way. The fault is the user for pressing the button in the first place. I understand it was an accident, though.

    By any chance has your client made a back-up of his files? If so then you can recover everything with that. Have you tried creating a new public_html folder and putting an index.html file to see if it worked?

    Also you said while he was deleting an FTP account, so he deleted his main account or was it a sub-account?
     
  5. kieranmullen

    kieranmullen Well-Known Member

    Joined:
    Aug 25, 2005
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Portland, OR USA
    this is a bit off topic, but regarding the programming that went into that web command.

    Would it not make more sense to delete all files within the directory except for the directory itself which is needed?

    Like the folder is owned by root but all contents in it belong to the user that puts it there?

    Thank you

    KieranMullen
     
  6. sch

    sch Member

    Joined:
    Jan 10, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Well... you live you learn - not much can be done about it now.

    This was a sub FTP account he deleted and he had not made any backups of his files as we were just starting to set up his site on his new server.

    It does not make any sense to me at all. Prior to the public_html directory being deleted the url was using the www. and after he clicked that button and cpanel deleted the public_html directory it started loading without the www.

    Yes, we have a script installed in public_html. Its a script I install everyday for clients and it never installs incorrectly.

    I thought cPanel updated virtual host and/or httpd.conf when this happened... this seems more like a server issue somewhere.

     
  7. sch

    sch Member

    Joined:
    Jan 10, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I have to wonder why, when deleting a FTP account, cPanel would think to delete the public_html folder to begin with...



     
  8. Roxanne

    Roxanne Member
    PartnerNOC

    Joined:
    Jan 10, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, FL
    Yes, that doesn't make much sense. Since a sub-FTP account would have nothing to do with it unless you delete the main FTP account. When your client deleted this, he did it all himself correct, you don't think by some chance he isn't giving you the whole story, and by accident deleted his main FTP account, or the public_html? I'm trying to get you to accuse him of anything, but it never hurt to ask? If so, it would make a lot more sense why this happened.
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    /usr/local/cpanel/logs/access_log may log what precisely happened here.

    I'm a bit confused myself, as deleting a FTP account doesn't delete any files in my experience.
     
  10. Roxanne

    Roxanne Member
    PartnerNOC

    Joined:
    Jan 10, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, FL
    Its a new feature now in Cpanel 11 where you are able to not only delete the FTP account, but all the files created under it. I think its a handy feature, since when I had 10 I would delete the FTP account and then would forgot about the files and when I looked at my public_html folder I'd have a like 5 folders that needed to be deleted since I deleted the FTP account.
     
  11. sch

    sch Member

    Joined:
    Jan 10, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    It deleted the files in public_html and the public_html folder when he deleted the FTP account...


     
  12. sch

    sch Member

    Joined:
    Jan 10, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    It was the FTP sub account deletion that did it. He emailed me when it happened and I logged into cPanel and his main FTP account was there but the sub FTP account he created not. The guy wouldn't go in and just delete the entire public_html folder.


     
  13. sch

    sch Member

    Joined:
    Jan 10, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I thought it meant the FTP account files too and maybe it is supposed to mean that but in his case... it wiped out everything. There is something wrong with his installation of cPanel or something.

     
  14. lehels

    lehels Well-Known Member

    Joined:
    Jul 10, 2006
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6

    We have clients who are erasing their own public_html/ and it happens like ~twice weekly, but backups are invented. Pretty bad if nor the hosting, nor the client has no data from his own site, sounds a bit /stupid/.
    Maybe something smells around that FTP account, but you have to check what path was attributed, and that folder obviously will erase if it's asked and you said YES. "You" should think before, and no more headaches after. Anyway the keyword is: backup [and LOGS to investigate].

    Cheers,
    Lehel
     
    #14 lehels, Jan 11, 2008
    Last edited: Jan 11, 2008
  15. sch

    sch Member

    Joined:
    Jan 10, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Thanks wise ass. It shouldn't delete the public_html folder.



     
Loading...

Share This Page