PHP Enterprise Practical Installation Steps

Source: Internet
Author: User
Tags fpm mcrypt php compiler

Installing LIB Libraries

Yum install zlib-devel libxml2-devel libjpeg-turbo-devel freetype-devel libpng-devel gd-devel-y


Download Libiconv Package

wget Http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gztar XF LIBICONV-1.14.TAR.GZCD libconv-1.14./configure --prefix=/usr/local/libiconvmakemake Install

Set Epel source

Wget-o/etc/yum.repos.d/epel.repo

Install the Libmcrypt library, install the encryption extension Library Mhash, install the MCrypt extension Library, install the Libxstl-devel

Yum install libmcrypt libmcrypt-devel mhash mhash-devel mcrypt libxstl-devel-y


PHP Compiler Instructions

./configure--prefix=/application/php5.3.27--with-mysql=/application/mysql--with-iconv-dir=/usr/local/libiconv- -with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr--enable-xml--disable-rpath-- Enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--with-curl-- With-curlwrappers--enable-mbregex--enable-fpm--enable-mbstring--with-mcrypt--with-gd--enable-gd-native-ttf-- With-openssl--with-mhash--enable-pcntl--enable-sockets--with-xmlrpc--enable-zip--enable-soap-- Enable-short-tags--enable-zend-multibyte--enable-static--with-xsl--with-fpm-user=nginx--with-fpm-group=nginx-- Enable-ftp

Create a soft connection before make, or you may have an error

Ln-s/application/mysql/lib//libmysqlclient.so.18/usr/lib64makemake Install

Create a soft connection to PHP

Ln-s/application/php.5.3.27/application/php

Configure the php.ini file (copy the INI file template from the installation directory.) The end is development is used for development, production is used in the production environment)

CD ~/PHP.5.3.27CP Php.ini-production/application/php/lib/php.ini

Configure PHP Service (fastcgi mode) configuration file php-fpm.conf

CD/APPLICATION/PHP/ETCCP Php-fpm.conf.default php-fpm.conf

Start PHP-FPM After modifying the necessary parameters

/application/php/sbin/php-fpm

Check the starting process (one master process, 16 sub-processes, configured in php-frm.conf)

Ps-ef|grep php-fpm|grep-v grep #查看进程ps-ef|grep php-fpm|grep-v grep|wc-l #检查进程数

View port (port default 9000)

Netstat-lntup|grep Php-fpmss-lntup|grep PHP-FPM


PHP Enterprise Practical Installation Steps

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.