夏肇毅知識運算網-在$35樹莓派Raspberry Pi 主機板上安裝 WordPress 與 LAMP 網站伺服器
2016/03/11 16:12
瀏覽799
迴響0
推薦3
引用0
[夏肇毅知識運算網 Mark Hsia's Knowledge Computing Web]
在樹莓派Raspberry Pi 上安裝 WordPress 與 LAMP 網站伺服器
Raspberry Pi 是目前非常受創客maker歡迎的ARM 主機板. 雖然它的性能不像pc那麼強大,但還是可以執行網站伺服器功能的,只是有點慢.
一但我們裝好了我們的Wordpress網站, 我們也同時在我們的板子上擁有一個LAMP(Linux, Apache, MySQL, PHP) 層. 在上面我們可以用PHP程式來接收感應器資料,並將他們存在本地的資料庫中
在Raspberry Pi 的網站上有一篇教學文章如下:
|
|
|||||||
|
|
|
|
|
|
|
||
|
Build a LAMP Web Server with WordPress | Raspberry Pi...
Learn to set up a LAMP (Linux, Apache, MySQL, PHP) stack on your Raspberry Pi and configure it to work as a web server. You'll download and install WordPress and s...
|
|||||||
我的重點彙整:
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.gztar 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
接下去就像標準wordpress安裝一般.
Setup a WordPress LAMP Web Server on your Raspberry Pi
自訂分類:雲端運算
上一則: KungFu Stick animation: Horse-Riding Step and Bow Step 下一則: 夏肇毅知識運算網-物聯網IoT實作體驗-使用Arduino, XBee, Raspberry Pi 2
你可能會有興趣的文章:
限會員,要發表迴響,請先登入














