WordPress dalam localhost

Post ni ialah sinambungan dari https://linniah.wordpress.com/2017/05/13/web-server-linux-vs-windows/. Sebelum awak implement apa² change dalam blog ni atau web yg awak bikin, awak akan draft dulu offline dalam localhost. Ada lah senang sikit nak edit sebelum final.

Ni step yg awak guna untuk setup WordPress dalam localhost:

  1. Download file WordPress dari wordpress.org. Awak dapat zip file. Unzip jer terus dalam folder Download.
  2. Buka localhost/phpmyadmin dan buat satu DB dan User-nya sekali.
  3. Buka folder Download dan buka folder wordpress. Cari file wp-config-sample.php dan rename jadi wp-config.php
  4. Buka file wp-config.php dan edit bahagian Database, User dan Password ikut yg awak dah buat dalam phpmyadmin.
  5. Buka Terminal dan issue command sudo cp -R ~/Download/wordpress /var/www/html/
  6. Buka localhost/wordpress/ untuk setup WordPress dalam localhost. Follow jer sampai siap.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s