字體:小 中 大 | |
|
||||||||||||||||||||||||
2016/03/18 16:36:35瀏覽280|回應0|推薦0 | ||||||||||||||||||||||||
Setup a WordPress LAMP Web Server on your Raspberry PiThe Raspberry Pi is one of the most popular ARM CPU boards for makers. Although it's not as powerful as a desktop PC, but it's still able to act as a web server. Just a little bit slow. .Once we've set up our own Wordpress site, we also have a LAMP(Linux, Apache, MySQL, PHP) stack on our board. We can put our PHP programs to collect data from the devices and store them into the local database. There is a formal tutorial page on the Raspberry Pi web site as follows:
My Summarized Notes: Install Apache
Changing the default web pagecd /var/www/html ls -al sudo chown pi: index.html
Install PHPsudo apt-get install php5 libapache2-mod-php5 -y
Install MySQLsudo apt-get install mysql-server php5-mysql -y
Download and Extract WordPresscd /var/www/html/ sudo chown pi: . sudo rm * wget http://wordpress.org/latest.tar.gz
Set up your WordPress Databasemysql -uroot -ppassword mysql> create database wordpress; Exit out of the MySQL prompt with Ctrl + D . WordPress ConfigurationFind out your Pi's IP addresshostname -I Navigate to http://YOUR-IP-ADDRESS ...... |
||||||||||||||||||||||||
( 知識學習|隨堂筆記 ) |