Ubuntu 14.04にPHP 5.5をインストール（OS標準）

# はじめに

Ubuntu14.04にPHPを標準インストール
親記事：[PHP, PHP-FPMの各種インストール方法とEOLまとめ](https://qiita.com/witchcraze/items/dfe3823554b7caba6f6a)

## LOG

### インストール

```shell-session
# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.6 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.6 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

# apt update;apt install -y php5
... 略
```

### 各種確認

```shell-session
# which php
/usr/bin/php

# php -v
PHP 5.5.9-1ubuntu4.29 (cli) (built: Apr 22 2019 18:33:52)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

# php -i | grep php.ini
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini

# # apt show php5
Package: php5
Version: 5.5.9+dfsg-1ubuntu4.29
Priority: optional
Section: php
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 29.7 kB
Depends: libapache2-mod-php5 (>= 5.5.9+dfsg-1ubuntu4.29) | libapache2-mod-php5filter (>= 5.5.9+dfsg-1ubuntu4.29) | php5-cgi (>= 5.5.9+dfsg-1ubuntu4.29) | php5-fpm (>= 5.5.9+dfsg-1ubuntu4.29), php5-common (>= 5.5.9+dfsg-1ubuntu4.29)
Download-Size: 1304 B
Homepage: http://www.php.net/
Task: mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
Supported: 5y
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
Description: server-side, HTML-embedded scripting language (metapackage)

N: There is 1 additional record. Please use the '-a' switch to see it


# apt show php5 -a
Package: php5
Version: 5.5.9+dfsg-1ubuntu4.29
Priority: optional
Section: php
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 29.7 kB
Depends: libapache2-mod-php5 (>= 5.5.9+dfsg-1ubuntu4.29) | libapache2-mod-php5filter (>= 5.5.9+dfsg-1ubuntu4.29) | php5-cgi (>= 5.5.9+dfsg-1ubuntu4.29) | php5-fpm (>= 5.5.9+dfsg-1ubuntu4.29), php5-common (>= 5.5.9+dfsg-1ubuntu4.29)
Download-Size: 1304 B
Homepage: http://www.php.net/
Task: mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
Supported: 5y
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
Description: server-side, HTML-embedded scripting language (metapackage)

Package: php5
Priority: optional
Section: php
Installed-Size: 29.7 kB
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Version: 5.5.9+dfsg-1ubuntu4
Depends: libapache2-mod-php5 (>= 5.5.9+dfsg-1ubuntu4) | libapache2-mod-php5filter (>= 5.5.9+dfsg-1ubuntu4) | php5-cgi (>= 5.5.9+dfsg-1ubuntu4) | php5-fpm (>= 5.5.9+dfsg-1ubuntu4), php5-common (>= 5.5.9+dfsg-1ubuntu4)
Download-Size: 1302 B
Homepage: http://www.php.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
APT-Sources: http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Description: server-side, HTML-embedded scripting language (metapackage)
```