• Resolved markdrupal

    (@markdrupal)


    Hi All,

    Firstly, thanks in advance for any posts its very much appreciated! I am pretty new to wordpress, so apologies in advance.

    I started developing a simple blog site on my local lamp stack. However I am really struggling to move it up to my host (site ground).

    Initially I wanted to use wordmove. After getting it all setup with SSH etc I tried to send it up to a staging enviroment which I set up with site ground. I had quite a few things that I hadn’t quite got right in the movefile.yml file. However I eventually got it to the stage where I thought it should work. However there seemed to be issues with the plugins.

    So I decided that maybe my best solution, was to just try and restore its the old fashioned way. I took a backup of my local mysql database, uploaded it and the the wordpress core directories using filezilla. I then alterd the wp-config.php file to reflect the new database credentials.

    When I loaded the page I got as you see from the url (sailview.info/wordpress).

    I the following post on site ground about using the wp-cli tools – namely the following:

    `Connect to your hosting server via SSH, navigate to your WordPress installation folder and execute the following commands:

    wp db export

    This command will create a backup of your database into an SQL file. After that execute:

    wp search-replace ‘https://olddomain.com’ ‘https://newdomain.com’

    The search–replace command replaces all occurrences of https://olddomain.com with https://newdomain.com in the database of your application. Note that https://olddomain.com is the current domain configured on your WordPress and https://newdomain.com is the new domain that you wish to use.

    wp cache flush

    This is the last command that you should execute, so you can flush the object cache of your WordPress.`

    Anyway, I cannot get into the wp-admin either I just get the following:

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/sailview.info/public_html/wordpress/wp-config.php:1) in /home/customer/www/sailview.info/public_html/wordpress/wp-includes/pluggable.php on line 1340

    Has anyone got an ideas where I could start troubleshooting this?

    Thanks in advance,

    Mark.

    • This topic was modified 3 years, 2 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Thread Starter markdrupal

    (@markdrupal)

    Hi all,

    Thanks for all the help!

    I kept going around and around in circles and retryed. Basically I think it was more of a RTFM thing really. Turned out the site url in the WP-options table was causing me issues, after altering the table it all seems to work. Although I was using the old school method of FTP and a database backup….good to learn these things though.

    I think the wordmove program was causing me some issues…guess I need to take things one step at a time…is this the prefered method of moving worpdress instances from dev to staging and production? I read this article.

    Thanks again,

    Mark.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Moving from a local dev enviroment to production (siteground)’ is closed to new replies.