• My hosting company, 000webhost.com, deleted my account (and the WordPress blog, and the SQL database), because of inactivity.

    Luckily, I had backed up the site using tools provided by the host. However, I can’t get the site to load properly after I uploaded the files for the site and database.

    There is no index.php file in the wordpress subdirectory.

    The .htaccess file has only a single line:

    RewriteBase /

    Accessing the site with a browser yields only a directory listing.

    Attempts to execute a .php file yields errors like:

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/a*******/public_html/wordpress/wp-load.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/a*******/public_html/wordpress/wp-admin/install.php on line 36

    What must I do to get the site working again? Perish the thought of having to start over from scratch.

    Thanks in advance for any help.

    gslax

    P.S. – What is proper backup procedure? Some links from the forum were dead ends…

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would upload a fresh install of the WordPres core files and then the files you need from the wp-content folder.
    Once that’s done, connecting to the db should restore everything, but you might need to update the db. That’s just a call to action though, you click the button and it will update everything for you.

    In terms of backup procedure, I usually back up my theme, images & database using BackWpUp plugin. I never bother backing up the plugins or WP core files.

    Thread Starter gslax

    (@gslax)

    Thanks for your response. As you suggested, I uploaded a fresh copy of WordPress (after having deleted the contents of my account), created a new database and ran wordpress/wp-admin/install.php.

    I got the error message:

    “Can’t select database
    We were able to connect to the database server (which means your username and password is okay) but not able to select the xxxxx database.
    Are you sure it exists?
    Does the user xxxxx have permission to use the xxxxx database?
    On some systems the name of your database is prefixed with your username, so it would be like username_xxxxx. Could that be the problem?”

    Control Panel shows that the database was created correctly (although there is no data in it), and I checked that the database parameters in wordpress/wp-config.php were correct. I included the secret keys, if that makes any difference.

    Having once again started from scratch, I am at a loss as to what to do next. Please, any suggestions??

    gSlax

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't Restore Site after Backup’ is closed to new replies.