Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChad Pjontek
13,700 PointsHow to Migrate a Local WordPress Site to Live Server - Can't get my project mirgated
After following all the steps to migrate my local site to my host provider (Godaddy) I keep getting prompted to install WordPress when I navigate to the url where the files are uploaded to. I've been trying to troubleshoot this for the last 3 days with no success. My local site works without any issues and I'm not really sure what would be causing this to happen. Do I need to install WordPress first or possibly create a WordPress admin account before uploading? I did not see any mention of this and if so how do I go about doing that correctly. Steps I had tried a few things outside of the video instructions including: Using the Search and Replace DB script after uploading both project files and importing the project DB using phpMyAdmin before visiting my site URL. Using the Duplicator plugin on my local site to create and package and install script. Deleting files and re uploading multiple times. Going into the DB to change the Home and Siteurl fields in the wpOptions table.
I've verified that my wp_config.php file has all the correct info and I'm not really sure where to go from here. Any help on this would be greatly appreciated!
6 Answers
Christopher Mell
9,152 PointsTry adding
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
to the header.php file. This tells the theme where to find the css file. If you have other css files you can add
@import url( 'point_this_to_stylesheets' );
to the style.css file
Hope this helps
Christopher Mell
9,152 PointsYes, you should install Wordpress to your host. Then it should work.
Chad Pjontek
13,700 Pointshow exactly should I go about doing this?I have tried installing it after uploading my local files when prompted and the result the creation of new tables within my imported database and no access to my plugins. I can access the theme but there is no connection to uploaded tables therefore can't see my completed site. Should I instead install WordPress then import my database?
Christopher Mell
9,152 PointsSo you don't have Wordpress installed on your GoDaddy host location?
Chad Pjontek
13,700 PointsCorrect. The install folder is empty before I begin uploading the local files. Is this wrong?
Chad Pjontek
13,700 PointsOk I was able to finally get some of my site to work but I can't seem to get the styling to work. Here is my site's url: http://chadpjontek.com I've tried uninstalling and re installing several times but it's still not working. I've checked and triple checked the url's to make sure the old ones were replaced with the Search and Replace plugin. Not sure why my styles wouldn't show up.
Christopher Mell
9,152 PointsCan you zip the files and email them? I can check the src code if you wish
Chad Pjontek
13,700 PointsYes thank you very much. Where should I email them to?
Christopher Mell
9,152 PointsJonathan Smith
2,672 PointsHi, I'm not sure if you fixed the problem yet. I'm thinking about starting a .com site and plan to migrate to .org later also. I found this site and thought it might be helpful. http://www.wpbeginner.com/wp-tutorials/how-to-properly-move-your-blog-from-wordpress-com-to-wordpress-org/
HTH, Jon
Chad Pjontek
13,700 PointsYeah I fixed the problem but thank you Jonathan.
Chad Pjontek
13,700 PointsChad Pjontek
13,700 PointsThank you! This fixed it... almost. I still can't get the fonts to display correctly. I added
to the style.css as well as
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
to the header.php file inside the head tag. I also noticed that ss-social.css had the following comment in it:
I tried adding the code above to the header.php head tag with no luck. Anymore suggestions?