Skip to main content
Nicodomeus
Inspiring
November 12, 2015
Answered

Why can I not use GET / PUT checkout with wordpress sites.

  • November 12, 2015
  • 3 replies
  • 960 views

I set up client sites connected through FTP with dreamweaver. But when I do it with wordpress sites, I can not navigate to it on localhost because the database permissions are different, and if I overwrite the wp-config the live site no longer works (I am smart enough to hard copy and config files before I break stuff ). So then I set up a wordpress local host, but when I PUT them to the site, they get lost in some imaginary place and no changes are pushed through. Thank you.

    This topic has been closed for replies.
    Correct answer Nicodomeus

    I figured it out. FYI HERE ARE THE STEPS.
    1. Connect to remote server and PULL all files in public_html to your WAMP or MAMP /www folder.

    2. AFTER all files are pulled, save a hard copy of wp-config.php somewhere safe.

    2. Delete wp-config.php IN THE LOCAL VIEW!

    3. Navigate to the wordpress folder in browser, EXAMPLE:    localhost/public_html

    4.You will be prompted to set up a new wordpress, when you do, make sure the table prefixes are the same as the remote server prefixes.

    5. Import your XML file from the Wordpress on the remote server.

    6. ENJOY.

    Word of caution, when you are working on your theme on your local view, and PUT the files to the server, make sure you NEVER say yes to including dependent files, you run the chance of overwriting the remote wp-config and if you did not save a copy you can not get back into it. Have a great day everyone.

    3 replies

    Nicodomeus
    NicodomeusAuthorCorrect answer
    Inspiring
    November 13, 2015

    I figured it out. FYI HERE ARE THE STEPS.
    1. Connect to remote server and PULL all files in public_html to your WAMP or MAMP /www folder.

    2. AFTER all files are pulled, save a hard copy of wp-config.php somewhere safe.

    2. Delete wp-config.php IN THE LOCAL VIEW!

    3. Navigate to the wordpress folder in browser, EXAMPLE:    localhost/public_html

    4.You will be prompted to set up a new wordpress, when you do, make sure the table prefixes are the same as the remote server prefixes.

    5. Import your XML file from the Wordpress on the remote server.

    6. ENJOY.

    Word of caution, when you are working on your theme on your local view, and PUT the files to the server, make sure you NEVER say yes to including dependent files, you run the chance of overwriting the remote wp-config and if you did not save a copy you can not get back into it. Have a great day everyone.

    Rob Hecker2
    Legend
    November 13, 2015

    Glad you got it sorted out.

    If you can set the permissions of the remote config file so that the FTP user cannot write to it, that would keep it from being accidentally overwritten by the local copy.

    Nicodomeus
    Inspiring
    November 13, 2015

    True, but, doing a write-up on how to do that for every hosting provider would be out of the scope of this forum, I think I will do an in depth one on my blog in the coming week. But for now, here is a band-aid for the issue hahaha.

    Rob Hecker2
    Legend
    November 13, 2015

    if I overwrite the wp-config the live site no longer works

    I'm scratching my head and wonder why you don't simply not overwrite the file

    Nicodomeus
    Inspiring
    November 13, 2015

    Ok, the client has already set up wordpress. I get the files, with that comes the wp-config. Which has the encryption for the password for the remote server in it already. I can not copy the encryption to the WAMP localhost. So I change it, then localhost wordpress says that is CAN connect to the database, BUT, there is an error elsewhere. SO, I have a brand new version of wordpress installed, I import the clients wordpress files, I can work with it like that, BUT when I try to push to the remote server, it does nothing.

    Ken_Binney
    Inspiring
    November 13, 2015

    WordPress  sites are meant to be managed through their interface.

    Those "pages" don't exist until a visitor requests one and the server composes the page from a database.

    If you examine the source code of a page you'll see what I mean.

    Nicodomeus
    Inspiring
    November 13, 2015

    No, I know that, I have built about 7-8 themes. What I am saying is, a client already has wordpress set up through go daddy or some sort. I connect to the ftp by using Dreamweaver GET / PUT. I "get" all the files, I can not run locally on my WAMP because wordpress wp-config is built for go-daddy or Network Solutions or whoever is hosting. There should to be a way to set up a testing server, through WAMP, for "pulled" wordpress sites. I know how wordpress works hahah.

    Ken_Binney
    Inspiring
    November 13, 2015

    OK

    Try posting here

    Coding Corner