Joomla is a complex content management system, and therefore creating a copy of a site with a Joomla assembly, ready for installation, causes a lot of difficulties for users. However, the ability to create such a copy can protect you from losing the site for one reason or another, and will give you the opportunity, if something happens, to restore the site from a copy of the finished database that you created yourself and prepared for installation.
In this article, we will learn how to make a copy of a Joomla site, which will subsequently be easy to install on any hosting.
It is necessary
Joomla website management system
Instructions
Step 1
First, make a copy of your database in phpmyadmin.
Open the database and rename the prefixes - replace the standard jos_ prefix with the new #_. This will allow the new user of the assembly to change prefixes later.
Step 2
Then delete the information about the administrator account - when installing a copy of the assembly, the user who will install it should become the administrator of the cms by default. To do this, remove several lines in which the prefixes have already been replaced.
INSERT INTO `#_ core_acl_groups_aro_map` VALUES (25, , 10);
INSERT INTO `#_ core_acl_aro` VALUES (10,‘ users ’, ‘62?, 0,‘ Administrator ’, 0);
INSERT INTO `#_ users` VALUES (62, 'Administrator', 'admin', '[email protected]', 'md5 password hash', 'Super Administrator', 0, 1, 25, '2010-02- 04 21:15:31 ?, '2010-02-15 17:35:14 ?,”,”);
Step 3
Change the name of the created database to joomla.sql and copy it to the installation / sql / mysql / folder.
When installing a copy of the assembly, do not forget to delete the configuration.php-dist file containing the assembly data - this is done for security reasons.
Step 4
After these steps, you will have in your hands a ready-made copy of the Joomla assembly of your site, which you can install not only for yourself, but also for your clients (if any), for example, if you lose the original site already installed on the hosting.