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.
1 | $ 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/)
1 | $ 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).
1 | define('DB_NAME', 'database'); |
2 | define('DB_USER', 'user'); |
3 | define('DB_PASSWORD', 'password'); |
4 | define('DB_HOST', 'ip of original machine'); |
5 | define('DB_CHARSET', 'utf8'); |
6 | define('DB_COLLATE', ''); |
* Create virtualhost on httpd, same as original server.