admin管理员组

文章数量:1130188

A few years ago I developed my personal portfolio locally on my previous laptop, and then uploaded it to my web hosting. Now I would like to download on my new computer the latest version of the website, so I can continue to develop and improve the front-end part with the same tools I used in the past (Gulp for minyfing css and js and other tools like that).

Unfortunately it is not working. This is what I have done so far:

  1. From my hosting I have downloaded the new DDBB from phpAdmin, and uploaded it to Mamp's phpAdmin (name of the new DDBB: portfolio).

  2. From the hosting I have downloaded the complete folder of the website and put it in the htdocs directory of Mamp

  3. I start the Mamp server

  4. I modify the options table of the new DDBB in Mamp as follows: Siteurl: localhost/folder Home: localhost/folder

  5. I modify the wp-config.php file as follows:

    // ** ** MySQL settings - You can get this info from your web host ** // // /** The name of the database for WordPress / define('DB_NAME', 'portfolio'); /* MySQL database username / define('DB_USER', 'root'); /* MySQL database password / define('DB_PASSWORD', 'root'); /* MySQL hostname / define('DB_HOST', 'localhost'); /* Database Charset to use in creating database tables. / define('DB_CHARSET', 'utf8'); /* The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', '');

  6. When I go to localhost/folder/wp-admin/ in browser, it looks like a mess, like a plain html of the main Wordpress admin page.

What am I missing?

More info: i tried to install a new Wordpress blog, and it seems to work fine, so Mamp should not be the problem. I'm using ports 80 & 3306 in Mamp confioguration, so I don't have to type :8888 in the url to access the local server.


For all those who are facing my same problem, I have found the solution in this guide. In my case with the 2nd method. I hope it will help you.

本文标签: localhostMigrate from remote back to local