South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
How many files in the zip?
Also relevant: https://infinitewp.com/
And, I haven't used it yet but it I've read something about it that looks promising: https://wordpress.org/plugins/tailor/
It's also free and open source: https://github.com/andrew-worsfold/tailor
Spend some time working on that instead of developing your own cms![]()
SSH.
Not all hosts supports this
I don't trust this.
I use phpmyadmin and ftp
It's the safest way and I understand it by heart.
Just the schlep of logging into Cpanel the whole time to unzip after each upload
Not interested. I prefer to build it my own way ie not the drag and drop method.
Why not unzip before hand and then FTP across?
Bear with me, this is worth the read...
I'm unsure what your development process is but mine goes something like:
- create the website on my local machine using xxx.local
- move to a staging site for the client to review xxx.yyy.com
- move to production site xxx.com
Just dumping and restoing your database is not safe and is not going to work, here's why:
Attachment metadata and some plugins (Almost every slider I've used) store data in a serialised string like:
a:5:{s:4:"name";i:1211;s:25:"http://xxx.local/some_url";.....}... (check your wp_postmeta table for examples)
What this means is
a:5 - array of 5 items (I'm only showing 1)
s:4:"name" - expect a strng of 4 characters -> the word "name"
s:25:"http://xxx.local/some_url" - expect a string of 25 characters -> the string "http://xxx.local/some_url"
....
Snippels (just to make my post a bit smaller)
Exposing phpMyAdmin to internet access to do the things you are doing is pretty brave:
https://www.cvedetails.com/vulnerability-list/vendor_id-784/Phpmyadmin.html
If you're DB script file get's big >2mb I think - phpMyAdmin will not let you restore it.
I've used this script with great success in the past:
http://www.ozerov.de/bigdump/
Step 2: Modify File Paths
I open up the database in Atom and I fix the file paths (Find and Replace)
To do this I simple find http://localhost/my_test” and replace it with “http://www.mydomain.com/subfolder"
If you do a straight sql string update to change xxx.local to xxx.yyy.com then your data is going to be looking like:
a:5:{s:4:"name";i:1211;s:25:"http://xxx.yyy.com/some_url";.....}...
Looking at that second record we now have:
s:25:"http://xxx.yyy.com/some_url"
Except the string, http://xxx.yyy.com/some_url, is 29 characters long and not 25 so something is going to go wrong.