#author("2026-05-15T00:55:27+00:00","default:iseki","iseki") #author("2026-05-15T02:28:51+00:00","default:iseki","iseki") * PHP8 [#vda44006] ** Rocky *** Pre Install [#j14e7bee] dnf module list php dnf module reset php dnf module enable php:8.0 -y dnf module list php dnf rm php* dnf install php dnf install php-devel **** Moodle + dnf install php-mysqlnd dnf install libsodium libsodium-devel pecl install libsodium - [[sodium>PHP Extension/Sodium]] *** Compile [#db69447d] **** sqlite3 が必要 yum install sqlite yum install libsqlite3x yum install libsqlite3x-devel **** oniguruma が必要 <pre> git clone https://github.com/kkos/oniguruma.git cd oniguruma ./autogen.sh ./configure make make install </pre> **** configure <pre> ./configure --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-openssl --with-zip --with-zlib \ --enable-mbstring --with-iconv --enable-intl \ --enable-soap --enable-pcntl --enable-sockets \ --with-curl --with-xmlrpc --enable-opcache \ --with-sodium --enable-exif \ --enable-gd --with-jpeg --with-freetype </pre> ** Ubuntu *** Pre Install <pre> apt install libsqlite3-dev apt install libcurl4-openssl-dev apt install libonig-dev </pre> *** Compile **** configure (by netp) <pre> /configure --with-mysqli --with-pdo-mysql \ --with-apxs2=/usr/local/apache/bin/apxs \ --enable-mbstring --with-zlib=/usr --with-iconv \ --with-curl --with-xmlrpc \ --enable-sockets --enable-soap --enable-pcntl </pre> - PHP8 では XMLRPC は動きません!