Raspberry Pi-nginx+php-fpm +sqlite+wordpress

Source: Internet
Author: User
Tags fpm sqlite

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.