HOWTO: Install PHP Memcache on Ubuntu
Update, install new software an restart Apache:
# apt-get update && apt-get upgrade
# apt-get install memcached php5-memcache
# /etc/init.d/apache2 restart
Now test it. Start a new memcache instance:
# memcached -u root -d -m 24 -l 127.0.0.1 -p 11211
This instance starts as root user using 24 MB as maximum cache size, listening on port 11211.
On my system, I have this process running now:
13919 ? Sl 0:00 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 127.0.0.1
We can test our running memcache process by connecting via Telnet:
# telnet 127.0.0.1 11211
An overview of the availiable commands, you can find here: http://lzone.de/articles/memcached.htm
If you like to change your default memcached configuration, do the following:
# vim /etc/memcached.conf
Don't forget to restart memcached afterwards:
# /etc/init.d/memcached restart
At this point you would have to start all memcached instances manually. That's a thing I wouldn't like to worry about. So move the commands to rc.local:
# vim /etc/rc.local
Add lines like this before 'exit 0':
memcached -u your-user-name -d -m 16 -l 127.0.0.1 -p 11211
Make sure every instance listens on a different port. For example: 11211, 11212, 11213... etc.
HOWTO: Install ImageMagick (IMagick) for PHP on Ubuntu
If you don't have it installed already, install PEAR:
# sudo apt-get install php-pear
Install the Imagick packets:
# sudo apt-get install imagemagick libmagickwand-dev
If you don't have the PHP5 development packet on your server, you maybe also need to install the following packet:
# sudo apt-get install php5-dev
Now we can install Imagick via PECL:
# sudo pecl install imagick
At this point we have to tell PHP to use Imagick. We can achieve this by putting the following line in the php.ini config file. Just put it at the end of the file. Mine is located at /etc/php5/apache2/php.ini.
extension=imagick.so
We're nearly done. Restart your Apache2 server now:
/etc/init.d/apache2 restart
That's it!
xt:Commerce – Weitere Kategoriebox anlegen
(Quelle: aus dem Veyton 4.0 Handbuch)
In xt:Commerce VEYTON ist es ein leichtes, eine weitere Kategoriebox anzulegen um zb Kategorien auch optisch zu Trennen (Herren / Damen zb).
Um eine neue Kategoriebox zu erstellen führen Sie folgendes durch:
1. Kopieren Sie die Datei xtCore/boxes/categories.php und benennen die kopierte Datei in categories_herren.php um.
2. Kopieren Sie die categories.html in Ihrem Template und bennenen diese ebenfalls in categories_herren.html um.
3. Öffnen Sie Ihr Template (zb index.html) und fügen {box name=categories_herren} ein.
4. Fertig, Ihre neue Kategoriebox sollte nun angezeigt werden.
Um nun in der erstellten Kategoriebox eine beschränkte Hauptkategorie mit Ihren Unterkategorien anzeigen zu lassen, öffnen Sie Ihre categories_herren.php Datei und ändern den Befel:
$category->getCategoryBox() auf $category->getCategoryBox(5)
(5 ersetzen Sie bitte durch Ihre ID der gewünschten Wurzelkategorie)