I am using the plugin BackWPup to migrate my site, to a local environment for testing.
My problem is the url's. They point back to the site online and not my site locally.
I am using xampp and phpmyadmin.
This is my first migration. The database is connected and everything seems to work, except for the url's. Where can i change the url's? Do i need to change it in the database. If so which table?
Thanks in advance
I fixed my problem.
I followed these tutorial.
https://www.sitepoint.com/how-to-migrate-a-wordpress-site-to-a-new-domain-and-hosting/
https://codex.wordpress.org/Changing_The_Site_URL
After you done this, remember to go directly to.
www.yoursite.com/wp-admin
Check your permanent links
Hope this helps someone else.
Related
Still relatively new to Wordpress. I created a basic wordpress site for myself on a local XAMPP server. Using the Duplicator plugin I was able to move my local site to my live host with no problems. From everything I've read so far, the best practice for making changes to your website is to test on your local server and then make those same changes on your live site once you know it won't break anything.
My problem is that I'm planning on making lots of large changes and expanding my site a bit so I really don't want to do everything twice. What is the best way to download my live site back to my local, make my changes, and then upload them back to my live server?
Everything I've searched for in relation to this question is just how to use Duplicator to move your site to somewhere that doesn't already have a site installed, which in this case, I've got versions of the site on both my local and live servers already. Do I need to overwrite? Create a new folder and start over? I can do that on my local side, but not sure how that would work going back to live...
And as far as the database goes, is it better to overwrite or create a new one? I was able to just create everything new on the local side, new /test-site/ folder and new database, but I feel like that will get rather complicated if I try to move it back. Or should I just go ahead and make my changes live and hope everything works correctly and there won't be any issues like a newbie (even though I am a newb)?
I'm using Hostgator Cpanel on the live server side. And Windows 10, XAMPP on the local server.
Any help is greatly appreciated! The more simple directions the better. As well as any advice on workflow to set this type of thing up.
There is no big deal in editing your live site as long as you know what you're doing and you're keeping backups to date.
Anyway, if you want to go with what you have described above. Again, you don't need to download your live site again and again but make sure you don't do any changes on live site and so that your local site is always ahead of the live.
For me, an easy way is to use the All-in-One WP Migration plugin with which you can migrate from local to live within 5 minutes without the need to delete the current site, run the process like Duplicator does.
http://sidparmar.ca/portfolio/ This is my portfolio website and an only home page is working with the domain name. Every link is broken unless replaced by IP of my VPS which is 64.20.53.42.
So usually it should work like sidparmar.ca/portfolio/contact/ (give me an error "The requested URL /portfolio/resume/ was not found on this server.")
but currently, it is only working if I type 64.20.53.42/portfolio/contact/ as URL.
Please let me know if you have any suggestions/advice or pointer that I should look into. Any help is appreciated.
Has your site been like this since you installed Wordpress? If so, then where did you install wordpress (i.e. what directory)? It looks like you did not install it in the web root directory of your web server. Also, when you installed Wordpress, are you sure you specified the correct URL of your website?
My suggestion based on the limited information you provided and the minor amount of custom content of your website is to simply delete your database and files, create a new database, and re-installation Wordpress following exactly the correct instructions. Your VPS host may have an outlined process for you.
Alternatively, if this is a new issue, do you think you caused it? If so, what did you do? If not, you should probably contact your VPS host to see if you or they need to make an update in your DNS settings.
Found the answer by myself! Yeah!
I just added "ServerAlias www.domainname.ca" to my apache2 conf file (000-default.conf) which you can probably find at /etc/apache2/sites-available directory in your VPS.
Not sure why this worked or what exactly caused the problem but I am sure that it happened because of Yoast SEO plugin.
I have never used wordpress before, My boss has given me access to a site which was created using wordpress. then He asked me how I am going to make sure I don't break the site accidentally, I told him I would create a backup on my local computer so that all my changes can be restored if I mess up.
I have the wordpress dashboard up. How do I back up EVERYTHING, I hear there are two separate things I need to back up? someone please help me.
PS: I don't think he would like me to do this with out the use of additional plugins.
There are two separate things:
Your website database. Simply export all the MySQL tables from the database, which is dedicated to your site.
The site files, everything you've got under WordPress folder, /wp-includes, /wp-content, /wp-admin directories and all files.
This should do it all. You can test on your localhost to make sure it's everything that's necessary.
You can backup your WordPress either from your hosting account (preferable) or from your WP dashboard.
You need to backup two things - all the files (the root of your Wordpress installation) and the database for your WP installation.
Since you only have access to the dashboard, you have to use plugin for this.
Two of my favorite free backup plugins are:
BackupWordpress - https://wordpress.org/plugins/backupwordpress/
BackWPup - https://wordpress.org/plugins/backwpup/
They are intuitive and easy to work with, so you shouldn't have issues.
If you go to the dashboard go to "tools" in the left toolbar. Select "export". On the export page you can report that you want to export "all content". This will get you the items that you need from the server.
Then you need to install wordpress to your machine. You can download that from: https://wordpress.org/download/
Once you have that on your machine you also need a local server to run it and test it. I like WAMP, but it partially depends on your operating system. I suggest the following video to get you up to speed on how to get the localhost set up and running: https://www.youtube.com/watch?v=snFzbPm_RUE
Hope this helps!
I am currently migrating my website that was hosted on GoDaddy to an Amazon Linux instance. Everything has worked so far using elastic IP that I allocated, but I haven't been able to access other pages using the GoDaddy domain I transferred from my original website.
I have tried to change the site address/URL structure in the Wordpress settings, but I almost broke my website (TWICE!). Should I be changing one of the .htaccess files instead of the native Wordpress setting?
My elastic/public EC2 instance IP is: 52.26.232.168
The domain I would like to point to the IP is: artrantsbyaj.com.
Any help is greatly appreciated.
NOTE: I do not yet have a high enough reputation to post images yet, I apologize.
Try to refresh your permalinks:
Go to the permalink settings and save them (do not change anything, only click on save to refresh your permalink structure).
Test it and let me know if you have any problem.
Regards.
I'm in the progress of setting up a development and live development environment for some basic projects I'm working on. Ideally I want git to push changes from the development server to the live site. However I want each version to use the exact same database so the posts and content are identical at all times.
Obviously the Site URL is set to only the live site so the development site's links don't work. If I overrode the site url in the wp-config.php file of each and used .gitignore to ignore both wp-config.php files would this be enough for this to work or is there something else I'm missing?
I'm posting in the hope somebody has tried it before me and that might have any answers to problems I encounter now or in the future.
Thanks in advance, Ollie
Make sure you add the .gitignore entry before changing and committing the wp-config.php.
Once you update wp-config.php, it's going to go through and update URLs in the database. Since WordPress is stateless - to say there is no session management, there is no way of tracking if a database has been swapped.
Lastly, WordPress uses a MySQL database, which wouldn't be versioned unless you went through a lot of work to do so. Aside from wp-config.php, there aren't any other stored references of what the site's URLs should be.