Typo3 – Reset admin password


title: “Typo3 – Reset admin password”
date: 2015-03-03T18:25:51
slug: typo3-reset-admin-password


UPDATE be\_users SET password=md5('your\_new\_password') WHERE username = 'admin';
$TYPO3\_CONF\_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971';

This will seet default password (“joh316”) back again (Installer Tool).

IPV6 Routing und IP Adresse konfigurieren (ip command)


title: “IPV6 Routing und IP Adresse konfigurieren (ip command)”
date: 2015-02-16T19:49:44
slug: ipv6-routing-und-ip-adresse-konfigurieren-ip-command


IP Adresse zum Interface hinzufügen (nicht statisch)

ip -6 addr add 2a00:c98:2222:a002::60/128 dev eth0

Netz an eth0 routen

ip -6 route add 2a00:c98:2222:a002::/112 dev eth0

Defaultgateway eintragen

ip -6 route add default via 2a00:c98:2222:a002::1 dev eth0

Netzwerkkonfiguration Centos7:

[root@localhost network-scripts]# cat ifcfg-eth0

TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4\_FAILURE\_FATAL=no
IPV6INIT=yes
IPV6\_AUTOCONF=no
IPV6\_DEFROUTE=yes
IPV6\_FAILURE\_FATAL=no
NAME=eth0
UUID=39c5de22-5e1d-414c-9129-ef75904d5dcb
ONBOOT=yes
IPV6ADDR=2a00:c98:2222:a002::60/112
IPV6\_DEFAULTGW=2a00:c98:2222:a002::1
HWADDR=52:54:00:4C:F8:1B
PEERDNS=yes
PEERROUTES=yes
DNS1=2001:4860:4860::8888

SSH Weiterleitung an anderen Host (IP)


title: “SSH Weiterleitung an anderen Host (IP)”
date: 2015-02-14T12:37:00
slug: ssh-weiterleitung-an-anderen-host-ip


iptables -t nat -A PREROUTING -p tcp -d 46.165.xxx.xxx --dport 22101 -j DNAT --to 10.10.0.101:22
iptables -t nat -A POSTROUTING -j MASQUERADE

Add IPv6 Support to OPENVZ Container


title: “Add IPv6 Support to OPENVZ Container”
date: 2015-02-13T16:01:02
slug: add-ipv6-support


vzctl create 101 \
–ostemplate debian-7.0-x86_64 \
–conf vswap-512m \
–ipadd 2a00:c98:2030:a002::55 \
–hostname openvz001.sdffdsf.de

/etc/sysctl.conf

IPv6 Packet Forwarding and Proxy NDP

net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.default.proxy_ndp = 1
net.ipv6.conf.all.proxy_ndp = 1

Apache SEO Rewrite Rule


title: “Apache SEO Rewrite Rule”
date: 2015-01-29T12:33:27
slug: apache-seo-rewrite-rule


Für http://domain.de/page1

RewriteRule ^([^\.]\*)$ index.php?menu=$1

$1 entspricht dann “page1” (bis vorm ersten .)

Für http://domain.de/page1.html

RewriteRule ^(.\*)\.html$ index.php?menu=$1

$1 entspricht dann “page1” (bis vor .html)

Aptana Studio 3 – SVN Installation


title: “Aptana Studio 3 – SVN Installation”
date: 2015-01-28T20:52:09
slug: aptana-studio-svn


Repository Location hinzufügen:

http://download.eclipse.org/technology/subversive/2.0/update-site/
http://community.polarion.com/projects/subversive/download/eclipse/4.0/update-site/

Anschließend SVNKIT 1.8.7 Implementation installieren

Repository für PHP Development Tools:
http://download.eclipse.org/releases/indigo/

HP Proliant DL160 G7, B110i RAID und SLES11-SP3 X84_64 Installation (Remote / KVM)


title: “HP Proliant DL160 G7, B110i RAID und SLES11-SP3 X84_64 Installation (Remote / KVM)”
date: 2014-12-15T14:44:56
slug: hp-proliant-dl160-g7-b110i-raid-und-sles11-sp3-x84_64-installation-remote-kvm


1. ISO Datei im Anhang downloaden
2. SLES11 SP3 booten und F6 (Treiber) auf Ja stellen
3. Setup SLES11SP3 mit folgendem Kernel Boot Parameter starten broken_modules=ahci
4. Modul laden (Device vom Remote KVM angeben)

Dovecot & Sieve


title: “Dovecot & Sieve”
date: 2014-11-18T22:12:06
slug: dovecot-sieve


dovecot-managesieved und dovecot-sieve installieren

apt-get install dovecot-managesieved dovecot-sieve
mkdir /var/lib/dovecot/sieve/
vi /var/lib/dovecot/sieve/default.sieve

Filter Regel anlegen um Mails die mit “X-Spam-Flag” “YES” markiert sind, in Junk Ordner verschieben

require "fileinto";
if header :contains "X-Spam-Flag" "YES" {
 fileinto "Junk";
}

Regel compilieren

sievec /var/lib/dovecot/sieve/default.sieve
chown -R vmail:vmail /var/lib/dovecot
vi conf.d/15-lda.conf
lda\_mailbox\_autosubscribe = yes
lda\_mailbox\_autocreate = yes
vi conf.d/90-sieve.conf
sieve = ~/.dovecot.sieve
sieve\_dir = ~/sieve
sieve\_global\_path = /var/lib/dovecot/sieve/default.sieve
sieve\_global\_dir = /var/lib/dovecot/sieve/
sieve\_after = /var/lib/dovecot/sieve

PHP mit Threads compilieren


title: “PHP mit Threads compilieren”
date: 2014-10-29T10:52:44
slug: php-mit-threads-compilieren


PHP Version 5.6.X downloaden und konfigurieren:

./configure --prefix=/usr/share/php56 --datadir=/usr/share/php56 --mandir=/usr/share/man --bindir=/usr/bin/php56 --with-libdir=lib/x86\_64-linux-gnu --includedir=/usr/include/php56 --sysconfdir=/etc/php56/apache2 --with-config-file-path=/etc/php56/apache2 --with-config-file-scan-dir=/etc/php56/conf.d --enable-libxml --enable-session --with-pcre-regex=/usr --enable-xml --enable-simplexml --enable-filter --disable-debug --enable-inline-optimization --disable-rpath --disable-static --enable-shared --with-pic --with-gnu-ld --with-mysql --with-gd --with-jpeg-dir --with-png-dir --with-xpm-dir --enable-exif --with-zlib --with-bz2 --with-curl --with-mysqli --with-freetype-dir --enable-soap --enable-sockets --enable-calendar --enable-ftp --enable-mbstring --enable-gd-native-ttf --enable-bcmath --enable-zip --with-pear --with-openssl --with-imap --with-imap-ssl --with-kerberos --enable-phar --enable-pdo --with-pdo-mysql --with-mysqli --enable-intl --with-mcrypt --with-tsrm-pthreads --enable-maintainer-zts

Dann compilieren und installieren:

make
make install

Neuste pthreads Source runterladen und entpacken:

w3m http://pecl.php.net/get/pthreads
tar -xvf pthreads-2.0.10.tgz

Dann ein:

cd pthreads-2.0.10
/usr/bin/php56/phpize

(Evtl. muss autoconf installiert werden: apt-get install autoconf)

pthreads configurieren:

./configure --with-php-config=/usr/bin/php56/php-config

pthreads compilieren und instllieren

make
make install

Jetzt müsste eine Datei namens pthreads.so im Verzeichnis /usr/share/php56/lib/php/extensions/no-debug-zts-20131226/ exitieren

Jetzt die php.ini aus den sourcen nach /etc/php56/cli kopieren

cp php.ini-development /etc/php56/conf.d/php.ini

Dann noch die extension in der php.ini Datei eintragen

extension=/usr/share/php56/lib/php/extensions/no-debug-zts-20131226/pthreads.so

Checken in php mit pthreads funktioniert:

/usr/bin/php56/php -m | grep pthreads

Ergebnis sollte sein:

pthreads