IPv6 Web: Wordpress

From OnnoWiki
Revision as of 09:18, 23 September 2018 by Onnowpurbo (talk | contribs) (Created page with "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 tunju...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

# apt-get install php5 php5-xmlrpc php5-mysql php5-gd php5-cli php5-curl \
libphp-adodb libgd2-xpm-dev php5-mysql php5-gd php5-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 ip6-localhost ip6-loopback 

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