Jump to content

Recommended way to move installation from local to production server


Recommended Posts

Posted

I am about to put my first ProcessWire-powered website onto a live server, and I was searching the website and forum on how to do this. Maybe I used the wrong search-terms, but I did not find anything on how this should be done.

I can obviously just throw all the files on the server through FTP, and put the database in place using PhpMyAdmin. Then change the DB-credentials in config.php and I think it should work, but I don't know what the recommended way is to push a website from your local/dev-environment to a live webserver.

Posted

I usually do this and it simplifies things if your local and remote credentials are the same. 
 

1. Turn on errors on your config file to make trouble shooting easier

2. Zip up all your local files and ensure to get your htaccess too

3. Export the local database and import it into the remote plesk server or whatever you’re using

4. Set up remote database credentials 

5. unzip remote files

From that point onwards, I might have some htaccess issues or I might need to look at site logs etc but most of the time it goes smoothly enough.

You’re installing onto a blank site right? 
If there is an existing site in the webspace which you didn’t create, ensure to rename the index.html page

 

 

 

  • Like 1
  • Thanks 1
Posted

For a "brand new" host (one I've never used before), I always start with a clean installation of ProcessWire because the installer runs its requirements checks during installation. After successfully installing ProcessWire, I replace all files and the database, adjust the config settings, and then it's ready to go.

  • Thanks 1
Posted

No probs. Just out of curiosity, who are you hosting with as I recall some hosts have weird setups. I recall GoDaddy in particular caused me issues before. Nothing some htaccess wrangling didn’t fix but a head scratcher at the beginning.

Posted

It is not going to be one of the big US-based hosting-companies. I'm European, so a EU-based host has my preference as the lower geographical distance will be good for the speeds.

The one I am looking at as the most probable choise is a rather small one that I have previous experience with. The benefit of that one is that I can just send them a message if I need anything, and their responses are always fast and really answer the question. That is something I miss with large companies: direct contact with a person who has the knowledge.

  • Like 1
Posted

@_Roy_ Just a quick tip: if mod_security will be enabled and you run into troubles, most of the time the only option is to disable mod_security.

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
  • Recently Browsing   0 members

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