The MU forums have moved to WordPress.org

Deleted wp-config.php (13 posts)

  1. johanhorak
    Member
    Posted 15 years ago #

    Hi I have an mu site with a few active blogs on it. I was trying to upgrade to 2.7 and accidentally deleted the config file at the temp dir.

    Can you help me to get it back. I was thinking of using index-install.php as I don't mind fixing it all up from there but I don't want to stuff if up further.

    You help is appreciated.

    Thanks Johan

  2. johanhorak
    Member
    Posted 15 years ago #

    I am now working on the wp-config.php and am trying to re-create it. I am now getting Error establishing a database connection at http://ilocals.info

    I am using this as the guideline http://codex.wordpress.org/Editing_wp-config.php

    Interesting that this page does not give me any settings for blogs in sub dir.

  3. andrea_r
    Moderator
    Posted 15 years ago #

    Because that page is for single user WP, not MU. :)

    There's a config sample in the download, use that. "Error establishing a database connection" means your db credentials are incorrect.

  4. johanhorak
    Member
    Posted 15 years ago #

    Hi andrea_r I am using the sample config file but need to know what to add where. I will search for an explanation of how to change the sample. I created my own troubles :-(

  5. johanhorak
    Member
    Posted 15 years ago #

    Hi I am making progress but am now getting this error.
    I wonder if this has something to do with .htaccess

    I am a little lost now

    Where do I start?

    Fatal Error
    If your blog does not display, please contact the owner of this site.

    If you are the owner of this site please check that MySQL is running properly and all tables are error free.

    Database Tables Missing.
    Database tables are missing. This means that MySQL is either not running, WPMU was not installed properly, or someone deleted wp_site. You really should look at your database now.

    What do I do now?
    Read the bug report page. Some of the guidelines there may help you figure out what went wrong.
    If you're still stuck with this message, then check that your database contains the following tables:

    * wp_blogs
    * wp_users
    * wp_usermeta
    * wp_site
    * wp_sitemeta
    * wp_sitecategories

    If you suspect a problem please report it to the support forums but you must include the information asked for in the WPMU bug reporting guidelines!

  6. johanhorak
    Member
    Posted 15 years ago #

    Hi I am on a self destructive path. I went here http://codex.wordpress.org/Debugging_WPMU and read that I must delete my .htaccess but later on it says that it should not be done for existing installs. Any ideas as I may just as well stop trying.

  7. andrea_r
    Moderator
    Posted 15 years ago #

    Are you sure you didn't accidentally delete anything else?

  8. johanhorak
    Member
    Posted 15 years ago #

    I deleted more files but I only followed the upgrade procedure and I have a backup of all other files other than htaccess and wp-config.php

    I followed this upgrade instructions and
    backup and deleted pages as per instructions
    other than the two above

    http://codex.wordpress.org/Upgrading_WPMU

  9. johanhorak
    Member
    Posted 15 years ago #

    Hi Here's a possible solution see tzmartin's idea http://mu.wordpress.org/forums/topic.php?id=11046 he suggest:

    "Try this:
    Remove wp-config.php from your server. Upload wp-config-sample.php and visit your index page for your MU root installation. From this point you can enter your database credentials and setup your site".

    Can this be done for a site that exists for more than 2 years?

  10. johanhorak
    Member
    Posted 15 years ago #

    Resolved. This is what I did: I create a new database and username and then used index-install.php to create a new install. I had my old wp-content and wp-includes directories.

    As soon as the new install was done I went and edit the wp-config.php file where I changed the db username and db name to the original installed db and db username.

    After a few sweaty hours I got it done and feel like a magician until next time ;-)

    I did not tell you that I am still running with 2.6.5 and scared to try going to 2.7.0 after all this trouble.

    Lesson: Backup Backup

  11. andrea_r
    Moderator
    Posted 15 years ago #

    Could pay someone to upgrade for you. :)

  12. johanhorak
    Member
    Posted 15 years ago #

    andrea_r Yes. That's a pretty good idea. Do you have anyone in mind who may want to do the upgrade for me? Thanks.

  13. andrea_r
    Moderator
    Posted 15 years ago #

About this Topic

  • Started 15 years ago by johanhorak
  • Latest reply from andrea_r