Project

General

Profile

Support #130

Updated by Daniel Curtis over 11 years ago

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":http://www.magentocommerce.com/boards/viewthread/284882/ 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: 
 <pre> 
 sudo chmod o+w var var/.htaccess app/etc 
 sudo chmod -R o+w media 
 </pre> 

 I then installed the Magento sample data to the demo site's database: 
 <pre> 
 mysql -h DB_HOST -u DB_USER -p DB_PASS < magento_sample_data.sql 
 </pre> 

 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: 
 <pre> 
 mysql -h DB_HOST -u DB_USER -p DB_PASS 
 </pre> 

 And reset the password with the following query: 
 <pre><code class="sql"> 
 UPDATE admin_user SET password=CONCAT(MD5('qXpassword'), ':qX') WHERE username='admin'; 
 </code></pre> 

 Here is another copy of the local.xml file: 
 <pre><code class="xml"> 
 <?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> 
 </code></pre> 

Back