IGOS Nusantara dan Wordpress: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
Baris 32: Baris 32:
 
== Konfigurasi /etc/wordpress/wp-config.php ==
 
== Konfigurasi /etc/wordpress/wp-config.php ==
 
'''LAMA'''
 
'''LAMA'''
  define(‘DB_NAME’, ‘putyourdbnamehere’); // The name of the database
+
  define('DB_NAME', 'putyourdbnamehere'); // The name of the database
  define(‘DB_USER’, ‘usernamehere’); // Your MySQL username
+
  define('DB_USER', 'usernamehere'); // Your MySQL username
  define(‘DB_PASSWORD’, ‘yourpasswordhere’); // …and password
+
  define('DB_PASSWORD', 'yourpasswordhere'); // …and password
  define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
+
  define('DB_HOST', 'localhost'); // 99% chance you won’t need to change this value
  
 
'''BARU'''
 
'''BARU'''
Baris 41: Baris 41:
 
  define('DB_USER', 'blogSaya');
 
  define('DB_USER', 'blogSaya');
 
  define('DB_PASSWORD', 'rhsDongY4');
 
  define('DB_PASSWORD', 'rhsDongY4');
  define('DB_HOST’, 'localhost');
+
  define('DB_HOST', 'localhost');
  
 
== Jalankan ulang httpd ==
 
== Jalankan ulang httpd ==
Baris 48: Baris 48:
 
== Setup Blog ==
 
== Setup Blog ==
 
Jalankan Firefox lalu akses http://localhost/blog/
 
Jalankan Firefox lalu akses http://localhost/blog/
 +
http://localhost/blog/wp-admin/install.php

Revisi per 18 Mei 2010 13.45

Wordpress adalah salah satu content

Pasang

# yum install wordpress

Ubah alias

Secara default akan diakses melalui URL http://localhost/wordpress/ Jika ingin diakses melalui URL http://localhost/blog/ lakukan perubahan pada berkas /etc/httpd/conf.d/wordpress.conf

SEMULA

# Berkas: /etc/httpd/conf.d/wordpress.conf 
Alias /wordpress /usr/share/wordpress

<Directory /usr/share/wordpress>
  AllowOverride Options
</Directory>

MENJADI

# Berkas: /etc/httpd/conf.d/wordpress.conf 
Alias /blog /usr/share/wordpress

<Directory /usr/share/wordpress>
  AllowOverride Options
</Directory>

Buat database

Gunakan phpMyAdmin, klik tab SQL atau http://localhost/phpmyadmin/server_sql.php Laku copy paste tiga baris perintah di bawah ini:

create database blogSaya;
grant all privileges on blogSaya.* to blogSaya@"localhost" identified by 'rhsDongY4';
flush privileges;

Konfigurasi /etc/wordpress/wp-config.php

LAMA

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // …and password
define('DB_HOST', 'localhost'); // 99% chance you won’t need to change this value

BARU

define('DB_NAME', 'blogSaya');
define('DB_USER', 'blogSaya');
define('DB_PASSWORD', 'rhsDongY4');
define('DB_HOST', 'localhost');

Jalankan ulang httpd

# service httpd restart

Setup Blog

Jalankan Firefox lalu akses http://localhost/blog/ http://localhost/blog/wp-admin/install.php