Moving from a local dev enviroment to production (siteground)
-
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.
The page I need help with: [log in to see the link]
- The topic ‘Moving from a local dev enviroment to production (siteground)’ is closed to new replies.