IPv6 Web: Wordpress

From OnnoWiki
Jump to navigation Jump to search

Untuk ujicoba, ada baiknya kita menginstalasi salah satu Content Manajemen Sistem (CMS) di atas database server dan web server apache yang kita instalasi. Disini akan di tunjukan cara menginstalasi Wordpress yang paling sering digunakan.

Instalasi aplikasi pendukung:

sudo su
apt-get install php php-xmlrpc php-mysql php-gd php-cli php-curl \
libphp-adodb php-mysql php-gd php-curl php-pear unzip

Download source code Wordpress

cd /usr/local/src
wget http://wordpress.org/latest.tar.gz

Copykan

cd /usr/local/src
cp latest.tar.gz /var/www/html/
cd /var/www/html/
tar zxvf latest.tar.gz
cd /var/www/html/wordpress

Konfigurasi database MySQL (misalnya di set)

mysql -u root -h ::1 -p123456

Isi dengan:

create database wordpress;
grant INSERT,SELECT on root.* to wordpress@localhost;
grant INSERT,SELECT on root.* to wordpress@'::1';
grant CREATE, INSERT, SELECT, DELETE, UPDATE on wordpress.* to wordpress@localhost identified by 'wordpress';
grant CREATE, INSERT, SELECT, DELETE, UPDATE on wordpress.* to wordpress@'::1' identified by 'wordpress';
grant CREATE, INSERT, SELECT, DELETE, UPDATE on wordpress.* to wordpress identified by 'wordpress';
exit

Pastikan /etc/hosts

vi /etc/hosts

Ada

::1     localhost.localdomain   localhost
::1     localhost6.localdomain6 localhost6


Konfigurasi Wordpress

cd /var/www/html/wordpress
cp wp-config-sample.php wp-config.php
vi wp-config.php

Pastikan, sesuai dengan konfigurasi MySQL sebelumnya,

define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'wordpress');
define('DB_HOST', 'localhost');

Restart Web Server

/etc/init.d/apache2 restart

Browse ke Wordpress menggunakan IPv4 atau IPv6 misalnya

http://192.168.0.100/wordpress
http://[2001:470:36:ab6::100]/wordpress


Pranala Menarik