Magento1 icon indicating copy to clipboard operation
Magento1 copied to clipboard

can not run exists project magent1.9

Open ducna96 opened this issue 4 years ago • 2 comments

Hi bro, i have a project magento1 want to move docker env, when i using your docker images, i get issues, please help me.

image Many Thanks

ducna96 avatar Nov 12 '20 09:11 ducna96

I think magento 1.9 not work with mariadb, only mysql

bonzinho avatar Mar 17 '21 17:03 bonzinho

try to do the following steps to run an existent store:

How to run an existent magento1 store

import the DB

import the MySQL file into the PHP my admin to work properly. The MySQL file should be filename.sql.zip it is important that the file should be a SQL and zipped!!!

on PHP myadmin

  • create a new table
  • click on it and go to import and select the zip file

update the core_config_data table with the local URL that will be used to access the store locally

Once you having the SQL already imported you must update the core_config_data with the URL locally

  • update the value field for web/unsecure/base_url
  • update the value field for web/secure/base_url

phpmyadmin

configure the default_setup on local.xml

  • configure the local.xml inside of src/app/etc
 <default_setup>
    <connection>
        <host><![CDATA[db]]></host>
        <username><![CDATA[root]]></username>
        <password><![CDATA[root]]></password>
        <dbname><![CDATA[your_table_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>

run

  • try to run opening the URL configured for the local store

problems with cache

  • if have some problems with cache try to run this script https://gist.github.com/daniloab/68869723769b466d81f58c49fd7b2c22

daniloab avatar Aug 17 '21 16:08 daniloab