Jump to content

How to move from local to live server?


dees2012
 Share

Recommended Posts

Hello Everyone!

I have been looking for all over the internet for instructions on how to move a Processwire site from local (Xampp) to a live server. This is important because I don't want the website to be viewed while its being worked on. Does anyone know where I can find any information?

Thanks :)

Link to comment
Share on other sites

Hi dees2012 and welcome to PW.

Here is a comprehensive writeup from Ryan:

https://processwire.com/talk/topic/27-moving-pw-between-staging-and-live-server/?p=63

There are lots of other posts about this:

http://bit.ly/1i9iJ3r

Hope that helps. Let us know if you have any specific questions.

Thank you for that information. I checked it out and its exactly what I have been searching for.

Link to comment
Share on other sites

I found this very useful when dealing with my dev and live configurations.

Paste and configure in /site/config.php


$base_url  = $_SERVER['SERVER_NAME'];
switch ($base_url) {
	case "samplewebsite.dev":
		// LOCAL CONFIG
		$config->dbHost    = 'localhostdb';
		$config->dbName    = 'processwire';
		$config->dbUser    = 'root';
		$config->dbPass    = 'PaSsWoRd';
		$config->dbPort    = '3306';
		$config->httpHosts = array('samplewebsite.dev', 'www.samplewebsite.dev');
		$config->debug     = true; 
		break;
	case "samplewebsite.com":
		// LIVE CONFIG
		$config->dbHost    = 'livedb';
		$config->dbName    = 'processwire';
		$config->dbUser    = 'username';
		$config->dbPass    = 'pAsSwOrD';
		$config->dbPort    = '3306';
		$config->httpHosts = array('samplewebsite.com', 'www.samplewebsite.com');
		$config->debug     = false; 
		break;
}

  • Like 5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...