<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; cpanel-to-cwp convert</title>
	<atom:link href="http://wiki.centos-webpanel.com/tag/cpanel-to-cwp-convert/feed" rel="self" type="application/rss+xml" />
	<link>http://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>cPanel to CWP server convert</title>
		<link>http://wiki.centos-webpanel.com/cpanel-to-cwp-server-convert</link>
		<comments>http://wiki.centos-webpanel.com/cpanel-to-cwp-server-convert#comments</comments>
		<pubDate>Sat, 24 Aug 2019 18:55:55 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Migrations]]></category>
		<category><![CDATA[cpanel-to-cwp convert]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1256</guid>
		<description><![CDATA[We have created several scripts which will convert your cPanel server into CWP. Last Update: 13.09.2021 How does this work? - First, we export from cPanel all user account details into temporary files so we can later import them into CWP. - Second, we create a backup of cPanel and uninstall it. - Third, we [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>We have created several scripts which will convert your cPanel server into CWP.<br />
Last Update: 13.09.2021</p>
<p><strong>How does this work?</strong><br />
- First, we export from cPanel all user account details into temporary files so we can later import them into CWP.<br />
- Second, we create a backup of cPanel and uninstall it.<br />
- Third, we install CWP, this is the regular CWP installation process.<br />
- Fourth, we import data into CWP from the exported files of the first step.</p>
<p><strong>REQUIREMENTS</strong><br />
- CentOS 7 latest version<br />
- MySQL 5.7+ or MariaDB (Recommended MariaDB)<br />
- Make sure you don't have any MySQL connection timeout limits<br />
- Change MySQL root password to something without special characters<br />
- Remove CloudLinux<br />
- Mailbox format should be maildir, those using mdbox will need to convert to maildir before removing cpanel<br />
<em>* Info about mailbox format you can check in WHM under Mailbox Conversion</em></p>
<p><strong>How safe is this?</strong><br />
- On the first step after the script run, you get information about exported data from the cPanel.<br />
- First script run doesn't make any changes to the system so you can check and confirm that all is covered.<br />
- User Accounts: All user files in /home/USERNAME are not touched so server accounts are safe.<br />
- MySQL Database: We don't make any MySQL changes on the databases so your databases are safe.<br />
- MySQL version: currently installed from cPanel is left without any changes.<br />
- User Home Files: nothing is touched except for migration of emails to /var/vmail folder.<br />
- Cronjobs are kept the same.<br />
** It's always smart to have account backups before starting with the major changes.</p>
<p><strong>Imported data</strong><br />
- User accounts, domains, subdomains, parked domains<br />
- Email accounts-mailboxes, forwarders-aliases, autoresponders-autoreply, alias pipe to script<br />
- Resellers<br />
- Hosting packages<br />
- FTP accounts<br />
- SSL Certificates<br />
- Hostname SSL Certificates for (cwp, mail, ftp, webservers)<br />
- All PHP versions (5.3 - 7.3) and we have added handlers of cPanel</p>
<p><strong>Not Imported</strong><br />
- Postgres databases</p>
<p><strong>Required:</strong><br />
- /var/vmail will be the new location for your emails so make sure /var partition has the required size or you can symlink it to /home/vmail</p>
<p><strong>FAQ</strong><br />
- How long this conversion takes: from 10min to 4h depends on the data and server performances<br />
- You should first remove CloudLinux (if you have it) before starting with step 1.</p>
<h3>Migration Instructions</h3>
<p><strong>Download migration scripts</strong></p>
<pre>wget dl1.centos-webpanel.com/files/s_scripts/el7/cpanel-converter/1-cpanel-data-export.sh

wget dl1.centos-webpanel.com/files/s_scripts/el7/cpanel-converter/2-cpanel-uninstall.sh

wget http://centos-webpanel.com/cwp-el7-latest

wget dl1.centos-webpanel.com/files/s_scripts/el7/cpanel-converter/4-import-into-cwp.sh

wget dl1.centos-webpanel.com/files/s_scripts/el7/cpanel-converter/5-mail-sni.sh
</pre>
<p><strong>Now run the first script</strong><br />
** If you have CloudLinux make sure it was removed before</p>
<pre>sh 1-cpanel-data-export.sh</pre>
<p>** Check that all data is listed there before proceeding to the next steep</p>
<p><strong>Uninstall cPanel</strong> (This can take long time)</p>
<pre>sh 2-cpanel-uninstall.sh</pre>
<p><strong>Install CWP (CentOS 7)</strong><br />
Default installer, bellow you have optional instructions</p>
<pre>sh cwp-el7-latest</pre>
<p>Optional arguments for installer</p>
<p>–phpfpm [5.3|5.4|5.5|5.6|7.0|7.1|7.2|7.3] (you can use only one)<br />
–softaculous yes (install softaculous – script installer)</p>
<p>Available short name arguments<br />
-p [5.3|5.4|5.5|5.6|7.0|7.1|7.2|7.3] (you can use only one)<br />
-s yes (install softaculous – script installer)</p>
<p>Example for centos 7 (you can combine short and long name arguments)</p>
<pre>sh cwp-el7-latest --phpfpm 7.2 --softaculous yes</pre>
<p><strong>Import all exported data into CWP</strong></p>
<pre>sh 4-import-into-cwp.sh</pre>
<p><strong>Generate Mail Certificates Postfix/Dovecot</strong></p>
<pre>sh 5-mail-sni.sh</pre>
<p>That is it, reboot the server and you are ready!</p>
<p><strong>OTHER NOTES &#038; SUPPORT</strong><br />
This tool is provided at no cost and without warranty.</p>
<p>If you need to migrate CentOS 6 it's recommended first to migrate all accounts on another cpanel server with CentOS7 and then convert CentOS7 to CWP7.</p>
<p>In case some of your clients don't get satisfied you can make a cpanel backup without the homedir for all users before starting cpanel removal so they can easily return to cpanel.</p>
<pre>for i in `cat /etc/trueuserdomains |awk -F: {'print $2'}`;do /scripts/pkgacct --skiphomedir $i /home;done</pre>
<p><strong>CloudLinux Uninstall</strong><br />
<a href="https://docs.cloudlinux.com/cloudlinux_installation/#uninstalling" title="cloudLinux Uninstall" target="_blank">https://docs.cloudlinux.com/cloudlinux_installation/#uninstalling</a></p>
<p><strong>Rebuild Named/Bind conf</strong><br />
In most cases you will need to rebuild /etc/named.conf file, we have an API here:<br />
<a href="/cwp-admin-api" title="CWP Admin API">wiki.centos-webpanel.com/cwp-admin-api</a></p>
<p><strong>ISSUES: MAIL MIGRATION (Optional)</strong><br />
In case of failed migration of emails you can run this command</p>
<pre>for i in `find /home/*/mail/* -type d -maxdepth 0 -name "*.*"`;do mv $i /var/vmail/;done</pre>
<p>** After that make sure you do API command to fix mail permissions</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/cpanel-to-cwp-server-convert/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
