/
Migration from DirectAdmin to DirectAdmin2
Migration from DirectAdmin to DirectAdmin2
DirectAdmin2 is a rewrite of DirectAdmin v1 module bringing a number of new features. Module uses different file name, as such its not 1:1 drop-in replacement and requires minor HB db updates described below:
Migration
- Upload/unzip v2 module to your HostBill server
- Make sure that the DirectAdmin2 module is enabled (you do not need to set up app connection for it)
- Connect to the database.
- You should run the query which is below.
- Once migration is complete deactivate old module in settings->modules
Query
Migration from cPanel to cPanel2
SET @directadmin2 = (SELECT `id` FROM hb_modules_configuration WHERE `filename` = 'class.directadmin2.php'), @directadmin = (SELECT `id` FROM hb_modules_configuration WHERE `filename` = 'class.directadmin.php'); UPDATE hb_server_groups g, hb_servers s, hb_products_modules p SET g.`module` = IF(@directadmin2 IS NOT NULL, @directadmin2, @directadmin), s.`default_module` = IF(@directadmin2 IS NOT NULL, @directadmin2, @directadmin), p.`module` = IF(@directadmin2 IS NOT NULL, @directadmin2, @directadmin) WHERE g.`module` = @directadmin AND s.`default_module` = @directadmin AND p.`module` = @directadmin;
If you do not have any program to connect to the database, you can execute this query using the command line.
- Log in to the server where you have the HostBill installation.
- Then use the commands:
mysql;
use {$database_name};
Where {$database_name} is the name of the database you want to connect to. You can find the name of your database in the file public_html/includes/config.php
Then execute the SQL query that is above.
, multiple selections available,
Related content
General
General
Read with this
Migration from cPanel to cPanel2
Migration from cPanel to cPanel2
More like this
Direct Admin
Direct Admin
More like this
Migration from Hexonet to CentralNic Reseller module
Migration from Hexonet to CentralNic Reseller module
More like this
Migrating Enterprise Version To New Server
Migrating Enterprise Version To New Server
More like this
Migration from Webnic to Webnic2 Module
Migration from Webnic to Webnic2 Module
More like this