12.1LNMP Architecture Introduction 12.2MySQL installation 12.312.4 PHP installation 12.5Nginx installation

Source: Internet
Author: User
Tags fpm install php

12.1 Lnmp Architecture Introduction

12.2 MySQL Installation
The MySQL installation here is the same as the lamp-installed MySQL, which steps together as

If you reinstall, you should uninstall the previous installation, and then follow the steps above

Let it boot automatically when you're done.

12.3/12.4 PHP Installation

Since the previous installation of PHP5, now install PHP is not the same as before, so first remove PHP

When you run the initialization, you are prompted to reduce the curl package and install

After the installation to view the directory, more than the previous PHP directory installed sbin and Var,sbin directory php-frm file is the start service file, the Var directory is the log directory is stored, the run directory is stored PID, log and PID can be specified

Use-M to view the mode/usr/local/php-fpm/sbin/php-fpm-m
I can also view some information/usr/local/php-fpm/sbin/php-fpm-i
--T is the information that tests its own tone/usr/local/php-fpm/sbin/php-fpm-t

Copying a configuration file
CP php.ini-production CP Php.ini-production/usr/local/php-fpm/etc/php.ini/php.ini
Enter the ETC directory to edit the configuration file
Cd/usr/local/php-fpm/etc/php.ini

Edit Content

After editing completes the following steps to gather, start the PHP-FPM service prompt error, is because forgot to add PHP-FPM user

View Services

12.5 Nginx Introduction



View catalog files after installation

After the installation is complete, start the service and check the service

Create 1.php


This shows that the parsing succeeded

Extended
Why Nginx is more efficient than Apache httpd: Principle Article http://www.toxingwang.com/linux-unix/linux-basic/1712.html
Apache and Nginx working principle comparison http://www.server110.com/nginx/201402/6543.html
Comparison of mod_php and mod_fastcgi and PHP-FPM http://dwz.cn/1lwMSd
Concept understanding: cgi,fastcgi,php-cgi and Php-fpmhttp://www.nowamagic.net/librarys/veda/detail/1319/https://www.awaimai.com/371.html

12.1LNMP Architecture Introduction 12.2MySQL installation 12.312.4 PHP installation 12.5Nginx installation

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.