Project

General

Profile

Support #130

Installing Magento The Hard Way

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

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
-
Start date:
06/27/2013
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:

Description

During the initial deployment of demo.altservice.com 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 demo.altservice.com 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"?>
<config>
    <global>
        <install>
            <date><![CDATA[Tue, 08 May 2012 18:41:31 +0000]]></date>
        </install>
        <crypt>
            <key><![CDATA[MAGENTO_ENCRYPTION_KEY]]></key>
        </crypt>
        <disable_local_modules>false</disable_local_modules>
        <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[DB_HOST]]></host>
                    <username><![CDATA[DB_USER]]></username>
                    <password><![CDATA[DB_PASS]]></password>
                    <dbname><![CDATA[DB_NAME]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>
        </resources>
        <session_save><![CDATA[files]]></session_save>
    </global>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <frontName><![CDATA[admin]]></frontName>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>

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

History

#1 Updated by Daniel Curtis over 7 years ago

  • Description updated (diff)

Also available in: Atom PDF