application example of lamp deployment apache+mysql+php

Source: Internet
Author: User
Tags mysql mysql database linux

Project Environment:

Xian Lingyun High-tech Co., Ltd. installed the Linux server, and has successfully deployed the Apache server, (so we do not need to install the Apache server in this project) in order to build the company's forum system, need to install phpBB forum system. phpBB is a typical lamp-architecture application so we need to build a complete lamp-running environment based on the existing Apache server.

Project objectives:

Install the MySQL server, use as the background SQL database server of the phpBB Forum program, compile and install the PHP program running environment, provide the running environment for the PHPBB program, and configure the Apache server program to support PHP program running. So that the phpBB program can be handled correctly in the Apache server, and the phpBB program is installed and configured in the complete construction of lamp environment to realize the function of the forum.

Project implementation:

First, install the MySQL server; Lamp Web application architecture, using Apache and other Open-source software in Linux systems can build a very perfect Web application system. Of course, we can refer to lamp architecture for short. The lamp architecture is made up of a few parts, using the Linux operating system as the platform for the entire Web server system, "L" is for Linux; using Apache as the front-end Web server, "A" in lamp stands for Apache ; using MySQL as the back-end SQL database server, "M" in lamp is for MySQL; PHP is used to represent "P" in lamp. 1.1.1.1. First we will copy the MySQL software package (we can choose according to our own situation) in our project we are using the MySQL3.0 version. As shown in Figure 1-1;

1.1.1.2. When we copy the MySQL package locally, we release the MySQL package via tar to the "/usr/local" directory, as shown in Figure 1-2:

1.1.1.3. Then we go to the directory to view the directories we released. Then we're going to use the command "ln" to create the directory symbol to connect to MySQL; then go to "/usr/local/mysql" and we'll Remove "/etc/my.cnf." As shown in Figure 1-3:

1.1.1.4. Then we execute the "mysql_install_db" command in "/usr/local/mysql" to initialize the database in the MySQL server, as shown in Figure 1-4:

1.1.1.5. Then we create the user and modify the group and owner of the user who created it, and the user assigned to it. As shown in Figure 1-5:

1.1.1.6. Then we'll test the success of the database we built (note that we use the SAFE-MYSQLD command to launch the MySQL server when we test and use the command option "-user" Specify the MySQL database service program and run with the MySQL identity of the transfer. We need to use the command "/usr/local/mysql/bin/safa_mysqld–user=mysql &"), as shown in Figure 1-6:

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.