はじめに
CentOS6にPHP-FPMを標準インストール
親記事:PHP, PHP-FPMの各種インストール方法とEOLまとめ
LOG
インストール
# cat /etc/redhat-release
CentOS release 6.10 (Final)
# yum install -y php-fpm
... 略
php-fpm起動/停止
# service php-fpm start
Starting php-fpm: [ OK ]
# service php-fpm status
php-fpm (pid 116) is running...
# service php-fpm stop
Stopping php-fpm: [ OK ]
# service php-fpm status
php-fpm is stopped
php-fpm自動起動設定/設定解除
# chkconfig php-fpm on
# chkconfig --list php-fpm
php-fpm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# chkconfig php-fpm off
# chkconfig --list php-fpm
php-fpm 0:off 1:off 2:off 3:off 4:off 5:off 6:off
各種確認
# which php
/usr/bin/which: no php in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
# which php-fpm
/usr/sbin/php-fpm
# php-fpm -v
PHP 5.3.3 (fpm-fcgi) (built: Mar 22 2017 12:28:05)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
# yum info php-fpm
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
* base: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
Installed Packages
Name : php-fpm
Arch : x86_64
Version : 5.3.3
Release : 49.el6
Size : 3.2 M
Repo : installed
From repo : base
Summary : PHP FastCGI Process Manager
URL : http://www.php.net/
License : PHP
Description : PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI
: implementation with some additional features useful for sites of
: any size, especially busier sites.