0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Debian 8にPHP 5.6をインストール(OS標準)

Last updated at Posted at 2019-09-24

はじめに

Debian8にPHPを標準インストール
親記事:PHP, PHP-FPMの各種インストール方法とEOLまとめ

LOG

インストール

# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

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

各種確認

# which php
/usr/bin/php

# php -v
PHP 5.6.40-0+deb8u6 (cli) (built: Sep 15 2019 11:18:30)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, 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.6.40+dfsg-0+deb8u6
Installed-Size: 29.7 kB
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Depends: libapache2-mod-php5 (>= 5.6.40+dfsg-0+deb8u6~) | libapache2-mod-php5filter (>= 5.6.40+dfsg-0+deb8u6~) | php5-cgi (>= 5.6.40+dfsg-0+deb8u6~) | php5-fpm (>= 5.6.40+dfsg-0+deb8u6~), php5-common (>= 5.6.40+dfsg-0+deb8u6~)
Homepage: https://secure.php.net/
Section: php
Priority: optional
Download-Size: 1304 B
APT-Manual-Installed: yes
APT-Sources: http://security.debian.org/debian-security/ jessie/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.6.40+dfsg-0+deb8u6
Installed-Size: 29.7 kB
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Depends: libapache2-mod-php5 (>= 5.6.40+dfsg-0+deb8u6~) | libapache2-mod-php5filter (>= 5.6.40+dfsg-0+deb8u6~) | php5-cgi (>= 5.6.40+dfsg-0+deb8u6~) | php5-fpm (>= 5.6.40+dfsg-0+deb8u6~), php5-common (>= 5.6.40+dfsg-0+deb8u6~)
Homepage: https://secure.php.net/
Section: php
Priority: optional
Download-Size: 1304 B
APT-Manual-Installed: yes
APT-Sources: http://security.debian.org/debian-security/ jessie/updates/main amd64 Packages
Description: server-side, HTML-embedded scripting language (metapackage)

Package: php5
Version: 5.6.33+dfsg-0+deb8u1
Installed-Size: 29.7 kB
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Depends: libapache2-mod-php5 (>= 5.6.33+dfsg-0+deb8u1~) | libapache2-mod-php5filter (>= 5.6.33+dfsg-0+deb8u1~) | php5-cgi (>= 5.6.33+dfsg-0+deb8u1~) | php5-fpm (>= 5.6.33+dfsg-0+deb8u1~), php5-common (>= 5.6.33+dfsg-0+deb8u1~)
Homepage: https://secure.php.net/
Tag: devel::lang:php, devel::runtime, implemented-in::c, protocol::http,
 role::metapackage, secteam::squeeze-limited-support,
 secteam::wheezy-limited-support, web::scripting
Section: php
Priority: optional
Download-Size: 1314 B
APT-Sources: http://deb.debian.org/debian/ jessie/main amd64 Packages
Description: server-side, HTML-embedded scripting language (metapackage)
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?