Preparatory work:
1.RaspberryPi 3 Generation B type
2. Available memory card
3. Card Reader
4.DiskGenius
5.win32 Disk Imager
6. Available LAN
7.Xshell and Xftp
I. System installation
1. On the official website (https://www.raspberrypi.org/) Find downloads Download Raspbian system, I am under the Lite version, no graphical interface, more than the full version of the resource saving (PI configuration is not high ...) It may require scientific access to the Internet, with lantern or Greenvpn.
2. Use Diskgenius to format the memory card in FAT32 format
3. Use Win32 Disk Imager to select the downloaded system to write to the memory card, after the completion of the memory card in the boot partition to create a new text document and renamed SSH to remove the extension (because the system does not open ssh).
4. Memory card insert PI, plug the network cable, power on ing .....
5. Open the Router management interface, locate the IP of pi, log in with the SSH tool (Xshell or putty),
The default account is: Pi, Password: Raspberry
6. Using the command:
Raspi-config
Do a basic setup, if the permissions are not enough remember to use sudo. Change the password and default time zone.
7. Before the installation of VSFTPD do FTP, and later found that there is no need, SSH comes with sftp, with software xftp directly log in is good.
So the system is basically available, and then think of what needs to be set I add ~
Two. Installing Wordpres
1. Install Apache2:
sudo apt-get install apache2 libapache2-mod-php5
After the installation is complete, restart the following apache2 server:
Sudo/etc/init.d/apache2 restart
The IP address of the PI in the browser after the restart is complete will pop up the Apache2 interface, which means the installation is successful!
2. Install PHP:
sudo apt-get install php5 php5-mysql
After the installation is complete, in the/var/www/html directory, build the phpinfo.php file to write the following content:
<?php phpinfo ();?>
, and then enter Http://pi ip/phpinfo.php in the browser to display the PHP interface instructions to install successfully!
3. Install MySQL:
sudo apt-get install mysql-server mysql-client
The installation process will let you enter the database password, enter to remember!
4. Build wordpress database for WordPress. Log in to MySQL:
Mysql-u root-p
(-u: refers to the login with the user name, followed by root is the user name,-p refers to the password) prompt input password –> input –> enter. Then create the database with instructions:
Create DATABASE WordPress;
(WordPress is the name of the database, feel free to write and remember on the line.) Remember to add the back semicolon!) Exit Quit! Database Setup is complete.
5. Download the wordpress file package, upload to pi, address: https://www.baidu.com/s?ie=UTF-8&wd=wordpress after download is. tar.gz file, uploaded to Pi with xftp ( can also be downloaded directly on the PI, but I think this speed is fast).
6. Unzip:
TAR-XVF Compressed Package Name
After decompression will appear the WordPress folder, the WordPress folder to move all the files under the HTML directory:
sudo mv–r wordpress/*/var/www/html
7. At this point in the browser to open the IP of the pi will see the WordPress configuration page, as prompted to fill in the relevant information (database: just established database name. Database User: Root. Database Password: your database password)
Here WordPress is set up!
Todo list:
1. Extranet access domain name and peanut shell mapping
2. Fixed link settings have pits!
3. Relevant details are updated at any time!
4.chmod 777/var/www/html also have an upload folder to give permission
Build WordPress on Raspberrypi