「インストール - PHP」の版間の差分

ナビゲーションに移動 検索に移動
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-opcache --enable-phpdbg --enable-phpdbg-debug --enable-sockets \
              --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-kerberos \
               --with-curl --with-expat -with-freetype --with-gettext --with-gmp --with-iconv --with-jpeg --with-avif --with-ffi \
               --with-imap --with-imap-ssl --with-libdir=lib64 \
               --with-openssl --with-imap --with-imap-ssl --with-kerberos --with-mhash \
               --with-libxml --with-mcrypt --with-mhash --with-openssl --with-pic --with-readline --with-sodium --with-tidy --with-xpm --with-zip \
               --with-readline --with-sodium --with-tidy --with-xpm                    \
               --with-zlib --with-unixODBC=shared \
              --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     \           # PostgresSQLを使用する場合
               --with-pgsql             \ # PostgresSQLを使用する場合
               --with-pdo-pgsql \           # PostgresSQLを使用する場合
               --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)

案内メニュー