IGOS Nusantara dan Wordpress: Perbedaan revisi
Dari IGNwiki
| Baris 1: | Baris 1: | ||
Wordpress adalah salah satu content | Wordpress adalah salah satu content | ||
| − | Pasang | + | === Pasang === |
# yum install wordpress | # 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 | ||
| − | Jalankan ulang httpd | + | '''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 === | ||
| + | |||
| + | === 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 | # service httpd restart | ||
Revisi per 18 Mei 2010 13.02
Wordpress adalah salah satu content
Daftar isi
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
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