Transfering from Localhost

Register an Account
 
 
Article Tools Display Modes
  #1 (permalink)  
Old 10-26-2009, 11:53 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
This wiki article discusses steps to take a localhost installation and moving it onto a web server. This is useful for those who want to build a site on your computer first and then take the site live on a domain. If you have any additional information or tips, please add to the article below by clicking on the Edit button at the bottom of the wiki article.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #2  

Transfering from Localhost

Transferring your Pligg site from a local computer to a web server isn't that difficult if you have a guide. Here are some steps to get your site transferred onto a web host.
  1. Copy your files over to your web server.
  2. Make sure that you have the correct CHMOD settings on your web server. You can use /install/troubleshooter.php to quickly check for any CHMOD or other problems.
  3. Remove the /install directory from your server.
  4. Edit settings.php lines 2 and 3 to match the location of your site. You will need to change these settings again later in Admin > Configure > Location Installed
  5. Log in to your localhost phpMyAdmin panel. Usually this is something like http://localhost/phpmyadmin
  6. Click on your Pligg database table on the left side of phpmyadmin.
  7. Click on the export tab on the right
  8. At the bottom of the page click on the zipped option where it says "Compression" then press the "Go" button to generate a zipped archive of your mysql data. Save the file to your desktop.
  9. Generate a new MySQL database through your hosting provider. See their documents on directions on how to do this, directions differ between hosts.
  10. Open up /libs/dbconnect.php and edit the database connection details to match the newly generated MySQL database on your web host.
  11. Open up your hosting providers phpmyadmin area.
  12. Click on the Import tag on the right. Browse for the zipped file that you downloaded to your desktop. Then click the "Go" button to upload it.
  13. Navigate to your website. You should see it working at this point. Log in to the Admin panel like you would on your localhost server.
  14. Go to Admin > Configure > Location Installed and edit the details to match the new location for your site.
This may seem a little overwhelming, but if you follow those directions step-by-step you shouldn't have a problem.


Contributors: Yankidank
Created by Yankidank, 10-26-2009 at 11:53 PM
Last edited by Yankidank, 10-26-2009 at 11:54 PM
4 Comments , 2373 Views
 

Article Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Several PHP notices in localhost Solaris Questions and Comments 2 02-14-2009 04:12 AM
Admin config from localhost to webhost bargainz Questions and Comments 2 10-30-2008 11:19 AM
The Real Cause Of High Load For My Server Using PLigg 9.9 and Was 9.8.2 argh2xxx Questions and Comments 18 01-10-2008 05:33 PM
Profile link from anywhere except localhost gives "error 2" lookingchris Questions and Comments 0 07-22-2007 01:58 AM
'max_user_connections' suddenly exceeded mightyb Questions and Comments 10 06-13-2007 05:40 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development