My Entire Website Is Gone After Installing WordPress - How Can I Recover?

lanet01

Registered
Jan 9, 2020
2
0
1
Georgia
cPanel Access Level
Website Owner
Hello,

So I had website with contents on it: images, texts... The website was working well and running pretty good. Then I decided that it would be good to install WordPress there and continue building the website from there, but after installing WP, my entire website was gone. No contents, no images, I just got a blank welcome page.

But before installing WP, I made Full Account Backup from cPanel. It's saved on my computer in .tar.gz format. For some reason, it does not contain index.html file, so uploading it in public_html folder does nothing.

I want to restore my website with backup file I have, so it will be just like it was from the time I have made the backup.

Any help is appreciated!
 

lanet01

Registered
Jan 9, 2020
2
0
1
Georgia
cPanel Access Level
Website Owner
When you installed wordpress were you using an index.html file prior to the installation? If you rename that file doe the website function again?
Prior to installion there must have been index.html file, because the website was running well online.

"If you rename that file does the website function again?" What file do you mean? As in OP, I don't have index.html file in the backup file, nor do I have it in public_html folder. But I do have index.html file from another backup I think (home directory backup) and when I put it in public_html, the website runs, but only like 20% of it: images/contents are gone, icons are not showing up properly...

I don't understand what could be the cause of the issue.
 
Last edited:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,292
313
Houston
Wordpress doesn't use index.html files it uses index.php files which is why I asked the specific question. Depending on your DirectoryIndex priority configuration if an index.html file is present it would in most cases take precedence over the index.php file.
 

keat63

Well-Known Member
Nov 20, 2014
1,961
266
113
cPanel Access Level
Root Administrator
Do you have all the other files/images and just missing your index.html file. ?
Maybe something like waybackmachine might help you get this back.
Just a thought.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
745
302
363
cPanel Access Level
DataCenter Provider
If it's just a directory index "thing" you may be able to fix it by putting this in the top of your .htacess file:

DirectoryIndex index.html index.php

That tells the web server to look for index.html and then index.php. That is a quick/easy way to test if that is the issue.

The backup should have all the site files. You can extract the .tar.gz file on your computer. Within the extracted files you should see a folder called 'homedir' and within that will be the public_html folder. All the site files should be there.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,668
341
438
Finland
cPanel Access Level
Root Administrator
I want to restore my website with backup file I have, so it will be just like it was from the time I have made the backup.

Any help is appreciated!
If the backup you made is a Full Backup then only root user can restore it, so you'd have to ask your hosting provider to do it.