Install WordPress Multiuser (WPMU) di FreeBSD 6 / 7

WordPress adalah salah satu blog engines yang bagus dan mudah. WordPress juga tersedia dalam mode multi-user untuk setiap subdomain. Tutorial ini adalah cara install WordPress wpmu di server FreeBSD 6.3 / 7 .

1. Download wpmu yang terbaru.

wget http://mu.wordpress.org/latest.tar.gz

2. Extract dan rename:

tar xvfz latest.tar.gz && rm latest.tar.gz && mv wordpress-mu-1.5.1 wpmu


3. Log in ke DNS server dan ubah entry DNS dengan menambahkan baris berikut:

blog.uns.edu 172.88.1.4
*.blog.uns.edu 172.88.1.4

Simpan dan restart DNS Server

Testing dns:

dig blog.uns.edu

dns# dig blog.uns.edu

; <> DiG 9.4.2 <> blog.uns.edu
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40754
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;blog.uns.edu. IN A

;; ANSWER SECTION:
blog.uns.edu. 86400 IN A 172.88.1.4

;; Query time: 12 msec
;; SERVER: 172.88.1.1#53(172.88.1.1)
;; WHEN: Fri Jun 20 08:44:06 2008
;; MSG SIZE rcvd: 53

dns# dig alam.blog.uns.edu

; <> DiG 9.4.2 <> alam.blog.uns.edu
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42517
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;alam.blog.uns.edu. IN A

;; ANSWER SECTION:
alam.blog.uns.edu. 86400 IN A 172.88.1.4

;; Query time: 6 msec
;; SERVER: 172.88.1.1#53(172.88.1.1)
;; WHEN: Fri Jun 20 08:44:15 2008
;; MSG SIZE rcvd: 58

4. Edit Konfigurasi Apache, ubah file httpd.conf :

ee /usr/local/etc/apache/httpd.conf
NameVirtualHost 172.88.1.4 

<VirtualHost 172.88.1.4 >
ServerAdmin admin@blog.uns.edu
DocumentRoot /home/admin/public_html/wpmu
<Directory /home/admin/public_html/wpmu >
AllowOverride FileInfo Options
</Directory>
ServerName blog.uns.edu
ServerAlias *.blog.uns.edu
</VirtualHost>

Simpan dan restart apache.

5. Buat database dan grant user.

mysql -uroot -p

Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 46
Server version: 5.0.51a-log FreeBSD port: mysql-server-5.0.51a

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> show databases;

+——————–+
| Database |
+——————–+
| information_schema |
| mysql |
+——————–+
2 rows in set (0.02 sec)

mysql> create database wpmu;

Query OK, 1 row affected (0.01 sec)

mysql> grant all privileges on wpmu.* to alam@localhost identified by ‘puskom’ with grant option;

Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql>

6. Memulai install, buka http://blog.uns.edu melalui browser.

Pesan chmod akan muncul, ketik pada shell command baris berikut :

chmod 777 /home/admin/public_html/wpmu
chmod 777 /home/admin/public_html/wpmu/wp-content/

Kemudian Refresh browser.

Ikuti wizard dan isi informasi yang sesuai :

– Isi subdomain
– Isi informasi yang sesuai tentang database di step 5.
– isi Site details.

Click Submit.

7. Kembalikan mode file ke mode semula.

chmod 755 /home/admin/public_html/wpmu
chmod 755 /home/admin/public_html/wpmu/wp-content/

Selesai.

Administrator Tinggal menambahkan themes baru, atau plugins.