There was a problem loading the comments.

Restoring a Website in DirectAdmin (WordPress)

Support Portal  »  Knowledge Base  »  Viewing Article

  Print

This article explains what to do when a serious problem occurs on your website and it needs to be restored. For this, you must already have the restore (backup) file. You may have created it yourself, or received it from our support team.

1.
Backup files end in .tar.gz. First, the file must be uploaded to the server. The restore file may already be waiting in your folder (if we sent it to you). If it is on your computer, upload it there using an FTP client. Create an FTP account in DirectAdmin and log in to your FTP client. Find the .tar.gz file and upload it to your home folder.

4e44d072238a04457892447d301f9cdbdd001746?t=ee09b40688643c068e803d1f2610b05a



2.
Log in to DirectAdmin and go to File Manager. The backup file should now be visible here. Click Extract.


34a7c4ec45d9cd07bb59cc47fd7a7b9711552737?t=2612a67a1503e2c51ae8df4895bde78b



3. Select the destination to which the files will be extracted. In DirectAdmin, the path is usually domains/vasa-domena/public_html. Enter it in the field and click Extract.


0e405df442e433869ef8c4cbb6e613b5e2922126?t=cfbb8bcb8aedfd1872d34b1d225bb57f


4. If the process was successful, you will see the notification below.

9f92052ff27f8fde528b8a7d61878f84a875beae?t=36e519b6c06687398fd0546da0ae350b


5. The website itself has now been restored. Next, you need to restore the backup of the database associated with the website. To do this, open phpMyAdmin. The system will ask you for a username and password. You can find these in the wp-config.php file, which is located in the public_html folder. Navigate to this folder, find the file and click Edit.


6. Find the entries DB_USER and DB_PASSWORD. The username and password are written next to them. Use them to log in to phpMyAdmin


7. In phpMyAdmin, select the database you want to restore. Go to Import and select the (previously prepared) .sql file. Click Go.

9a58c1301bb9223360b7b793e1b52dd2da6614fa?t=baaa2367207d479076af78d7934a11a7


8. If the database is identical, the system will report this. If the restore (that is, the database import) was successful, it will display the following:


ec2a9d81a90d743c9c8b75740243bd68c7d88276?t=5358024d91591caae603afc136dd7482



You have successfully restored your website!


Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal

Tags

© Humanfrog