13,005
回編集
103行目: | 103行目: | ||
<u>PHPのインストール後は、/Apache2のインストールディレクトリ>/modulesディレクトリにlibphp.soファイルもインストールされる。</u><br> | <u>PHPのインストール後は、/Apache2のインストールディレクトリ>/modulesディレクトリにlibphp.soファイルもインストールされる。</u><br> | ||
../configure --prefix=<PHPのインストールディレクトリ> \ | ../configure --prefix=<PHPのインストールディレクトリ> \ | ||
--enable-bcmath --enable-calendar --enable-cgi --enable-cli --enable-exif --enable-ftp --enable-fpm \ | --enable-bcmath --enable-calendar --enable-cgi --enable-cli --enable-exif --enable-ftp --enable-fpm \ | ||
--enable-gd --enable-gd-jis-conv --enable-intl --enable-mbregex --enable-mbstring --enable-mysqlnd | --enable-gd --enable-gd-jis-conv --enable-inifile --enable-intl --enable-mbregex --enable-mbstring \ | ||
--enable-mysqlnd --enable-opcache --enable-phpdbg --enable-phpdbg-debug --enable-sockets --with-enchant \ | |||
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-soap --enable-zts \ | --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-soap --enable-zts \ | ||
--with-curl --with-expat -with-freetype --with-gettext --with-gmp --with-iconv --with-jpeg --with- | --with-curl --with-expat -with-freetype --with-gettext --with-gmp --with-iconv --with-jpeg --with-avif --with-ffi \ | ||
--with-imap --with-imap-ssl --with- | --with-openssl --with-imap --with-imap-ssl --with-kerberos --with-mhash \ | ||
--with- | --with-readline --with-sodium --with-tidy --with-xpm \ | ||
--with- | --with-zlib --with-zip --with-libxml --with-xsl --with-ldap --with-pic \ | ||
--with-libdir=lib64 \ | |||
--with-apxs2=/<Apacheのインストールディレクトリ>/bin/apxs \ | --with-apxs2=/<Apacheのインストールディレクトリ>/bin/apxs \ | ||
--with-mysql-sock \ | --with-unixODBC=shared \ | ||
--with-mysql-sock \ | |||
--with-mysqli=mysqlnd \ # MySQL拡張モジュールであるmysqliMySQL Native Driverでビルドする | --with-mysqli=mysqlnd \ # MySQL拡張モジュールであるmysqliMySQL Native Driverでビルドする | ||
--with-pdo-mysql=mysqlnd \ # MySQL拡張モジュールであるPDO MYSQLをMySQL Native Driverでビルドする | --with-pdo-mysql=mysqlnd \ # MySQL拡張モジュールであるPDO MYSQLをMySQL Native Driverでビルドする | ||
--with-pgsql | --with-pgsql \ # PostgresSQLを使用する場合 | ||
--with-pdo-pgsql \ | --with-pdo-pgsql \ # PostgresSQLを使用する場合 | ||
--with-lmdb \ # BtreeベースのDBMSを使用する場合 | |||
--with-config-file-path=<php.iniファイルの配置するパス> # ユーザが指定する場合 | --with-config-file-path=<php.iniファイルの配置するパス> # ユーザが指定する場合 | ||
--with-mcrypt # PHP 8.3以降は不要 | |||
make -j $(nproc) | make -j $(nproc) |