Joomla Content Management System was forked off Mambo CMS after most of the core Mambo developers disagreed with Mambo Management. joomla���ݹ���ϵͳ�Dz�С����ϸ�������Բ���󣬴󲿷ֵĺ�������̲�ͬ������? The current stable release isĿǰ���ȶ��汾�� 1.0.10 . �� I migrated from Mambo to Joomla to deter hacking efforts on my site. iǨ�ƣ�����joomla ���Է�ֹ�ڿ͵�Ŭ�������ҵ���վ�ϡ�
Note: I could have as well migrated to the latest version of Mambo but I just felt like going Joomla way.ע���ҿ�������Ϊ���Լ�Ǩ�Ƶ����°汾�������ֻ�Ǹо�����joomla�ķ�ʽ��

Here are required the steps, simplified and in brief, targeted for command-line users.��������Ҫ�IJ��裬�򻯺��ڼ�̵ģ�������Ե�Ϊ�������û���

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.ѧǰ�����Ҫ��������Ƕ�4.5.2.x�汾������ô����Ҫ��������4.5.2.x�汾��


1. 1 �� Backup you MySQL database.�������MySQL��ݿ⡣
For example if your MySQL database is named tango then the command below will create your backup named tango.sql.gz���磬������MySQL��ݿ��������̽������Ȼ���������潫������ı�������Ϊtango.sql.gz
mysqldump ��-opt tango | gzip -9 > tango.sql.gz mysqldump -ѡ��̽��| g zip- 9> t ango.sql.gz

2. 2 �� Extract latest stable version of Joomla to any directory under htdocs.��ȡ���µ��ȶ��汾��joomla�κ�Ŀ¼�µ�htdocs �� We will assume the name of the directory to be test for simplicity and easy reference.���ǽ��ٶ���Ŀ¼�����Ҫ���Լ򵥶����׵IJο��� In reality it can be named anything.����ʵ�п�������Ϊ�κ����顣 Only requirement is that it should be somewhere under htdocs.Ψһ��Ҫ����Ӧ�õ�ij����htdocs ��

3. 3 �� Copy your Mambo configuration.php file (under Mambo root directory) to your Joomla site.���������configuration.php�ļ��������Ŀ¼�������joomla��վ�� Change the $mosConfig_absolute_path and $mosConfig_live_site variables to point to Joomla base / root directory.�ı���Ԫmosconfig_absolute_pathԪmosconfig_live_site��������ָ��joomla���/��Ŀ¼��

4. 4 �� Copy any custom templates, components, modules, mambots and languages to the same relative locations in the new Joomla directory.�����κ��Զ���ģ�壬�����ģ�飬 mambots�����ԣ���ͬ������λ�ã����µ�joomlaĿ¼�� Do not copy the default ones.��Ҫ����Ĭ�ϡ�

5. 5 �� Copy installation/sql/migrate_Mambo4523_to_Joomla_100.sql to your base directory.����installation/sql/migrate_mambo4523_to_joomla_100.sql����Ļ��Ŀ¼��
cp installation/sql/migrate_Mambo4523_to_Joomla_100.sql . ���񴦴���installation/sql/migrate_mambo4523_to_joomla_100.sql ��

6. 6 �� Delete Joomla installation directoryɾ��joomla��װĿ¼
Go to Joomla base directory and type the following.ȥjoomla���Ŀ¼��Ȼ��������¡� It should delete the installation directory (without any warning; you have been warned).��Ӧɾ��װĿ¼��û���κξ���;���Ѿ��棩 ��
rm -rf installation ��-��Ƶ��װ

7. 7 �� Load the migrate_Mambo4523_to_Joomla_100.sql script to your MySQL database����migrate_mambo4523_to_joomla_100.sql�ű������MySQL��ݿ�
For example if your database name is mambo and your user is root (bad practice):���磬��������ݿ�������������û��Ǹ��������� ��
mysql -u root -p mambo < migrate_Mambo4523_to_Joomla_100.sql MySQL��������-��< migrate_mambo4523_to_joomla_100.sql
You will be prompted for the password, give it.����ʾΪ���룬����

8. 8 �� Open globals.php and change define( 'RG_EMULATION', 1 ); to define( 'RG_EMULATION', 0 ); .����globals.php�͸ı��綨�� ' rg_emulation ' �� 1 �� ;�綨�� ' rg_emulation ' �� 0 �� ; �� This hardens your Joomla installation.���Ӳ���joomla��װ��

9. 9 �� If you were using nice url then you should also copy .htaccess from your original directory�����ʹ����˹��ַ����ô��Ӧ��Ҳ���临�ơ� htaccess�Ĵ����ԭʼĿ¼
cp ../original_directory/.htaccess . ���񴦴���.. / original_directory / .htaccess ��

10. 10 �� Test the new site thoroughly.�����µ���վ���ס�

11. 11 �� On success, first archive the old site and then replace the old site with the new site.���ڳɹ������ȷ��ľ���վ��Ȼ��ȡ��ɵ���վ������վ�� 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:���磬�����ľ���վ���Alpha���������վ����Ϊ���ð棬��ֱ�ӷ���htdocs�£������ʹ���������ݣ�

tar -cjf alpha.tar.bz2 alpha/ ����cjf alpha.tar.bz2 �� /
rm -rf alpha ��-��Ƶ����
mv beta alpha ���ð��MV����

12. 12 �� Test every pages thoroughly, if possible.����ÿ��ҳ�泹�ף������ܵġ� Test polls and form submission.���Ե�����ύ�?��

Note: I followed the excellentע�⣺������dz�ɫ�� how-to article����� to aid my migration.Ԯ���ҵ�Ǩ�ơ� 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.�������в�ͬ�����������������ʵ��ģ��򵥣�����С��ʧ������û��globals.phpС������ָ���С� I prefer using MySQL commanline over phpmyadmin, so this guide shows the command-line way.����Ըʹ��MySQL commanline����phpmyadmin �����Ա�ָ����ʾ�����еķ�ʽ�� Check the article referenced to do it using phpmyadmin.�������������õ�����phpmyadmin ��

Note 2: Use at your own risk.ע2 ��ʹ�����Լ��е����ա� No warranty, implied or otherwise is provided.û����ʾ��ʾ�ı�֤���������ṩ��