#author("2020-12-18T08:25:22+00:00","default:src128","src128") &tag(Ubuntu2004/PHP); *目次 [#c6e69e59] #contents *関連ページ [#vb3a4477] *参考情報 [#o3201bfb] *PHP 7.4のインストール [#ccf72bd2] -標準でPHP 7.4がインストール。 sudo apt install php php-cli php-common php-curl php-gd php-json php-mbstring php-mysql php-xml php-fpm *Apache用の設定 [#md1c936d] **Apache用のphp.iniの編集 [#i111535c] -/etc/php/7.4/apache2/php.ini を編集 [#s162ed4b] #pre{{ [Date] date.timezone ="Asia/Tokyo" [mbstring] mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_input = auto mbstring.http_output = UTF-8 mbstring.encoding_translation = On mbstring.detect_order = auto mbstring.substitute_character = none mbstring.func_overload = 1 }} *Nginx用の設定 [#af2d81d7] **自動起動設定 [#c1490e2c] -以下のコマンドを実行 #pre{{ sudo systemctl start php7.4-fpm sudo systemctl enable php7.4-fpm }} **php-fpm用のphp.iniの編集 [#r662b723] -/etc/php/7.4/fpm/php.iniを編集する。 #pre{{ [PHP] memory_limit = 512M [Date] date.timezone ="Asia/Tokyo" [mbstring] mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_input = auto mbstring.http_output = UTF-8 mbstring.encoding_translation = On mbstring.detect_order = auto mbstring.substitute_character = none mbstring.func_overload = 1 }}