Ubuntu20.04にphp-mailparseをインストールする

OSバージョンを確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
# cat /etc/os-release NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

php-mailparseのインストール

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo apt install php-mailparse
Creating config file /etc/php/7.4/phpdbg/php.ini with new version
man-db (2.9.1-1) のトリガを処理しています ...
libc-bin (2.31-0ubuntu9.2) のトリガを処理しています ...
php7.4-cli (7.4.3-4ubuntu2.6) のトリガを処理しています ...
php7.4-phpdbg (7.4.3-4ubuntu2.6) のトリガを処理しています ...
# sudo apt install php-mailparse 略 Creating config file /etc/php/7.4/phpdbg/php.ini with new version man-db (2.9.1-1) のトリガを処理しています ... libc-bin (2.31-0ubuntu9.2) のトリガを処理しています ... php7.4-cli (7.4.3-4ubuntu2.6) のトリガを処理しています ... php7.4-phpdbg (7.4.3-4ubuntu2.6) のトリガを処理しています ...
# sudo apt install php-mailparse
略
Creating config file /etc/php/7.4/phpdbg/php.ini with new version
man-db (2.9.1-1) のトリガを処理しています ...
libc-bin (2.31-0ubuntu9.2) のトリガを処理しています ...
php7.4-cli (7.4.3-4ubuntu2.6) のトリガを処理しています ...
php7.4-phpdbg (7.4.3-4ubuntu2.6) のトリガを処理しています ...

確認
# php -i | grep mailparse

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
/etc/php/7.4/cli/conf.d/25-mailparse.ini
mailparse
mailparse support => enabled
mailparse.def_charset => us-ascii => us-ascii
/etc/php/7.4/cli/conf.d/25-mailparse.ini mailparse mailparse support => enabled mailparse.def_charset => us-ascii => us-ascii
/etc/php/7.4/cli/conf.d/25-mailparse.ini
mailparse
mailparse support => enabled
mailparse.def_charset => us-ascii => us-ascii

 

Ubuntu 20.04

Posted by arkgame