FAMLog


PHPのconfigureオプションを確認する

April 08, 2011

PHPがどのようなオプションでコンパイルされているか確認する方法の1つにphp-configコマンドを使用する方法があります。

Mac OS XおよびMac OS X Serverにおいて、コマンドラインインターフェースでPHPのconfigureオプションの内容を確認するには、ターミナルで次のように入力します。

[実行例]
$ php-config --configure-options
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-libxml-dir=/usr --with-openssl=/usr --with-kerberos=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr --enable-calendar --with-curl=/usr --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --enable-gd-native-ttf --with-ldap=/usr --with-ldap-sasl=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --with-iodbc=/usr --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xmlrpc --with-iconv-dir=/usr --with-xsl=/usr --enable-zend-multibyte --enable-zip --with-pcre-regex=/usr

Mac OS X Server v10.6.6では、PHPのconfigureオプションは上記のように表示されます。php-configコマンドを使用することで、PHPでcURLやmbstringなどがサポートされているかどうかを確認することが可能です。

Tag: Apache

このページの上へ