Fixing a Wordpress Site

by AyeDub
4 replies
I was given the task to help a friend restore his wordpress site. He supplied me with a zip file that included the folders: wp-admin, wp-content & wp-includes. Also all of the php files you'd typically see: index.php, wp-content.php, etc...

He also supplied an XML file.

But I know this isnt' like an HTML site where I can just upload those files into a folder on a domain and wa-la. Is it even possible to restore the website with these files? And if so, what's the process?

Thanks in advance for your help!
#fixing #site #wordpress
  • Profile picture of the author Paz
    Hi,

    I'd do a vanilla WordPress install on the new hosting and use the WordPress options Tools > Import and import the the XML file you were given.

    You can upload the wp-admin, wp-content etc stuff later.
    {{ DiscussionBoard.errors[7471994].message }}
  • Profile picture of the author WPcrew
    Process would go like this:

    1. upload all files to server
    2. create database via cpanel, set user and pass for db
    3. edit wp-config.php, you should set there user, db name, db pass and db_host (usually localhost) For example:

    /** The name of the database for WordPress */
    define('DB_NAME', 'wordpress');

    /** MySQL database username */
    define('DB_USER', 'root');

    /** MySQL database password */
    define('DB_PASSWORD', 'example_password');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    So, you would replace wordpress, root, example_password, and localhost if necessary.
    {{ DiscussionBoard.errors[7472284].message }}
    • Profile picture of the author digitalquilluk
      Originally Posted by WPcrew View Post

      Process would go like this:

      1. upload all files to server
      2. create database via cpanel, set user and pass for db
      3. edit wp-config.php, you should set there user, db name, db pass and db_host (usually localhost) For example:

      /** The name of the database for WordPress */
      define('DB_NAME', 'wordpress');

      /** MySQL database username */
      define('DB_USER', 'root');

      /** MySQL database password */
      define('DB_PASSWORD', 'example_password');

      /** MySQL hostname */
      define('DB_HOST', 'localhost');

      So, you would replace wordpress, root, example_password, and localhost if necessary.
      If you are suggesting an import of the SQL, then this method will work, but you will have problems with paths/domains. Wordpress stores the paths to various things in the database, if they are not correct it will not work so you will need to edit the SQL dump and correct links (or run some SQL queries) before you run the import.
      {{ DiscussionBoard.errors[7474664].message }}
  • Profile picture of the author WPcrew
    I moved sites from localhost to server dozens of times, and paths were really easy to fix before wp 3.5. And I always did that at the end, once the site is online and running, all you needed to do is go to settings/media, and type new location. That's it.

    Now it's little different, here's the link: How to Change the Default Media Upload Location in WordPress 3.5
    {{ DiscussionBoard.errors[7492441].message }}

Trending Topics