Forum Moderators: phranque

Message Too Old, No Replies

Moving From Local to Production

         

almo136

1:43 am on Feb 11, 2009 (gmt 0)

10+ Year Member



Hi,

I have a scenario

I install something (Ie. wordpress) locally and run it using MAMP.

I then want to move it to my hosts remote server (linux). Is it just a matter of adding the database via phpmyadmin and then upload all the files via ftp?

Or would I need to reinstall wordpress?

This is a general question and not aimed solely at wordpress.

Thanks!

jdMorgan

2:19 pm on Feb 11, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You would certainly have to "install" WordPress on the server -- I'm not sure why you used the term "re-install."

The success of this approach depends on having the exact same application version and database manager running on both machines, so it's very hard to answer the question, "Will it work?"

You might consider having two main file directory structures on the server, and mapping the domain name to only one at a time. Then map some other URL (say, a "test" subdomain) to the new WP content directory structure, so that you can test it on the live server without interfering with the production site. When you are ready, switch the mapping function so the the production domain points to the new directory.

This advice is general because I don't know what privileges you have on the server. Also, I don't know what dependencies WP might have on the domain name; If it's "hard-coded" by the installer, then this won't work. But generally, you can do this kind of thing with separate VirtualHost and DocumentRoot declarations for production and test, or with mod_rewrite in a single VirtualHost, having the "test" subdomain defined as a ServerAlias.

Jim