Reinstall Magento
To reinstall Magtento with the installation wizard you have to: delete app/etc/local.xml clear cache $> rm -rf /path/to/mage/var/cache/* reload your shop frontend
To reinstall Magtento with the installation wizard you have to: delete app/etc/local.xml clear cache $> rm -rf /path/to/mage/var/cache/* reload your shop frontend
To change the permissions of all files and / or folders insight the current folder recursively you can run one of  the following command: $> sudo find . -type d -exec chmod 644 {} \; #all folders get 644 $> sudo find . -exec chmod g+r {} \; #all files and folders get group read rights […]
To change the ownership of all files and folders with a certain group and / or user insight the current folder recursively you can run the following command: $> sudo find . -group OLDGROUP -user OLDUSER -exec chown NEWUSER:NEWGROUP {} \; This way you can set the owning group and / or user.
It’s no big deal to comment out a line in YAML. Just put a sharp (#) as the first character of that line. fileSync: typo3_user_upload: #rsync_params: ‘–delete -avhHxS’ #source: ‘shared/typomage/fileadmin/user_upload’ #target: ‘shared/typomage/fileadmin/user_upload’ typo3_redaktion: rsync_params: ‘–delete -avhHxS’ source: ‘shared/typomage/fileadmin/redaktion’ target: ‘shared/typomage/fileadmin/redaktion’ # magento_media: # rsync_params: ‘–delete -avhHxS’ # source: ‘shared/typomage/media/catalog/product’ # target: ‘shared/typomage/media/catalog/product’ As you can see […]
To get an treelike drop-down option field for all existing categories in the system you have yo add an own source model: <?php /** * * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * It is available through the world-wide-web at this URL: * […]
If you have multiple instances of a Magento shop – for example a staging and a production environment – sooner or later you’ll come to the point, where you need to  synchronize the database from live- to stage-system to get realistic production-like application behavior. In this case it is a good idea to prevent the system from sending mails […]
If you get this error message when trying to update the system (see example below) or just pinging an external host … $> sudo pacman -Syu :: Synchronizing package databases… error: failed retrieving file ‘core.db’ from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org error: failed to update core (download library error) error: failed retrieving file ‘extra.db’ […]
I’ve searched a lot for a solution of this simple looking problem. I found a lot of irritating and confusing information about this on the WWW. From implementing a socket-application to setting up an self-made HTTP-server. But the answer is much simpler: #!/usr/bin/python # -*- coding: UTF-8 -*- # enable debugging import sys import cgitb import […]
To run Python scripts as Apache CGIÂ scripts you have to install and activate the apache cgi module (Ubuntu 12.04): $> sudo apt-get install python #if not already installed $> sudo a2enmod cgid #sudo a2enmod cgi in earlier Ubuntu versions And you have to add the following directive to your Apache configuration file: … <Directory /var/www/sheldonroot/cgi-bin> […]
A very nice and really working recovery tool is  PhotoRec. It’s a very cool commandline tool for Linux which is able to recover all images on a SD or MMC card that have been deleted accidentally. In my case my fingers where faster than my brain and so I had kicked three rally awesome images :-/. […]