Configure Apache + Mysql + Php

Source: Internet
Author: User
Tags php mysql extension
The following operations are performed under the root permission of the Debian6.064bit environment. If you are prompted that the permission is insufficient, switch to the root user or sudo. I prefer to install it on my own, this is because the installation can be minimized and you can know what is installed, and then you can expand the functions as needed. Install chkconfig, which is a RedHat company.

The following operations are all performed under the root permission of the Debian 6.0 64bit environment. If you are prompted that the permission is insufficient, switch to the root user or sudo. I prefer to install it on my own, this is because the installation can be minimized and you can know what is installed, and then you can expand the functions as needed. Install chkconfig. chkconfig is a Red Hat company.

The following operations are all performed under the root permission of the Debian 6.0 64bit environment. If you are prompted that the permission is insufficient, switch to the root user or sudo. I prefer to install it on my own, this is because the installation can be minimized and you can know what is installed, and then you can expand the functions as needed. Install chkconfig. chkconfig is a tool developed by Red Hat to check and set system services. You can use it to set some boot options. Other commands and descriptions

1 apt-get install chkconfig

Install Apache:

1 apt-get install apache2 chkconfig apache2 on set Apache2 to start up or install Apache1 apt-get install apache

We recommend that you read the basic configuration files and knowledge. Click

To install Mysql, you can also install Mysql based on the required version. In debian, enter the following statement to install the last version, that is, the latest version.

1 apt-get install mysql-server chkconfig mysql-server on

Install Php:

1 apt-get install php5

You can install the PHP MySQL extension by installing another version and replacing the later version. We recommend that you install other components as needed so that you can clearly understand the functions of these components.

1 apt-get install php5-mysql

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.