• Magento

    Sun, 22 Dec 2013 20:14:19 +0100Posted by Andre Landwehr

    [Tips & Tricks]

    This weekend was dedicated to installing the famous Magento shop for Cardlove. Turns out this is not so easy at all. There is a pre-built version for using in Germany, with all the extra legal stuff required only here. You can find it for free at nr-apps.com. Currently this is based on Magento 1.7, which is not quite the latest stable release. They present four zip files for download, without any further comments. Turns out these are just different versions of the same, so I chose the latest one (magento de 1 2 1.zip).
    The next pitfall for the unwary is that after unzipping the file inside the webserver's htdocs directory, things simply do not work. Why? Because there is a directory GermanStoreConfig-master/src/ which contains the files supposed to be directly inside the htdocs directory. Just move them there and remove the unnecessary two directories. Ok, welcome on the installation webpage.
    Next page, you are required to enter the name of the database and an account to access it. Wait, I had to create the database manually beforehand? Yes. So glad somebody told me about it. Ok, look in this nice tutorial on howtoforge how to do it, basically it comes down to a
    create database magento;
    and after that
    GRANT CREATE, ALTER, INDEX, DROP, CREATE TEMPORARY TABLES, SELECT, INSERT, UPDATE, DELETE ON magento.* TO 'magento admin'@'localhost' IDENTIFIED BY '%magento admin password%';
    GRANT CREATE, ALTER, INDEX, DROP, CREATE TEMPORARY TABLES, SELECT, INSERT, UPDATE, DELETE ON magento.* TO 'magento admin'@'localhost.localdomain' IDENTIFIED BY '%magento admin password%';
    FLUSH PRIVILEGES;

    Next page, next problem "PHP Extensions =930=94 must be loaded". Obviously a well known bug in Magento 1.7, a fix is described here. Comes down to replacing
    <extensions>
      <pdo mysql/>
    </extensions>

    with
    <extensions>
      <pdo mysql>1</pdo mysql>
    </extensions>

    in the file app/code/core/Mage/Install/etc/config.xml.
    For the moment, that's all. I go on configuring the shop now, let's see what happens there...