Why is my public_html folder suddenly empty?

There can be several reasons for why your files seem to have suddenly disappeared.

Deleted manually

It is possible someone logged in to File Manager and deleted or moved the files. Check you other folders and check outside of public_html.

FTP access used

If you gave FTP access to someone, they do have the power to delete files. They may have accidentally downloaded the files without leaving a copy, although it is not an easy mistake to make.

To prevent this, you can create them a FTP account which only has access to a subfolder in public_html. This will allow them the access they need, while barring them from seeing and changing anything in your public_html folder.

Unfortunately, you cannot give someone access to a directory, but then prevent them from deleting the files there.

Accessing the wrong account

This mistake is much more common than you think. Be sure you are using your cPanel user name, and not "root". This especially applies to those using SSH access.

  • 21 Users Found This Useful
Was this answer helpful?

Related Articles

How to upload to an Addon or Subdomain

Option 1Step 1: In a FTP client enter this information. Host = add on domain name User...

Backup file types - cPanel

So, you have a backup file, but you need to know what type of backup it is so you can know what...

How to repair a broken database

If you get an error which says, "so-and-so is marked as crashed and needs to be repaired," then...

Apache Error Logs

When you check the error logs, you can see many things.Some things you can ignore:File does not...

How do I create and delete a cron job?

Cron Jobs run scheduled tasks at specific times. This is good to set up automated maintenance and...