How To Migrate From Mambo To Joomla Content Management System �p��E���A�q�Ҫi�A�Hjoomla���e�z�t��
Joomla Content Management System was forked off Mambo CMS after most of the core Mambo developers disagreed with Mambo Management. joomla���e�z�t�άO�äp�d�Ҫi�ӭM�趯�ʤ��|��A�j�������֤߰Ҫi�}�o�Ӥ��P�N�Ҫi�z�C The current stable release is�ثe��í�w�����O 1.0.10 . �C I migrated from Mambo to Joomla to deter hacking efforts on my site. i�E���A�q�Ҫi��joomla �A�H����«Ȫ��V�O�A�b�ڪ������W�C
Note: I could have as well migrated to the latest version of Mambo but I just felt like going Joomla way.�`�G�ڥi�H���@���A�H�ξE����̷s�������Ҫi�A��ڥu�O�Pı�N��joomla���覡�C
Here are required the steps, simplified and in brief, targeted for command-line users.�b�o�̻ݭn���B�J�A²�ƩM�b²�u���A���w��ʪ����R�O��Τ�C
Pre-requirement: If you are not on 4.5.2.x versions of Mambo then you need to first upgrade to Mambo 4.5.2.x version.�ǫe�Ш|���n�D�G�p�G�z���O��4.5.2.x�������Ҫi����A�ݭn����ɯŨ�Ҫi4.5.2.x�����C
1. 1 �C Backup you MySQL database.�ƥ��A��MySQL�ƾڮw�C
For example if your MySQL database is named tango then the command below will create your backup named tango.sql.gz�Ҧp�A�p�G�z��MySQL�ƾڮw�O�R�W������R���A�M��R�O�U���N�гy�z���ƥ��R�W��tango.sql.gz
mysqldump �X-opt tango | gzip -9 > tango.sql.gz mysqldump -��ܱ���| g zip- 9> t ango.sql.gz
2. 2 �C Extract latest stable version of Joomla to any directory under htdocs.����̷s��í�w������joomla����ؿ�U��htdocs �C We will assume the name of the directory to be test for simplicity and easy reference.�ڭ̱N���w���ؿ�W�٭n���²��Ӯe�����ѦҡC In reality it can be named anything.�b�{�ꤤ�i�H�R�W������Ʊ��C Only requirement is that it should be somewhere under htdocs.�ߤ@���n�D�O���Ӫ��Y�B�Uhtdocs �C
3. 3 �C Copy your Mambo configuration.php file (under Mambo root directory) to your Joomla site.�ƻs�z���Ҫiconfiguration.php���]�U�Ҫi�ڥؿ�^��z��joomla�����C Change the $mosConfig_absolute_path and $mosConfig_live_site variables to point to Joomla base / root directory.���ܬ�mosconfig_absolute_path��mosconfig_live_site�ܶq�A�H��Vjoomla��a/�ڥؿ�C
4. 4 �C Copy any custom templates, components, modules, mambots and languages to the same relative locations in the new Joomla directory.�ƻs����۩w�q�ҪO�A�ե�A�Ҷ��A mambots�M�y���A�H�P�˪��۹��m�A�b�s��joomla�ؿ�C Do not copy the default ones.���n�ƻs�q�{�C
5. 5 �C Copy installation/sql/migrate_Mambo4523_to_Joomla_100.sql to your base directory.�ƻsinstallation/sql/migrate_mambo4523_to_joomla_100.sql��z����a�ؿ�C
cp installation/sql/migrate_Mambo4523_to_Joomla_100.sql . ĵ�ȳB�B��installation/sql/migrate_mambo4523_to_joomla_100.sql �C
6. 6 �C Delete Joomla installation directory�R��joomla�w�˥ؿ�
Go to Joomla base directory and type the following.�hjoomla��a�ؿ�A�M����J�H�U�C It should delete the installation directory (without any warning; you have been warned).�����R���w�˥ؿ�]�S������ĵ�i;�A�wĵ�i�^ �C
rm -rf installation ��-�g�W�w��
7. 7 �C Load the migrate_Mambo4523_to_Joomla_100.sql script to your MySQL database�[��migrate_mambo4523_to_joomla_100.sql�}����z��MySQL�ƾڮw
For example if your database name is mambo and your user is root (bad practice):�Ҧp�A�p�G�z���ƾڮw�W�٬O�Ҫi�M�z���Τ�O�ڡ]�a�����k�^ �G
mysql -u root -p mambo < migrate_Mambo4523_to_Joomla_100.sql MySQL�������-�Ҫi< migrate_mambo4523_to_joomla_100.sql
You will be prompted for the password, give it.�z�N�Q���ܬ��K�X�A�����C
8. 8 �C Open globals.php and change define( 'RG_EMULATION', 1 ); to define( 'RG_EMULATION', 0 ); .�}��globals.php�M�����ɩw�] ' rg_emulation ' �A 1 �^ ;�ɩw�] ' rg_emulation ' �A 0 �^ ; �C This hardens your Joomla installation.�o�ܵw�z��joomla�w�ˡC
9. 9 �C If you were using nice url then you should also copy .htaccess from your original directory�p�G�z�ϥΥ������}�A����A���Ӥ]�N��ƻs�C htaccess���q�z����l�ؿ�
cp ../original_directory/.htaccess . ĵ�ȳB�B��.. / original_directory / .htaccess �C
10. 10 �C Test the new site thoroughly.��շs��������C
11. 11 �C On success, first archive the old site and then replace the old site with the new site.���\�A����ʦs���º����A�M���N�ª������P�s�����C For example if your old site is name alpha and your new site is named beta and both are placed directly under htdocs, then you can use the following:�Ҧp�A�p�G�z���º����W��Alpha�M�z���s�����R�W���եΪ��A��������bhtdocs�U�A�h�i�H�ϥΤU�C���e�G
tar -cjf alpha.tar.bz2 alpha/ �J�ocjf alpha.tar.bz2 �\ /
rm -rf alpha ��-�g�W��k
mv beta alpha �եΪ���MV��k
12. 12 �C Test every pages thoroughly, if possible.��ըC�ӭ�����A�p�G�i��C Test polls and form submission.��սլd�M������C
Note: I followed the excellent�`�N�G�ڨ䦸�O�X�⪺ how-to article�p��� to aid my migration.���U�ڪ��E���C However I differed (as described above) where appropriate (and simpler) and where there were little mistakes (like there are no globals.php-off) in the guide.���L�A�ڦ����P�]�p�W��ҭz�^�b�A�?�]²��^�M���p�����~�]�p���S��globals.php�p�d�^�b��n���C I prefer using MySQL commanline over phpmyadmin, so this guide shows the command-line way.�ڹ��@�ϥ�MySQL commanline�W�Lphpmyadmin �A�ҥH����n��ܩR�O�檺�覡�C Check the article referenced to do it using phpmyadmin.�ˬd���峹���ޥΪ�����phpmyadmin �C
Note 2: Use at your own risk.�`2 �G�ϥαz�ۤv�Ӿ᭷�I�C No warranty, implied or otherwise is provided.�S����ܩηt�ܪ��O�ҡA�_�h�O���ѡC
Filed under���_�U Computer Security�p����w�� , �A Headline News�Y��s�D , �A How To�p�� , �A Open Source Software�}�X�n�� , �A PHP PHP�� , �A Tech Note�N���� , �A Web���� , �A Web Hosting�����D�� , �A Web Services Web�A�� | |
| |
RSS 2.0 2.0 | |
Trackback Trackback��踪 this Article |���峹|
Email this Article�q�l�l�峹
You may also like to read�z�]�i�H�QŪ |




































August 30th, 2006 at 1:38 pm 2006�~8��30��b�U��1��38��
you may want to correct step number 8�z�i��|�Q�n���T���B�J���X8
8. 8 �C Open globals.php and change define( ��RG_EMULATION��, 0 ); to define( ��RG_EMULATION��, 0 );.�}��globals.php�M���ܬɩw�] ' rg_emulation ' �A 0 �^ ;�ɩw�] ' rg_emulation ' �A 0 �^ ; �C This hardens your Joomla installation.�o�ܵw�z��joomla�w�ˡC
August 31st, 2006 at 9:14 am 2006�~8��31��b�W��09��14��
Thanks.���¡C I did.�ڥ��ӡC
July 24th, 2007 at 4:49 pm 2007�~7��24��b�U��4��49��
I have installed joomla in a seperate folder from my original mambo installation, I am going to rebuild the entire site, I wonly want to migrate the users�K any suggestions?�ڤw�g�w�ˤFjoomla�b�@�ӳ�W����A�q�ڭ�Ӫ��Ҫi�w�ˡA�ڭn���ؾ�Ӻ����A��wonly�n�E�����Τ�K �K�����ij�H
Thanks, Lincoln�P�¡A�L��