[Solved] FAILED ERROR: Magento is already installed

Explanation:
We get this error when re-trying to install magento. This happens because magento stores the log of the previous installation date and before carrying out installation process again it checks for previous installations and it does so by checking the date which is stored inside the xml file → app/etc/local.xml.

Code Snippet from local.xml file

[xml highlight=”4″]
<config>
<global>
<install>
<date><![CDATA[Tue, 15 Mar 2011 15:14:24 +0000]]></date>
</install>
<crypt>
<key><![CDATA[83bf8a0a3ed2788db79e121c00f1cebb]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><![CDATA[]]></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[root]]></username>
<password><![CDATA[]]></password>
<dbname><![CDATA[magento]]></dbname>
<active>1</active>
</connection>
</default_setup>
</resources>
<session_save><![CDATA[db]]></session_save>
</global>
<admin>
<routers>
<adminhtml>
<args>
<frontName><![CDATA[admin]]></frontName>
</args>
</adminhtml>
</routers>
</admin>
</config>
[/xml]

Solutions:
There are two solutions for this problem.

  1. Delete the local.xml file entirely, Re-installation will create this file again.
  2. Edit the file local.xml and delete the date portion (line 4)

Make this portion of code snippet

[xml firstline=”4″]
<date><![CDATA[Tue, 15 Mar 2011 15:14:24 +0000]]></date>
[/xml]

to look like this, See the difference, I just delete d everything in between CDATA[].

[xml firstline=”4″]
<date><![CDATA[]]></date>
[/xml]

Re-installing the magento will fill it again. That’s it. Now you should be able to install magento as usual visiting the page http://magentotest.com/magento/install.php

Hope this helps you.