差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:technical_annexes:18_php_8 [2025/12/12 08:30] – [PHP 8.2 へのアップデート] junichi | ja:documentation:pandorafms:technical_annexes:18_php_8 [2025/12/12 08:34] (現在) – [PHP 8.4 へのアップデート] junichi | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | [[ja: | + | [[ja: |
| <wrap #ks1 /> | <wrap #ks1 /> | ||
| 行 103: | 行 103: | ||
| ===== Ubuntu server 22.04 ===== | ===== Ubuntu server 22.04 ===== | ||
| + | |||
| + | <wrap #ks3_1 /> | ||
| + | |||
| + | ==== PHP 8.2 へのアップデート ==== | ||
| <code bash> | <code bash> | ||
| 行 144: | 行 148: | ||
| </ | </ | ||
| + | <wrap #ks3_2 /> | ||
| - | [[ja: | + | ==== PHP 8.4 へのアップデート ==== |
| + | <code bash> | ||
| + | dpkg -l | grep php | tee packages.txt | ||
| + | # Remove old PHP | ||
| + | # When upgrading from older PHP version: | ||
| + | a2disconf php8.1-fpm 2> /dev/null | ||
| + | a2disconf php8.0-fpm 2> /dev/null | ||
| + | dpkg -l | grep php | awk ' | ||
| + | |||
| + | |||
| + | ## Define new php | ||
| + | export DEBIAN_FRONTEND=noninteractive | ||
| + | export NEEDRESTART_SUSPEND=1 | ||
| + | export PHPVER=" | ||
| + | add-apt-repository ppa: | ||
| + | apt update | ||
| + | apt install -y php$PHPVER php$PHPVER-fpm php$PHPVER-common \ | ||
| + | php$PHPVER-cli libapache2-mod-fcgid apache2 \ | ||
| + | php$PHPVER-bz2 php$PHPVER-mbstring php$PHPVER-intl | ||
| + | php$PHPVER-gd | ||
| + | php$PHPVER-fileinfo php$PHPVER-gettext php$PHPVER-snmp php$PHPVER-mbstring \ | ||
| + | php$PHPVER-zip php$PHPVER-xmlrpc php$PHPVER-xml php$PHPVER-yaml | ||
| + | |||
| + | a2enmod proxy_fcgi setenvif | ||
| + | a2enconf php$PHPVER-fpm | ||
| + | |||
| + | ## Prepare php config | ||
| + | rm -f / | ||
| + | ln -s / | ||
| + | sed --follow-symlinks -i -e " | ||
| + | sed --follow-symlinks -i -e " | ||
| + | sed --follow-symlinks -i -e " | ||
| + | sed --follow-symlinks -i -e " | ||
| + | sed --follow-symlinks -i -e " | ||
| + | sed --follow-symlinks -i -e " | ||
| + | |||
| + | systemctl enable php$PHPVER-fpm --now | ||
| + | systemctl restart php$PHPVER-fpm | ||
| + | systemctl restart apache2 | ||
| + | </ | ||
| + | |||
| + | * Verify the version installed: '' | ||
| + | |||
| + | * インストールされているバージョンを確認します: | ||
| + | [[ja: | ||
| ===== (OBSOLETE) CentOS 7 ===== | ===== (OBSOLETE) CentOS 7 ===== | ||