Saturday, April 11, 2015
Moving a wordpress site from localhost (xampp) to a live server is relatively easy. The following tutorial is for people who know their way around a computer, xampp, cPanel and phpmyadmin. Here are the steps needed
1. You can transfer all the files at one but it would be relatively easy and effective to zip the files and then upload them to your server. To upload the website files, first create a zip file of the files. Eg. If the files are located in C:/xampp/htdocs/wordpress_site, create a zip file of the files inside the wordpress_site folder.
2. Then upload that zip file into the server via Filezilla or other file transfer application.
3. Extract the files inside the public_html server.
4. Create a database with all the necessary users and passwords.
5. Open the wp-config.php file and start editing. Enter the database name at DB_NAME, database username at DB_USER, database password at DB_PASSWORD, leave the DB_HOST as localhost.
6. It's time to edit some database tables. Go to the database and using phpmyadmin, open the wp_options table. The wp_options table might have a different name if you used a different table prefix. Just look for the table name #x@_options. Edit the rows named siteurl and home and write your domain. For example, if the siteurl and home have values such as http://localhost/wordpress_site, change those values to your domain.
7. After that, everything should work.
8. Incase the home page menu isn't working, be sure to edit the home menu item.

0 comments:

Ads

Recommended Post Slide Out For Blogger