Raspberry Pi configures apache php and Raspberry Pi apachephp
Apache + MySql + Php.
1, InstallationApache
Apache can use the following command to install sudo apt-get install apache2
The default Apache path is/var/www/
The configuration file path is/etc/apache2/
You can use sudo nano/etc/apache2/ports. conf to modify the listening port number.
Restart the service to take effect: sudo service apache2 restart
2, InstallationMysqlDuring the installation of sudo apt-get install mysql-server, a prompt will prompt you to enter a password. This password is the password of the mysql root User.
Http://www.cnblogs.com/xiaobo-Linux/ qq463431476 Wavelet
3, InstallationPHPEnter the following command to install PHP 5 and PHP to access the database required by the mysql database.
Sudo apt-get install php5
Sudo apt-get install php5-mysql
Aptitude search mysql-server to see if it is installed
Sudo apt-getinstall php5 libapache2-mod-php5-y
This plug-in is required for Apache to support php web pages:Libapache2-mod-php5