Compiling and installing php5.3.8 in linux includes php-fpm

Source: Internet
Author: User
Php5.3.8 for linux compilation and installation contains php-fpm-Linux Enterprise Application-Linux server application information. The following is a detailed description. Install PHP
# Wget http://cn2.php.net/get/php-5.3.8.tar.gz/from/cn.php.net/mirror
# Tar-zxvf php-5.3.8.tar.gz
# Cd php-5.3.8
#. /Configure -- prefix =/usr/local/php -- enable-fpm -- with-libevent-dir =/usr -- with-mcrypt =/usr/local/libmcrypt -- with-zlib -- enable-mbstring -- with-openssl -- with-mysql -- with-mysqli -- with-mysql-sock -- with-gd -- with-jpeg-dir =/usr/lib -- enable-gd -native-ttf -- without-sqlite -- enable-pdo -- with-pdo-mysql -- with-gettext -- with-curl -- with-pdo-mysql -- enable-sockets -- enable-bcmath -- enable-xml -- with-bz2 -- with-gettext -- with-snmp -- enable-zip -- with-snmp

The following content appears,
+ -------------------------------------------------------------------- +
| License: |
| This software is subject to the PHP License, available in this |
| Distribution in the file LICENSE. By continuing this installation |
| Process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| The installation process at this point. |
+ -------------------------------------------------------------------- +
Thank you for using PHP.

Install
# Make
# Make install
Mobile Php. ini
# Cp/usr/local/php-5.3.8/php. ini-development/usr/local/php/lib/php. ini

About php-fpm
Php5.3.8 includes php-fpm by default,

Php-fpm configuration file php-fpm.conf in/usr/local/php/etc <============ of course you have to watch php installed there
Php-fpm.conf file name here is php-fpm.conf.default
# Cp php-fpm.conf.default php-fpm.conf <========== copy a copy and rename

Php-fpm under/usr/local/php/sbin/
#/Usr/local/php/sbin/php-fpm ======== start php-fpm
Startup error Resolution:
ALERT: [pool www] pm. min_spare_servers (0) must be a positive value
Edit the php-fpm.conf to find the pm. min_spare_servers removal; number, note that the non-commented content pm. min_spare_servers
ALERT: [pool www] pm. max_spare_servers (0) must be a positive value
Edit the php-fpm.conf to find the pm. max_spare_servers removal; number, which is also not annotated with pm. max_spare_servers
WARNING: [pool www] pm. start_servers is not set. It's been set to 20.
Edit the php-fpm.conf to locate pm. start_servers removal;, which is also not annotated with pm. start_servers
ERROR: bind () for address '127. 0.0.1: 9000 'failed: Address already in use (98)
# Netstat-ntlpps-ef | grep php: Check the process. There are N multi-process instances.
Nobody 26152 26151 0? 00:00:00 php-fpm: pool www
Nobody 26153 26151 0? 00:00:00 php-fpm: pool www
Nobody 26154 26151 0? 00:00:00 php-fpm: pool www
Nobody 26155 26151 0? 00:00:00 php-fpm: pool www
...........................
# Killall php-fpm end all php-fpm Processes
Start php-fpm again
#/Usr/local/php/sbin/php-fpm
Successful

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.