Installation instructions to support PHP5 and MySQL Apache2 on Debian wheezy

Source: Internet
Author: User
Keywords Mysql debian wheezy apache2
Tags aliyun apache apache2 debian etc example host host name

LAMP is Linux, http://www.aliyun.com/zixun/aggregation/14417.html ">apache, MySQL, PHP shorthand." This tutorial demonstrates how to install a Apache2 server that supports PHP5 and MySQL on a Debian wheezy server.

1. Preliminary notes

In this tutorial, the host name we use is the SERVER1.EXAMPLE.COM,IP address is 192.168.0.100. These settings may be different from yours, so you need to change back to your correct IP address after the installation is complete.

2. Install MySQL 5

First we enter the following command to install MySQL 5:

Apt Install mysql-server mysql-client

At installation, you will be required to provide the MySQL root user password, which is valid for user root@localhost as well as root@server1.example.com, so we do not manually specify a MySQL root password:

New password for the MySQL "root" User: <--Yourrootsqlpassword
Repeat password for the MySQL "root" User: <--Yourrootsqlpassword

3. Install Apache2

Apache2 can be used as a Debian software package, we enter the following command to install:

Apt Install apache2

Now that you open http://192.168.0.100 directly with your browser, you can see the Apache2 placeholder page (It works!):

Apache's default document root in Debian is/var/www, and the configuration file is/etc/apache2/apache2.conf. Other configurations are stored in subdirectories/etc/apache2, such as/etc/apache2/mods-enabled (Apache module),/etc/apache2/sites-enabled (virtual Host), and/etc/apache2/ Conf.d.

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.