Support #130

Installing Magento The Hard Way

Added by Daniel Curtis over 10 years ago. Updated over 10 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
2.00 h
Spent time:


During the initial deployment of I was unable to complete the normal web installation procedure. At first the error that prevented the install was:

PHP Extension "0" must be installed

I found the fix at Magento's forum however this led to the next error, a redirect loop. I was unable to locate the root cause of this problem, however I managed to work around this. The symptoms were a redirect loop just after filling out the database information on the web installer. This made the install impossible due to the app/etc/local.xml never being created.

I uploaded the Magento files to the web directory and set the proper permissions:

sudo chmod o+w var var/.htaccess app/etc
sudo chmod -R o+w media

I then installed the Magento sample data to the demo site's database:

mysql -h DB_HOST -u DB_USER -p DB_PASS < magento_sample_data.sql

After this step I had to create a local.xml file to contain the relevant database information for the instance. I have included a template XML file for use. Once the local.xml file was set in app/etc the Magento instance was resolved.

However there was one last problem before administration would work, I had to manually reset the password in the Magento database.

I logged into as such:

mysql -h DB_HOST -u DB_USER -p DB_PASS

And reset the password with the following query:

UPDATE admin_user SET password=CONCAT(MD5('qXpassword'), ':qX') WHERE username='admin';

Here is another copy of the local.xml file:

<?xml version="1.0"?>
            <date><![CDATA[Tue, 08 May 2012 18:41:31 +0000]]></date>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>


local.xml (2.28 KB) local.xml Magento local.xml Template Daniel Curtis, 06/27/2013 10:01 AM

Updated by Daniel Curtis over 10 years ago

  • Description updated (diff)

Also available in: Atom PDF