Page 1 of 1

Import website from remote ftp

Posted: Tue Jul 13, 2010 9:18 am
by coolemail
I have Plesk 9.2.3 on a CentOS5 server with ASL.

I'm trying to get a website from a remote server (running Parallels Optimised computing).

I tried using their export facility to send it direct to my Plesk server, but that failed any way I tried it
The Export has failed.

Details of Export are as follows :-
Export initiated by : siteadmin
Backup Type : sites
User Initiating Export : admin@client-domain.com
Server Name : patsy.netplan.co.uk
Server IP : 217.154.116.199
Status : Failed

The following errors were encountered as a result of which the Export process has been aborted.
Export: Export failed

- (ERROR: 01ff000000000078): FTP transfer to ftp://client-domain-ftp@82.197.79.4:21/ ... _17.tar.gz failed.
What I could do and have done is to download to my computer the site which is a client-domain.com-20100713_132835.tar.tgz file. Now it is uploading that to my server.

Can someone tell me how to extract that in the client's domain on my Plesk server so that we can then change the name servers and get this domain active?

If not, then on the remote server, we want to download all files in /var/www/html. It lists the files but we cannot download them and I cannot simply ftp to the site as there are no ftp details given - only the access to the Plesk CP.

Re: Import website from remote ftp

Posted: Tue Jul 13, 2010 11:33 am
by mneese77
Just did similar recently...
First setup the domain in plesk with all the emails, dns, ftp accounts & passwords (same as old site), mysql databases and users (same as old site) and any other settings required...
Then upload compressed file to server into correct directory...then de-compress...then chown all files and directories for the domain ftp owner, then verify permissions...
Then, if not already done, go to domain registrar and point to new server...should work.

Re: Import website from remote ftp

Posted: Tue Jul 13, 2010 12:18 pm
by coolemail
thanks for the response mneese77.

Domain is set up with all DNS as they should be. Emails hosted elsewhere, so no problem there.

I have set up a new database on my Plesk server as nobody has all the details of the old one.

So I would like to uncompress and see what we have. Can you tell me what command decompresses this file? I guess I need it in httpdocs (that is where it is now).

Re: Import website from remote ftp

Posted: Tue Jul 13, 2010 4:12 pm
by mneese77
make sure the file is in the correct directory...httpdocs...

Code: Select all

gzip -dc target.tar.gz | tar xf -
I would be concerned about the database...can you export the db separately from the old site, then if you have probs, import tables into the new database after the files are decompressed...and are you sure the backup you have includes the database?

command for ch ownership...when you decompress the file, it will all have ownership of root (or whomever ssh is)...you must change to settings for your new site using:

Code: Select all

chown -R newftplogin:psacln /var/www/vhosts/newsite.com/httpdocs
as well you must change ownership of the httpdocs directory itself to newftplogin:psaserv

then navigate inside the httpdocs directory and run this for the file permissions (sorta a standard, you may revise if needed)

Code: Select all

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
hope this helps...no guarantees whatever, but this works for me...if this is joomla site, better to use akeeba backup...

Re: Import website from remote ftp

Posted: Wed Jul 14, 2010 4:17 pm
by coolemail
Thank you so much for your help mneese77. All worked perfectly. The database did not copy across but I've left that with the website designer to sort. Most grateful to you for all this.

Re: Import website from remote ftp

Posted: Fri Jul 16, 2010 11:58 am
by mneese77
glad it worked out...