PHP, PHP-FPMの各種インストール方法とEOLまとめ

# はじめに

PHPの各種インストール方法とそれぞれのEOLを纏めてみます。
EOLは**無償でパッチ提供が継続されるであろう期日**とし、各提供者が定義している個別のサポート名称や内容をあまり考慮していません。

# サマリ

|導入方法|OS|PHP|EOL|参考|
|----|----|----|----|----|
|OS標準|CentOS6|5.3.3|2020-11-30|[^1] [^2]|
|OS標準|CentOS7|5.4.16|2024-06-30|[^1] [^2]|
|SCL|CentOS6,7|5.4|2016-10|[^3] [^9] [^10]|
|SCL|CentOS6,7|5.5|2016-10|[^3] [^9] [^10]|
|SCL|CentOS6,7|5.6|2018-04|[^3] [^9] [^10]|
|SCL|CentOS6,7|7.0|2019-11|[^3] [^9] [^10]|
|SCL|CentOS7|7.1|2019-10|[^3] [^10]|
|SCL|CentOS7|7.2|2020-11|[^3] [^10]|
|SCL|CentOS7|7.3|2024-06|[^3] [^10]|
|AppStream|CentOS8|7.2|2021-05|[^4] [^11]|
|AppStream|CentOS8|7.3|2021-11|[^4] [^11]|
|AppStream|CentOS8|7.4|2029-05|[^4] [^11]|
|AppStream|Rocky/Alma8|8.0|2023-11|[^4] [^11]|
|AppStream|Rocky/Alma9|8.0|2032-05|[^4]|
|AppStream|Rocky/Alma9|8.1|2025-05|[^4]|
|OS標準|Debian7|5.4|2019-05-01|[^5]|
|OS標準|Debian8|5.6|2020-06-30|[^5]|
|OS標準|Debian9|7.0|2022-06-30|[^5]|
|OS標準|Debian10|7.3|2024-xx-xx|[^5]|
|OS標準|Debian11|7.4|2026-xx-xx|[^5]|
|OS標準|Debian12|8.2|2028-xx-xx|[^5]|
|OS標準|Ubuntu14.04|5.5|2019-04|[^6]|
|OS標準|Ubuntu16.04|7.0|2021-04|[^6]|
|OS標準|Ubuntu18.04|7.2|2023-04|[^6]|
|OS標準|Ubuntu20.04|7.4|2025-04|[^6]|
|OS標準|Ubuntu22.04|8.1|2027-04|[^6]|
|その他|-|5.0|2005-09-05|[^7] [^8]|
|その他|-|5.1|2006-08-24|[^7] [^8]|
|その他|-|5.2|2011-01-06|[^7] [^8]|
|その他|-|5.3|2014-08-14|[^7] [^8]|
|その他|-|5.4|2015-09-03|[^7] [^8]|
|その他|-|5.5|2016-07-21|[^7] [^8]|
|その他|-|5.6|2018-12-31|[^7] [^8]|
|その他|-|7.0|2019-01-10|[^7] [^8]|
|その他|-|7.1|2019-12-01|[^7] [^8]|
|その他|-|7.2|2020-11-30|[^7] [^8]|
|その他|-|7.3|2021-12-06|[^7] [^8]|
|その他|-|7.4|2022-11-28|[^7] [^8]|
|その他|-|8.0|2023-11-26|[^7] [^8]|


[^1]: [Red Hat Enterprise Linux Life Cycle - Red Hat Customer Portal](https://access.redhat.com/support/policy/updates/errata)
[^2]: [About/Product - CentOS Wiki](https://wiki.centos.org/About/Product)
[^3]: [Red Hat Software Collections Product Life Cycle - Red Hat Customer Portal](https://access.redhat.com/support/policy/updates/rhscl)
[^4]: [Red Hat Enterprise Linux 8 Application Streams Life Cycle - Red Hat Customer Portal](https://access.redhat.com/node/4079021)
[^5]: [LTS \- Debian Wiki](https://wiki.debian.org/LTS)
[^6]: [Releases - Ubuntu Wiki](https://wiki.ubuntu.com/Releases)
[^7]: [PHP: Unsupported Branches] (https://www.php.net/eol.php)
[^8]: [PHP: Supported Versions] (https://www.php.net/supported-versions.php)
[^9]: [Index of /centos/6/sclo/x86_64](http://mirror.centos.org/centos/6/sclo/x86_64/)
[^10]: [Index of /centos/7/sclo/x86_64](http://mirror.centos.org/centos/7/sclo/x86_64/)
[^11]: [Index of /centos/8/AppStream/x86_64](http://mirror.centos.org/centos/8/AppStream/x86_64/)

# 各種導入方法

## OS標準
- CentOS
    - [CentOS6 PHP](https://qiita.com/witchcraze/items/6b606f46b477af88803b)
    - [CentOS6 PHP-FPM](https://qiita.com/witchcraze/items/79ffccd9bd0dfa6f9948)
    - [CentOS7 PHP](https://qiita.com/witchcraze/items/52c39dc2bb1b0f47c7ab)
    - [CentOS7 PHP-FPM](https://qiita.com/witchcraze/items/4cc72b485012c49b716b)
- Debian
    - [Debian7 PHP](https://qiita.com/witchcraze/items/dfba78c0d80432748bd9)
    - [Debian7 PHP-FPM](https://qiita.com/witchcraze/items/947a072ecad0c7ec9aad)
    - [Debian8 PHP](https://qiita.com/witchcraze/items/990684686203cc7738bd)
    - [Debian8 PHP PHP-FPM](https://qiita.com/witchcraze/items/bb5f1d1480d8e5f957a6)
    - [Debian9 PHP](https://qiita.com/witchcraze/items/3b93698719dc85b58754)
    - [Debian9 PHP PHP-FPM](https://qiita.com/witchcraze/items/262b094fdd0f9bd1bf02)
    - [Debian10 PHP](https://qiita.com/witchcraze/items/fdbbaaa408248c82138e)
    - [Debian10 PHP PHP-FPM](https://qiita.com/witchcraze/items/fb0d831c00653d28a6f1)
    - [Debian11 PHP](https://qiita.com/witchcraze/items/8286bed367bb33338e47)
    - [Debian11 PHP-FPM](https://qiita.com/witchcraze/items/779f7c093dba8c5313ec)
    - [Debian12 PHP](https://qiita.com/witchcraze/items/37cb6659a31f221a3a5c)
    - [Debian12 PHP-FPM](https://qiita.com/witchcraze/items/9c0be107d87e61af3517)
- Ubuntu
    - [Ubuntu14.04 PHP](https://qiita.com/witchcraze/items/a129adbeeadf585367e6)
    - [Ubuntu14.04 PHP-FPM](https://qiita.com/witchcraze/items/ca46d8663385523e5ac6)
    - [Ubuntu16.04 PHP](https://qiita.com/witchcraze/items/96d6f8e893a021f289fb)
    - [Ubuntu16.04 PHP,PHP-FPM](https://qiita.com/witchcraze/items/1ed3101150209271863b)
    - [Ubuntu18.04 PHP](https://qiita.com/witchcraze/items/e163a78033c46adc95a9)
    - [Ubuntu18.04 PHP,PHP-FPM](https://qiita.com/witchcraze/items/8a426ec79c8279b6a904)
    - [Ubuntu20.04 PHP](https://qiita.com/witchcraze/items/acb88555e0cf96e78c10)
    - [Ubuntu20.04 PHP,PHP-FPM](https://qiita.com/witchcraze/items/dab72782b40ee6820200)
    - [Ubuntu22.04 PHP](https://qiita.com/witchcraze/items/96cb292b7ff2348984eb)
    - [Ubuntu22.04 PHP,PHP-FPM](https://qiita.com/witchcraze/items/ab2ed43614cf9df13df1)

## CentOS + Software Collections(SCL)
- CentOS6
    - [PHP7.0](https://qiita.com/witchcraze/items/df7322359e1a9d3a201a)
    - [PHP-FPM7.0](https://qiita.com/witchcraze/items/eda8a54a6661fecad087)
- CentOS7
    - [PHP5.4](https://qiita.com/witchcraze/items/d60d83d902b209184912)
    - [PHP5.5](https://qiita.com/witchcraze/items/79d98e7ae603ac27ca72)
    - PHP5.6
    - [PHP7.0](https://qiita.com/witchcraze/items/b122f35db6684f4ed30c)
    - [PHP7.1](https://qiita.com/witchcraze/items/77f45103c5e418018564)
    - [PHP7.2](https://qiita.com/witchcraze/items/ea9d91373cd6b5b94321)
    - [PHP7.3](https://qiita.com/witchcraze/items/7daf391f3e937a21fb2d)
    - [PHP-FPM5.4](https://qiita.com/witchcraze/items/727dbf1a653fb726e8bb)
    - [PHP-FPM5.5](https://qiita.com/witchcraze/items/dfe1d10ee2108f1dbbca)
    - [PHP-FPM7.0](https://qiita.com/witchcraze/items/13ec1fd3ae594baeb1d8)
    - [PHP-FPM7.1](https://qiita.com/witchcraze/items/8877de657a0c07ac2978)
    - [PHP-FPM7.2](https://qiita.com/witchcraze/items/5f61a02553f07c26b20d)
    - [PHP-FPM7.3](https://qiita.com/witchcraze/items/7cd62be43799d74c2946)

## Application Stream(AppStream)
- CentOS8
    - [PHP7.2,PHP-FPM7.2](https://qiita.com/witchcraze/items/ff116bf2bed0302d77a1)
    - [PHP7.3,PHP-FPM7.3](https://qiita.com/witchcraze/items/57005469846182941e9b)
    - [PHP7.4,PHP-FPM7.4](https://qiita.com/witchcraze/items/38d9d7cbc3f435d4db17)
- AlmaLinux8
    - [PHP8.0,PHP-FPM8.0](https://qiita.com/witchcraze/items/4792ef9e6520dc77d610)
- RockyLinux8
    - [PHP8.0,PHP-FPM8.0](https://qiita.com/witchcraze/items/40b8e9705cb45c2e0aa2)
- AlmaLinux9
    - [PHP8.0,PHP-FPM8.0](https://qiita.com/witchcraze/items/b32e2af2bd83a7d0e268)
    - [PHP8.1,PHP-FPM8.1](https://qiita.com/witchcraze/items/eb97dbaa95f083ea6e8e)

## CentOS + Third Party Repositories
### IUS Community Repo
- CentOS6
    - [PHP7.1](https://qiita.com/witchcraze/items/4d4615f114ecd7e88fd7)
    - [PHP-FPM7.1](https://qiita.com/witchcraze/items/efcc53245dbf37d319e0)
- CentOS7
    - [PHP7.1](https://qiita.com/witchcraze/items/b5951a78b2fda561140a)
    - [PHP7.2](https://qiita.com/witchcraze/items/e475033d12b99dae9d1c)
    - [PHP7.3](https://qiita.com/witchcraze/items/9ec4cacb87fb5f567f5e)
    - [PHP-FPM7.1](https://qiita.com/witchcraze/items/ca89412ee61afddb2cca)
    - [PHP-FPM7.2](https://qiita.com/witchcraze/items/c31b1436c39f08bfa391)
    - [PHP-FPM7.3](https://qiita.com/witchcraze/items/44a8ec2a296648ca2e3f)

### Remi Repository
- CentOS6
    - [PHP5.4](https://qiita.com/witchcraze/items/192c7f1ac1508c55e39d)
    - [PHP5.5](https://qiita.com/witchcraze/items/f9ea5283bb143052cc97)
    - [PHP5.6](https://qiita.com/witchcraze/items/8a78cb672ed648b8408c)
    - [PHP7.0](https://qiita.com/witchcraze/items/5c3ec1e55d5d94ff2173)
    - [PHP7.1](https://qiita.com/witchcraze/items/eb874b5826310885a7be)
    - [PHP7.2](https://qiita.com/witchcraze/items/5962bacbaa7bcac9cc08)
    - [PHP7.3](https://qiita.com/witchcraze/items/bfaa5dc3628e990c97c1)
    - [PHP-FPM5.4](https://qiita.com/witchcraze/items/1f6e0c53f6288728cec1)
    - [PHP-FPM5.5](https://qiita.com/witchcraze/items/17f6306f59ce74129f74)
    - [PHP-FPM5.6](https://qiita.com/witchcraze/items/f68becb24a35d9b3479c)
    - [PHP-FPM7.0](https://qiita.com/witchcraze/items/ab93189d522e5d8de9fa)
    - [PHP-FPM7.1](https://qiita.com/witchcraze/items/4bf97fd62192d3b5c359)
    - [PHP-FPM7.2](https://qiita.com/witchcraze/items/2849b052fc500d783fa5)
    - [PHP-FPM7.3](https://qiita.com/witchcraze/items/212db4eed5ce13f1c85f)
- CentOS7
    - [PHP5.4](https://qiita.com/witchcraze/items/8679957fbeee408fdd9d)
    - [PHP5.5](https://qiita.com/witchcraze/items/9143fa9ec0239a581c3d)
    - [PHP5.6](https://qiita.com/witchcraze/items/b06da5a63aadfc4f7a20)
    - [PHP7.0](https://qiita.com/witchcraze/items/08db3e59ac3cf4b11895)
    - [PHP7.1](https://qiita.com/witchcraze/items/0ef9bd370029cdf2939e)
    - [PHP7.2](https://qiita.com/witchcraze/items/cb82f1d3a7e5ea82f891)
    - [PHP7.3](https://qiita.com/witchcraze/items/350fb1327433c774b271)
    - [PHP7.4](https://qiita.com/witchcraze/items/d559541797fab3dc49d6)
    - [PHP8.0](https://qiita.com/witchcraze/items/7adfe36468e5ebc5972e)
    - [PHP-FPM5.4](https://qiita.com/witchcraze/items/2f5ce347c268ed03324a)
    - [PHP-FPM5.5](https://qiita.com/witchcraze/items/1785a3812e60f7613c10)
    - [PHP-FPM5.6](https://qiita.com/witchcraze/items/602359ba15339a3a9ae1)
    - [PHP-FPM7.0](https://qiita.com/witchcraze/items/28a5ccb1b99bd0601eea)
    - [PHP-FPM7.1](https://qiita.com/witchcraze/items/bbbcce004d465fba961a)
    - [PHP-FPM7.2](https://qiita.com/witchcraze/items/9fb4e64b008b83be3608)
    - [PHP-FPM7.3](https://qiita.com/witchcraze/items/ec43da1cc97ed1e3bf73)
    - [PHP-FPM7.4](https://qiita.com/witchcraze/items/cba5e2239cacee0d119d)
    - [PHP-FPM8.0](https://qiita.com/witchcraze/items/e80da35ca1830ffa4507)
- CentOS8
    - [PHP7.2,PHP-FPM7.2](https://qiita.com/witchcraze/items/b1ea5fc01ca348a135fa)
    - [PHP7.3,PHP-FPM7.3](https://qiita.com/witchcraze/items/50850840f0b2830176f6)
    - [PHP7.4,PHP-FPM7.4](https://qiita.com/witchcraze/items/ae47188c484ff074b19c)
    - [PHP8.0,PHP-FPM8.0](https://qiita.com/witchcraze/items/4c91a5110bba7d3bb3c2)
- Alma Linux8
    - [PHP8.1,PHP-FPM8.1](https://qiita.com/witchcraze/items/06b28bcc0d001e6d598d)
- RockyLinux8
    - [PHP8.1,PHP-FPM8.1](https://qiita.com/witchcraze/items/2075170f7566eb8aee51)