Pada postngan sebelumnya sudah diabahas untung seting
Apache, MySQL, PHP sekarang kita lanjut instal worpressnya,pada bahasan kali ini kita harus sudah punya domain seperti contoh yang saya buat dari domain gratisan codotvu.com
Step 1: Downloading WordPress for Apache
# cd /tmp
# wget http://wordpress.org/latest.tar.gz
# tar -xvzf latest.tar.gz -C /var/www/html
Step 2: Membuat MySQL Database WordPress
mysql -u root -p
Enter password: langsung enter jika pertama kali install
CREATE USER wordpress@localhost IDENTIFIED BY "your_password_here";
create database wordpress;
GRANT ALL ON wordpress.* TO wordpress@localhost;
FLUSH PRIVILEGES;
exit
Step 3: Creating Apache VirtualHost for WordPress
nano /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
ServerAdmin seedbox.co.vu
DocumentRoot /var/www/html/wordpress
ServerName wordpress
ErrorLog /var/log/httpd/wordpress-error-log
CustomLog /var/log/httpd/wordpress-acces-log common
</VirtualHost>
service httpd restart
Masukin pada line
/etc/hosts berikut
nano /etc/hosts
127.0.0.1 wordpress
Step 4: Configuring WordPress Installation
cd /var/www/html/wordpress
cp wp-config-sample.php wp-config.php
nano wp-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');
/** MySQL database username */
define('DB_USER', 'username_here');
/** MySQL database password */
define('DB_PASSWORD', 'password_here');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
Step 5: Finishing WordPress Installation
Buka browser lalu ketik http://domainanda atau http://IPVPSanda
Nanti akan diarahkan ke wp admin isi data user dan pass lalu klik install