Wordpress: Install fresh dengan Nginx

From OnnoWiki
Jump to navigation Jump to search

Install Apps pendukung

apt -y install php php-mysql


Download

https://wordpress.org/latest.zip
https://id.wordpress.org/latest-id_ID.zip

Install

mkdir /var/www/html
cp Wordpress.zip /var/www/html
unzip Wordpress.zip

Buat database

mysql -u root -p
create database wordpress;

Config

cd /var/www/html
cp wp-config.sample.php wp-config.php
vi wp-config.php

Sesuaikan db_user, db_password, db_name

Jalankan

cd /var/www/html/
php -S 0.0.0.0:8000
php -S localhost:8000

Browse ke localhost:8000