Contents ...
udn網路城邦
夏肇毅知識運算網:在IoT物聯網樹莓派上設立WordPress伺服器
2016/10/01 20:56
瀏覽380
迴響0
推薦2
引用0

Setup a WordPress LAMP Web Server on your Raspberry Pi

My Summarized Notes:

Install Apache

sudo apt-get install apache2 -y
 

Changing the default web page

cd /var/www/html 
ls -al
 sudo chown pi: index.html
  

Install PHP

sudo apt-get install php5 libapache2-mod-php5 -y
  

Install MySQL

sudo apt-get install mysql-server php5-mysql -y
  

Download and Extract WordPress


cd /var/www/html/ 
sudo chown pi: . 
sudo rm * 
wget http://wordpress.org/latest.tar.gz

 
tar xzf latest.tar.gz mv wordpress/* . rm -rf wordpress latest.tar.gz
 

Set up your WordPress Database


mysql -uroot -ppassword  
 mysql> create database wordpress;

Exit out of the MySQL prompt with Ctrl + D.

WordPress Configuration

Find out your Pi's IP address
hostname -I

Navigate to
http://YOUR-IP-ADDRESS
有誰推薦more

限會員,要發表迴響,請先登入