
In this article I explain how to create a copy of running Magento online shop . One of purposes of having duplicates is e.g. the need of developing or test environment. Test are very inmportant in magento. Many people do official Magento upgrades on productive environments and suffer form it. You don’t need to do so, use always test environment first!
However the copy procces of Magento shop has following main steps
- duplication of database schema
- duplication of core sources
- duplication of downloader sources
Database
First, let me say say, that it is good idea to not install two Magento instances to the same database. Magento in version 1.1.8 s has 198 database tables. Most of them are of type
InnoDB and they are related with each other by checked foreign key constraints. That is background information.
So new database for every Magento instance save you from having headaches and this not only because having just two magento installation i one DB leads too approx. 400 tables in one database but more to avoid possible problems or side effects with constraints and Co. (e.g. ) .

.
The easiest way to export the database is to use phpMyAdmin. Go to export dialog of original database, select “zipped” option, select tabbles, let other options on their defaults (See screen 1) and get zipped download. Switch to new database and upload the downloaded there in the import dialog.
Sound as a piece of cake, but sometimes the import of the SQL files will not work. I have already seen many different exceptions bu trying. Beginning with “SQL Syntax..” and ending with “constraint violation…”. In my opinion the purpose of problems is
size of some tables and therefore of whole backup. There are few MyISAM tables that are full with (useless) log data. And the amount of this data makes problems to the import routine. Don’t export them first at time! they don’t have any constraint to other tables so you can import them on second or third turn. Alternative you can export only the DDL-Statement of this table not the data itself.
Here are tables you can omit in first step:
- log_url
- log_url_info
- log_visitor
- log_visitor_info
Don’t forget to change configured URL of origin shop to the URLs of new shop in the table
core_config_data. You can also use Search-Tool of phpMyAdmin and identify every record where old URL is used – but outside of core_config_data
table they are not so important and could be changed later in the Shop interface.
Core Sources
That is most easiest part. Just copy the source of magento to the new location, but don’t copy the following:
- downloader dir
- any content of dirs inside of var but .htacces file.
- media/tmp dir
If you use another DB for new Magento installation don’t forget to change DB setting in
app/etc/local.xml file. Var directory hold any temporary content like sessions, caches and error-logs. Downloader is used by Magento connect module, before copy must do some preparations.
Magento Downloader
Warning! do not copy unchanged downloader to new location on the same server it may break your origin magento installation!
Now I got your attention

The problem is that downloder stores serverpath in many many configuration files. And if you don’t change the serverpath and starts updates on new shop copy, you will update the origin shop and not the new copy of it!
The server path of origin magento shop is stored in many many files in the downloader directory, you can’t change all of them manually. But you can do it automatically. If you have SSH access to your web-space following command will help you:
//shows all files with OLD_PATH element
find . -type f -exec grep -q "OLD_PATH" '{}' \; -print
//Replaces OLD_PATH string in all occurrences in every file to NEW_PATH
find . -type f -print | xargs sed -i -e ’s/OLD_PATH/NEW_PATH/g’
If you have only ftp access, then you can use [Alt+F7]-search in
Total Commander. Then open each file with
Notepad++ and then use “Search and Replace” functionality of Notepad++ on each file. Whole replacement willtake you max. 5 minutes.
After replacing old path you can upload downloader to the new instance of Magento.
Now everything including “Magento Connect” should work properly and independent form each othen on thow instances. The last thing my be useful is to clear all caches in admin back-end of new instance. Good luck!
Open Question
This article describes how to double the Magento instance once. The next question which i didn’t answered for me yet is how to make permanent mirroring of data from production environment to the test installation. Maybe someone has cool ideas?
Disclaimer
Please consider that I can’t guarantee that everything described here will work in your environment as it worked for me. Please use this tutorial as incitement and adopt my methods to your own situation. Be sure that you don’t peril origin Magento installation or other data. Do regular backup befor you begin!

Today I found very cool related post Plug-in which I want to share with you – dear Wordpress Blogger! The name of that plug-in is
Microkid’s Related posts and I already like it much!
It differs from other “Related posts”-plug-ins, which are based on automatic content analysis. What ever the content analysis algorithms are and how ever the configuration options used, resulting related post lists are mostly just a bullsh$%. That’s is understandably, then these plug-ins have same problem like search engines and other content analysis tools . In the reality of our age (It is 2009 A.D.) –
computers cannnot understand any semantic of human written articles.
So what is the solution for an good Related Post Plugin? Of cause simple to do it manually!
You say it much work? No!, with
Micrkid’s Related posts Plugin, which provides very comfortable AJAX driven interface, it becomes fun! It’s becomes so easy and quick as providing tags. You decide what is related to the actual post by creating meaningful related post list. Try it out!

Vyacheslav Nikonov
If you live somewhere in the “West”, you may often hear or read something bad about Russians. What you hear and read is mostly “something like truth”. Mostly these “news” are presented in a way, so that they cause bad opinnion about Russia. I personally don’t like it.
Therefore I found the following citation interesting, funny and truth. Vyacheslav Nikonov, a prominent Russian commentator, has quoted his Canadian friend, who came up with the following explanation of Russophobia:
The main problem is that these Russians have white skin. If they had been green, or pink, or came from Mars…or had
flowers sticking out of their ears, then everybody would have said – well, these people are
different, like Turks, or Chinese, or Japanese. We have no questions about the Japanese. They
are different, their civilisation is different. But these Russians … they are white but they have
totally different brains … which is thoroughly suspicious.
Now
Polja’s blog has also completely moved from holbreich.de to holbreich.org. I mean of cause I did it for her, like I . Enjoy her blog!
Isn’t it? I took it with my
Canon 450D on the frozen sea near my home.

The
whole set for interested in photography.

Shuron's Letters
Hello everybody! I’d like to present you my new theme for that Blog! The old theme was not good readable in my opinion. Please tell me if you encounter any bugs.
Have a nice day!
It is interesting to know how much (own) Website is worth. There are several tools on the Internet which can help you to estimate the worth of your page in money ($) but also some tools which does provide some sort of score are interesting to. I’ll will share some interesting tools that can measure the potential of your site or a blog.
Glurk.com
Interesting Web-page worth calculation witch is based on basic SEO-parameters like: Google page-rank, count of back-links, listing in Yahoo directory and so on. You can also say provide some additional or even subjective information, so e.g. count of competitors.
If you like, see
saved result for my site.
Snscoop.com
Here you only need to provide your domain name. And other information will be collected and present to you automatically. Nice and handy but do not work well with sub-domains
Websitevalued.com
This Service is truly nice one. Good Information Presentation and the possibility to provide some data (not to much) manually, which leads to more realistic results. Definitely is worth to try it out!
Seitwert.de
Seitwert is an very cool German service. You have to understand basic German to make the information they provide about your site make useful for you. There are six Rating:
Google Rating, Alexa rating, Social bookmarks presence, technical details, Yahoo rating, an other factors.
It show you the problems of your site.
Seomoz.org
Seomoz seemed to be fine SEO company, at least they have very nice free SEO tools. One of them –
Trifecta measures so called “Page strength” of your site.
You have to be registered user.
Technorrati based -Blog worth
And of cause the known
Blog worth. This rank is based on technorati rank. So you can only apply it on blogs listed on technorati.
Mywebsiteworth.com
Just
enter your URL and you will get worth in $ with not much expression. However the worth is realistic one. Where Blog Worth (See above) gets 1000$ here could be worth 50$.
Seekbot.de
Another useful site is german
Seekbot. Its not ranking and rating service . But I like to listing it here because it something useful it check your page on the fly like Seitwert.de and gives you hint, how bots do see on your site, what is bad and what is good.
My google page-rank is back today. Some days ago I that blog to the new domain. I’ve placed a .htaccess redirect Rewrite Rule
^(.*)$ http://alexander.holbreich.org/$1 [R=301,L]
to the old domain to preserve some humble SEO result of this page. But for some weeks new Blog had no page-rank. Now he is here and the effect of Permanent redirect on google is proved!