/************************************************************************* * RPi 2B apache2 MySQL php5 an D VSFTP * Statement: * This article mainly records the RPI 2B how to install Apache2, MySQL, php5, vsftp server, and test it for follow-up work, which encountered the problem of insufficient SD card space. * 2016-2-19 Shenzhen Nanshan Ping Shan village Zengjianfeng ************************************************************ ************/First, reference article:1. Apache Server (PHP +MySQL) on Raspberry PI http://Www.tuicool.com/articles/I7Jfue 2. Raspberry Pi (Raspberry Pi) Learning 10: Install FTP server http://blog.csdn.net/c80486/article/details/8460854second, the installation process:1. sudo apt-GetUpdate2. sudo apt-GetInstall apache2 php5 libapache2-mod-php53. sudo apt-GetInstall Mysql-server mysql-client php5-MySQL MySQL username:root mysql passwd:zengjf4. sudo apt-GetInstall vsftpd Username:pi passwd:raspberry Three, the default SD card space is not enough:1. sudo raspi-Config2. Select tab 1:expand filessystem mysql test: [email protected]:~ $ mysql-hlocalhost-uroot-P Enter Password:welcome to the MySQL Monitor. Commands End With; or \g. Your MySQL Connection ID is +Server Version:5.5. --0+deb8u1 (Raspbian) Copyright (c) -, -, Oracle and/or its affiliates. All rights reserved. Oracle isA registered trademark of Oracle Corporation and/or its affiliates. Other names trademarks of their respective owners. Type'Help ;'Or'\h' forHelp. Type'\c'To clear the current input statement. MySQL>show databases; +--------------------+ | Database | +--------------------+ | Information_schema | | MySQL | | Performance_schema | +--------------------+3Rowsinch Set(0.00sec) MySQL>v. PHP5 test [email protected]:~ $ php-v PHP5.6. --0+DEB8U1 (CLI) (Built:jan - . A: -: A) Copyright (c)1997- -The PHP Group Zend Engine v2.6.0, Copyright (c)1998- -Zend Technologies with Zend opcache v7.0.6-dev, Copyright (c)1999- -, by Zend Technologies VI, apache2 PHP test:1. CAT/var/www/html/index.phpphp echo"I am ZENGJF"?> </body> 2. Browser access: http://192.168.0.5I am ZENGJF</body> vii. vsftp Test: Browser type: ftp://192.168.0.5/the index name size modification date of the Desktop/ -/2/ +PM 2:Geneva:xxDocuments/ the/ One/ +PM 9: to:xxDownloads/ the/ One/ +PM 9:Panax Notoginseng:xxMusic/ the/ One/ +PM 9:Panax Notoginseng:xxPictures/ the/ One/ +PM 9:Panax Notoginseng:xx Public/ the/ One/ +PM 9:Panax Notoginseng:xxTemplates/ the/ One/ +PM 9:Panax Notoginseng:xxVideos/ the/ One/ +PM 9:Panax Notoginseng:xxPython_games/ the/ One/ +PM 9: to:xxShow0B -/2/ +PM 2: .:xx
RPi 2B apache2 MySQL php5 and vsftp