WordPress with one database, same domain, two identical installation on two different machine/network(ipv4/ipv6)
Here is the case:
I have already wordpress/blog installation running on httpd with ipv4.(with no ipv6 enabled).
I want everyone with native ipv6 be able accesing my blog.
I have one server already connected to ipv6 via he.net tunnel brokers on different region.
It’s also have httpd listen on both ipv4/ipv6.
So here’s what i have done.
* I made a backup of wordpress installation on original server.
$ tar cjf wordpress.tar.bz2 wordpress
* Copy and extract wordpress backup to ipv6 enabled
server.(in my case it's extracted on /var/www/html/)
$ tar xjf wordpress.tar.bz2
* Edit wp-config.php
since wordpress using database on original server. I have to create one user, that can access the database from network.(i’m not going to explain how to do it, it’s not beyond this article scope).
define('DB_NAME', 'database'); define('DB_USER', 'user'); define('DB_PASSWORD', 'password'); define('DB_HOST', 'ip of original machine'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');
* Create virtualhost on httpd, same as original server.
Hurricane Electric IPv6 certification
Hurricane Electric IPv6 certification
Sambil nunggu selesainya pentransferan domain kutukupret.com dari registrar lama ke registrar yg baru. mari kita liat2 total score yg sudah diperoleh.
registrar yg lama nggak support ipv6 glue record, dan parahnya di pegang temen ada di hawaii(tau masih di sana atau udah pulang ke indo) dan orangnya super sibuk.
kalo mau modified atau nambah nameserver untuk keperluan test2 ceritification jadi agak2 sungkan takut nganggu ke sibukannya, akhirnya di putuskan register sendiri account di salah satu registrar. dan minta domainnya di transfer sekalian.pentransferan masih dalam proses. kalo udah kelar niat nya mau bikin AAAA record/pointer di v6ns.org
supaya bisa di query secara native sama resolver he.net yg pakai ipv6.untuk keperluan "Sage cetification test".
berikut score sementara (masih yakin pasti masih bisa nambah 😀 )
Centos 5 and IPv6 (IPv6-in-IPv4 tunneling)
Step 1:
Register Account at Freenet6
Step 2:
Download Gateway6 Client
Freenet6 (893 downloads )Step 3:
Compile source rpm and install
# rpmbuild --rebuild freenet6-6.0.1-1.src.rpm # rpm -ivh /path/to/freenet6-6.0.1-1.x86_64.rpm
Step 4:
Configure
# vi /etc/gw6c.conf
Window XP HOME and ipv6
Shaping Layer 7 Application on centos 4.7 (iptables + l7 + IMQ + tc/HTB)
Pertama download kernel source kernel 2.6.26.
# wget -t0 -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2
Download iptables 1.4.1 source.
# wget -t0 -c http://www.netfilter.org/projects/iptables/files/iptables-1.4.1.tar.bz2
Download patch l7 + IMQ (untuk kernel dan iptables) yg sudah saya modifikasi jadi satu bundle.
[download#3]
[download#4]
Extract, patch dan compile kernel source(to RPM)
# tar xjf linux-2.6.26.tar.bz2 # cd linux-2.6.26 # patch -p1 < ../linux-2.6.26-layer7-imq.patch patching file drivers/net/imq.c patching file drivers/net/Kconfig patching file drivers/net/Makefile patching file include/linux/imq.h patching file include/linux/netfilter/xt_IMQ.h patching file include/linux/netfilter/xt_layer7.h patching file include/linux/netfilter_ipv4/ipt_IMQ.h patching file include/linux/netfilter_ipv6/ip6t_IMQ.h patching file include/linux/skbuff.h patching file include/net/netfilter/nf_conntrack.h patching file include/net/netfilter/nf_queue.h patching file net/core/dev.c patching file net/core/skbuff.c patching file net/netfilter/Kconfig patching file net/netfilter/Makefile patching file net/netfilter/nf_conntrack_core.c patching file net/netfilter/nf_conntrack_standalone.c patching file net/netfilter/nf_queue.c patching file net/netfilter/regexp/regexp.c patching file net/netfilter/regexp/regexp.h patching file net/netfilter/regexp/regmagic.h patching file net/netfilter/regexp/regsub.c patching file net/netfilter/xt_IMQ.c patching file net/netfilter/xt_layer7.c # cp /boot/config-`uname -r` .config # make clean # make menuconfig
802.1q Non Native VLAN Tagging di CENTOS 4
Compiling iptables geoip module di centos 5
Di compile pada system centos 5, kernel 2.6.18 dan iptables 1.3.5
1. Persiapan
Download kernel source yg sekarang dipakai di centos 5 kita
# mkdir ~/geoip # cd ~/geoip/ # uname -a Linux host.domain.com 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 13:02:30 EST 2008 x86_64 x86_64 x86_64 GNU/Linux # wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/kernel-2.6.18-53.1.13.el5.src.rpm
kita cuma mau mengambil linux-2.6.18.tar.bz2 nya saja(patch2 yg lain tidak kita perlukan).
# rpm2cpio kernel-2.6.18-53.1.13.el5.src.rpm | cpio -idv linux-2.6.18.tar.bz2 linux-2.6.18.tar.bz2 172734 blocks # tar xjf linux-2.6.18.tar.bz2