Root The user under the
1. Install, start Nginx
Apt-get Update
Apt-get Install Nginx
/etc/init.d/nginx start
2, installation php and sqlite
Span style= "Color:rgb (51,51,51); font-family:arial, sans-serif;font-size:12px;" >apt-get Install php5-fpm php5-sqlite sqlitesqlite3
3, modify the nginx configuration file
Nano/etc/nginx/sites-available/default
Modify the content as follows
Listen 80;
Index index.php index.html index.htm;
Location ~ \.php$ {
Fastcgi_pass Unix:/var/run/php5-fpm.sock;
Fastcgi_index index.php;
Include Fastcgi_params;
}
4 , Reload Nginx the configuration
/etc/init.d/nginx Reload
5 , Test Web page
Browser Access Detection
6 , Test PHP
nano/usr/share/nginx/www/test.php
Add the following:
<? Phpinfo ();?>
Save exit, browser access detection
7 , installation WordPress
1 ) Installation WordPress
official websitehttp://cn.wordpress.org/DownloadWordPressInstall the package, unzip it to the Raspberry Pi/var/wwwdirectory under,EnterWordPressThe root directory, putwp-config-sample.phpRename towp-config.php,Editwp-config.phpAdd:
define ( ' Use_mysql ' , false);
Tip : with xftp transfer files, or directly wget , it's slow. I put the SD card in the notebook to operate directly.
2 download, install sqlite plugins to wordpress ( support sqlite
Address:http://wordpress.org/plugins/sqlite-integration/
unzip the plug-in package tounpack the package and put it intowp-content/plugins/directory, and then put the inside of the packagedb.phpcopied toWp-contedirectory. finallySDboot on the Raspberry Pi, access with browserhttp://192.168.1.103/wordpress/inspection.
8, installationFTPServer for easy file transfer (options available)
Apt-get Install VSFTPD # installationVsftpd
Service vsftpd Start # StartFTPService
nano/etc/vsftpd.conf # Edit VSFTDP the configuration file
Find the following line to define
Anonymous_ enable=no # No anonymous access allowed
Local_enable=yes # Set local user can access
write_enable=yes # settings can be written
local_umask=022 # Set the permission mask for post-upload files
Service vsftpd Restart # Restart vsftpd
Raspberry Pi-nginx+php-fpm +sqlite+wordpress