Step 1: Compress website data and download database!
The first step of the transfer begins with obtaining your data from cPanel server. Log in to your cPanel account and open File manager.
Once the file manager is opened you will be presented with various folders, our folder of interest is ‘public_html’, please open this folder.
In this folder all your website public files are located, you need to compress everything contained in this folder and download to your computer.
- Click ‘Select All’ to select all the files in this folder.
- Now click compress and choose the compression type zip when prompted.
It will then create a .zip archive in the same directory that you can download, its time you should take a dump of your database as well. Come back to cPanel and open ‘PHPMyAdmin’.
Now you have to select and dump the database.
- As we only have one database their, we’ve selected that from a list, if you have various databases , then select the one your website is connected to.
- After selecting the database, click ‘Export’.
Just press ‘Go’ and it will start downloading the database dump file. It’s all from the cPanel side, you are now ready to upload your website content to vestaCP server.
Step 2: Upload Content to your vestaCP Server
Upload your .zip file into your domain root directory (you will have to use FTP) , that you have downloaded from cPanel server. Connect to your site using any FTP client, here used Filezilla.
- Enter your vestaCP server main IP.
- Your FTP username.
- FTP Password.
- You can leave the port empty, the default will be 21.
- Click connect , and you will be connected to FTP.
You are now presented with various folders in Filezilla as shown in the image below, just double click on ‘public_html’.
You can just drag and drop the .zip file inside the public_html folder. Before uploading .zip file unzip the folder locally at your computer and upload the unzipped files. To avoid unzip the .zip file via ssh.
At this stage, your website data is successfully uploaded , and you can visit your domain to verify its there. If your website does not have a database you are done here, but if it has database you should continue reading this article.
Step 3: Upload your database
If and only if your website also had a database, you need to upload and connect your website to it before it should start working normally. First of all, you have to create the database in vestaCP. Once the database is created you can log in to PHPMyadmin via this URL:
http://<server ip address>/phpmyadmin/
It will ask you for the username and password.
- Username : The database username you have just created above.
- Password : Database password.
Once logged into database, select the database and click import as seen in the image below:
You will now see the Import screen.
- Click Browse and upload the .sql file you created from cPanel server.
- And press ‘Go’ to upload it.
It will take some time (if the SQL file is large) and your database will be successfully restored. Your database is restored but it’s still not connected to the script you are using. Because in your cPanel server your database name might be ‘cpanel_database’. But in vestaCP, it might be ‘vestacp_database’.
Step 4: Connect to database
To connect your script to your new database, you have to tell your script the name of the new database, its username,and updated password. First, you will have to locate the config file where database login details are defined. Most scripts have convention to name that file
- WordPress usually name it ‘wp-config.php’
If you are not able to find the database configuration file, you can read your script documentation to find out where it is. After that it’s fairly easy, all you need to do is edit the file and replace old database details with the details of the database you have created in Step 3. In WordPress it looks something like this: define(‘DB_NAME’, ‘Your database name goes here’); define(‘DB_USER’, ‘Database username goes here’); define(‘DB_PASSWORD’, ‘Database password goes here’);
After you have successfully modified and saved this file, you are finally done. You can now browse your website and it should be online. If it is still not, make sure you have done everything as described.
Thank you for reading this article.
Was this helpful?
1 / 0
Your post is so easy to understand, thank you.
Thank you, very helpful post.
Thank you bro
Awesome, it’s working.
It’s really a cool and helpful piece of info. I am satisfied that you shared this helpful information with us.
Please stay us up to date like this. Thanks for sharing.
It was so helpful
It is really cool!
I’ve been browsing online more than three hours today, yet I never found any interesting article like yours.
It is pretty worth enough for me. In my opinion, if all web owners
and bloggers made good content as you did.
Simply wish to say your article is as amazing. The clarity for your publish
is just spectacular and that i can think you are an expert in this subject.
Fine together with your permission let me to grasp your RSS feed
to stay up to date with coming near near post. Thank you a million and please keep up the gratifying work.
Superb post however , I was wondering if you could write a litte more on this subject?
I’d be very thankful if you could elaborate a little
bit more. Bless you!
Thankfulness to my father who told me regarding this website, this weblog is truly amazing.
Spot on with this write-up, I honestly thank the owner of this site, needs a lot more article.
Thanks designed for sharing such a nice thought, article is nice, thats why
i have read it entirely
It’s yes knowledgeable people on this topic, You sound like you knows
what you’re talking about! Thanks
Great website and I look forward to seeing
it expand over time.
I’ve been surfing online more than three hours today, yet I never found any interesting article like yours.
It’s pretty worth enough for me. Personally, if all website owners and bloggers made good content as
you did, the net will be much more useful than ever before.
You’ve made some really good points there. I looked on the net for more information about the issue and found most people
will go along with your views on this web site.
I am very impressed with your article. Thank you.
Highly energetic article, I loved that a lot.
One of the greatest websites on the web.
This page truly has all of the info I needed about this subject.
You should be a part of a contest for one of the best sites on the net.
Thanks designed for sharing such a nice idea, post is pleasant, thats why I tried it.
Very nice & good article.
Hey! Someone in my Facebook group shared this website with us so I came to look it over.
I’m definitely loving the information. I’m book-marking
and will be tweeting this to my followers! Superb blog and brilliant design and style.
Awesome website you have here but I was curious about if you knew of any
discussion boards that cover the same topics talked about here?
I’d really like to be a part of community where I can get responses from other experienced
people that share the same interest. If you have any recommendations, please let me know.
Hey I know this is the best topic, I was wondering to read your article.
This web site really has all of the information and facts I needed about this subject and didn’t know who to
Thanks for sharing your thoughts. I truly appreciate your efforts and I am waiting for your further write ups thanks once again.
I truly appreciate your efforts and I am waiting for your further write ups thanks once again.
I am extremely impressed with your writing skills and also with the layout on your blog.
Is this a paid theme or did you customize it yourself?
Either way keep up the excellent quality writing, it is rare to see a nice
blog like this one nowadays.
Very nice article.
I look forward to hearing from you! Fantastic blog by the way!
I am impressed with your writing skills and also with the layout on your blog.
Is this a paid theme or did you customize it yourself?
Either way keep up the excellent quality writing.
I am very happy to find this website.
Hi to all, the contents existing at this site are truly amazing for people experience, well, keep up the nice work fellows.
Thanks to you.
If some one needs expert view concerning blogging and
site-building after that i advise him/her to go to see
this webpage, Keep up the nice job.
Hello! Someone in my Facebook group shared
this site with us so I came to look it over. I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my followers!
Wonderful blog and great design and style.
Thanks for some other informative website. The place else may just
I am getting that kind of information written in such an ideal method?
I’ve a undertaking that I’m just now running on, and I’ve been on the look out for such information.
We are a gaggle of volunteers and opening a brand new scheme in our
community. Your website provided us with valuable info to work on.
You’ve performed a formidable process and our entire group will likely be grateful to you.
Do you have any video of that? I’d love to find out more
Hi, i feel that i noticed you visited my website so i
got here to return the choose?.I’m attempting to find things to improve my site!I
guess its good enough to make use of some of your concepts!!
Im obliged for the article.Much thanks again. Fantastic.
I’m not that much of a online reader to be honest but your blogs really nice, keep it up!
I’ll go ahead and bookmark your website to
come back in the future. All the best
Great article, exactly what I wanted to find.
Wonderful article! We are linking to this particularly great post on our website.
Keep up the great writing.
I’ll immediately clutch your rss feed. Thanks.
Very good post. I certainly appreciate this site.
Continue the good work!
Someone essentially help to make seriously posts I would state.
That is the very first time I frequented your website page and up to now?
I amazed with the analysis you made to create this particular post amazing.
What i do not understood is if truth be told how you are
not actually a lot more smartly-favored than you might be now.
You are very intelligent. You understand thus significantly relating to this matter, produced me personally consider it from numerous
numerous angles. Its like men and women aren’t interested except it is something to
accomplish with Girl gaga! Your individual stuffs outstanding.
All the time deal with it up!
WOW just what I was searching for. I will come here searching for good topics!
Hello there! Do you use Twitter? I’d like to follow you if that would be okay.
I’m undoubtedly enjoying your blog and look forward to new
Hi, I check your blogs on a regular basis. Your story-telling style is witty,
keep doing what you’re doing!
It’s going to be finish of mine day, except before end I am reading this wonderful piece of writing to improve my know-how.
Wow, marvelous blog layout! How long have you been blogging
for? you make blogging look easy. The overall look of your website is great, as well as the content!
Very soon this website will be famous among all blogging and site-building users,
due to it’s good content
Hello there! This post couldn’t be written much better!
Looking at this article reminds me of my previous roommate!
He always kept preaching about this. I’ll forward this post
to him. Fairly certain he’s going to have a good read.
Thanks for sharing!
It’s very simple to find out any matter on web as compared to books, as
I found this piece of writing at this website.
Im obliged for the article post.Much thanks again. Keep writing.
Good day very nice blog!! Man .. Beautiful .. Wonderful .. I’ll bookmark your blog and take the feeds also?KI am happy to seek out a lot of useful information right here in the post, we’d like work out more strategies on this regard, thank you for sharing. . . . . .
whoah this weblog is great i love reading your posts.
Stay up the good work! You recognize, many people are searching round for this
info, you can aid them greatly.