Raspberry Pi configures apache php and Raspberry Pi apachephp

Source: Internet
Author: User
Tags apache php

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

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.