LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » LxCenter » Contributed HOWTOs » Import plesk into kloxo
Import plesk into kloxo [message #80399] Wed, 02 March 2011 06:46 Go to next message
latze is currently offline latze  Romania
Messages: 17
Registered: April 2008
Member
I have created an import from plesk script that can read directly from plesk or from an unpacked plesk backup. It can import clients,mysql databases, domains, subdomains, email accounts, aliases and redirects and auto-responders only subject and text ( what kloxo supports ) and auto-responders are not enabled. It is now configured to read from plesk backup and you have to run it on the kloxo host. To import from a plesk installation you have to setup some rsyncs to transfer data to kloxo ( there are some examples in the script).
You can also choose whether to create a client for each domain or not ( in case you had all domains on a single client account in plesk and you want to give access to clients to configure domain ).
Script can be improved of course but I think it's a good start for anyone who wants to migrate from plesk to kloxo.
Any questions let me know Smile
  • Attachment: migrate.zip
    (Size: 13.89KB, Downloaded 200 times)
Re: Import plesk into kloxo [message #80401 is a reply to message #80399] Wed, 02 March 2011 06:59 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5730
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Great job, latze. Laughing Idea

Don't hesitant to always share your knowledge here. Very Happy


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: Import plesk into kloxo [message #82824 is a reply to message #80401] Tue, 03 May 2011 18:35 Go to previous messageGo to next message
G3Tech is currently offline G3Tech  Portugal
Messages: 2
Registered: May 2011
Member
Im not able to do anything with it ... help please ??
Re: Import plesk into kloxo [message #83106 is a reply to message #82824] Tue, 10 May 2011 03:29 Go to previous messageGo to next message
latze is currently offline latze  Romania
Messages: 17
Registered: April 2008
Member
I forgot about one thing with plesk backup. In order to import it you need to unpack it first. Here are the instructions:

It can be done using mpack tools to work with MIME files. This packet is included into Debian:
apt-get install mpack

For other Linux systems you can try to use RPM from ALT Linux:
ftp://ftp.pbone.net/mirror/ftp.altlinux.ru/pub/distributions /ALTLinux/Sisyphus/files/i586/RPMS/mpack-1.6-alt1.i586.rpm
or compile mpack from the sources: http://ftp.andrew.cmu.edu/pub/mpack/.
- Create an empty directory to extract the back up file:
mkdir recover

cd recover


and copy backup into it.By default Plesk backup is gzipped (if not, use cat), so run zcat to pass data to munpack to extract content of directories from the backup file:
zcat DUMP_FILE.gz > DUMP_FILE

cat DUMP_FILE | munpack



NOTE: 'munpack' utility may not work with files greater then 2Gb and during dump extracting you may receive the error like

cat DUMP_FILE | munpack

DOMAIN.TLD.httpdocs (application/octet-stream)
File size limit exceeded

In this case you have to compile mpack with large files support.

After you have a directory with the files from the backup configure in the import script the path of the directory and all other settings that are specific to your installation.
Search the line
$plesk = new PleskBackup();

and change it to
$plesk = new PleskBackup(/your/full/path/to/directory/where/backup/was/unpacked);


For kloxo after the line
$lxadmin = new Lxadmin();

you can specify kloxo details and logins like this
$lxadmin->server = '127.0.0.1';
$lxadmin->login = 'admin or your admin user login name';
$lxadmin->password = 'your admin user password';


Maybe in the future I'll have some time to make it interactive or if anybody have the time for this he'll be welcomed.
Re: Import plesk into kloxo [message #83323 is a reply to message #83106] Sat, 14 May 2011 04:04 Go to previous messageGo to next message
roshansys is currently offline roshansys  India
Messages: 1
Registered: May 2011
Location: India
Member
I have tried to run the script as php plesk2lxadmin.php and also as using http server_IP/plesk2lxadmin.php but no result and no error. I am trying to fetch the data directly from plesk and I have made 2 changes in the plesk2lxadmin.php file.

1. class Plesk {

var $host = "my plesk server IP";
var $login = "my plesk server admin";
var $password = "my plesk server password";

2. class Lxadmin {

var $server = 'my kloxo server IP';
var $password = 'kloxo server admin password';
var $login = 'kloxo server admin';
var $protocol = 'http';
var $port = '7778';

Can you let me know what I am doing wrong.

Thanks,
Rakesh
Re: Import plesk into kloxo [message #92379 is a reply to message #83323] Sun, 11 December 2011 18:31 Go to previous messageGo to next message
LxCenter_Danny is currently offline LxCenter_Danny  Netherlands
Messages: 2073
Registered: July 2007
Location: Netherlands
Grandmaster
LxCenter Core Team Member
LxCenter Representative

Is this still working?
Am i allowed to distribute this with Kloxo?
I have a few Plesk customers, that i want to migrate to Kloxo... if this works well we could add it do Kloxo Smile




LxCenter - System Operations
Re: Import plesk into kloxo [message #92827 is a reply to message #92379] Tue, 20 December 2011 16:09 Go to previous message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

LxCenter_Danny wrote on Mon, 12 December 2011 07:31
Is this still working?
Am i allowed to distribute this with Kloxo?
I have a few Plesk customers, that i want to migrate to Kloxo... if this works well we could add it do Kloxo Smile


wow try it sir Very Happy
also we waiting your result Very Happy
i'm never trying with plesk Smile
plesk and cPanel they same expensive Sad


ready
Previous Topic:change FTP port on Kloxo
Next Topic:Kloxo: Installing the Mono Framework
Goto Forum:
  


Current Time: Wed Jun 19 01:08:09 EDT 2013

Total time taken to generate the page: 0.04372 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software