dees2012 Posted April 1, 2014 Share Posted April 1, 2014 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 More sharing options...
adrian Posted April 1, 2014 Share Posted April 1, 2014 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. 2 Link to comment Share on other sites More sharing options...
dees2012 Posted April 1, 2014 Author Share Posted April 1, 2014 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 More sharing options...
OrganizedFellow Posted April 1, 2014 Share Posted April 1, 2014 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; } 5 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now