• Hi,

    I’m developing a WP site on my local PC using Windows and running
    LightTPD as it was suggested as one of the options to use besides IIS.

    How will the deployment process work, since the User ID/Pass for
    both the Database and WP will be different on the HOST server?

    Do I only FTP the files included in the WP folder (WP-Content) to
    the Host server? I hope it’s this simple!

    If you know of any documentation for deployment, please let me know.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moving WordPress is likely what you want.

    Thread Starter shinch

    (@shinch)

    Thank you!
    There is an existing WordPress site on the same server where I’ll be deploying the new wordpress site (Obviously with a adifferent IP address).

    Can I use the same database configuration that is defined in wp_config.php for the existing site? or do I need to define new database connections in the wp_config.php (for the new site):

    DB_Name:
    User_Name:
    Pass:
    Database Host:
    Table Prefix: wp_ (In WordPress instllation it says: If you want to run
    multiple WordPress installations in a single database, change this)–

    Thank you.

    See if this helps.

    https://educhalk.org/blog/?p=34

    I would just go ahead and create a second, empty blog on the site with the name you want for the one you are going to import from your computer. Then drop the tables in the db (only the ones for the new blog), export the db on your local machine, edit the sql file and change the table prefixes and url, then import that to the new site on the server.

    Thread Starter shinch

    (@shinch)

    Thank you! The video was very helpful. I wish WordPress would also
    follow the same method, incorporating video with documentation. It saves so much time!!

    My understanding from the video is setting up a new blog as a subdirectory of the existing blog. In my case, the new blog has it’s own domain name but exists on the same server. For example:

    Blog1 site: https://www.example1.com/blog1/ –Already exists
    Blog2 Site: https://www.example2.com/blog2/ — New blog site

    So, In order to use the same DB on the server I could:

    1. Update the wp-config.php for MYSQL settings, and add a new prefix to $table_prefix

    2. Upload the WordPress directory to the server

    I’m not clear if I would still need to this: “Then drop the tables in the db (only the ones for the new blog), export the db on your local machine, edit the sql file and change the table prefixes and url, then import that to the new site on the server.”

    Thank you!

    Thread Starter shinch

    (@shinch)

    I don’t think the above steps would work for me becasueI just realized that the WordPress site that I have developed was created on my laptop. So, my DB connection parms are setup with my own definition.

    If I just copy the WP(blog) directory to the host server, and even change the wp-config.php, it will not work???

    Would I need to recreate the blog site again by accessing it on the server?

    Please advice. Thank you for your time.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deployment of WP site from local PC to the Host Server’ is closed to new replies.