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:
From my hosting I have downloaded the new DDBB from phpAdmin, and uploaded it to Mamp's phpAdmin (name of the new DDBB: portfolio).
From the hosting I have downloaded the complete folder of the website and put it in the htdocs directory of Mamp
I start the Mamp server
I modify the options table of the new DDBB in Mamp as follows: Siteurl: localhost/folder Home: localhost/folder
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', '');
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
版权声明:本文标题:localhost - Migrate from remote back to local 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736754821a1951232.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论