Raspberry Pi Debian Configuration lamp[fix Apache does not show PHP page]

Source: Internet
Author: User

Apache + MySql + Php.

1. Installing Apache

Apache can use the following command to install sudo apt-get install apache2

Apache Default path is/var/www/

Its configuration file path is:/etc/apache2/

You can modify the listening port number by: sudo nano/etc/apache2/ports.conf

Restart Service effective: sudo service apache2 restart

2, install MySQL sudo apt-get install mysql-server installation process, a prompt will appear to let you enter a password. This password is the password of the MySQL root user.

Blog Source:

    • http://www.cnblogs.com/xiaobo-Linux/qq463431476 wavelet
    • Http://blog.csdn.net/zhaocundang

3, install PHP input the following command, you can install PHP 5, and PHP access to the MySQL database required libraries.

sudo apt-get install php5

sudo apt-get install Php5-mysql

Aptitude search Mysql-server See if there are any installed

sudo apt-getinstall php5 libapache2-mod-php5-y

Apache Support PHP Web page requires this plugin: LIBAPACHE2-MOD-PHP5

Raspberry Pi Debian Configuration lamp[fix Apache does not show PHP page]

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.