PHP的默认./configuration选项是什么?

时间:2012-05-11 17:35:38

标签: php mysql

PHP的默认./configuration选项是什么?

我的基本要求是PDO和mysql。

我需要提供哪些选项./configuration?

我的linux发行版的yum repo不支持mysql,所以我需要编译PHP源代码:(

当我使用yum install php时,下面是phpinfo()输出。

  

./ configure'' - build = x86_64-redhat-linux-gnu'   '--host = x86_64-redhat-linux-gnu'' - target = x86_64-redhat-linux-gnu'   '--program-prefix ='' - prefix = / usr'' - exec-prefix = / usr'   '--bindir = / usr / bin'' - sbindir = / usr / sbin'' - sysddir = / etc'   '--datadir = / usr / share'' - includenid = / usr / include'   '--libdir = / usr / lib64'' - libdcdir = / usr / libexec'   '--localstatedir = / var'' - sharedstatedir = / usr / com'   '--mandir = / usr / share / man'' - infodir = / usr / share / info'   '--cache-file = .. / config.cache'' - with-libdir = lib64'   '--with-配置文件中路径= /等'   '--with-config-file-scan-dir = / etc / php.d'' - disable-debug'   '--with-pic'' - disable-rpath'' - without-pear'' - with-bz2'   '--with-curl'' - with-exec-dir = / usr / bin'' - with-freetype-dir = / usr'   '--with-png-dir = / usr'' - enable-gd-native-ttf'' - without-gdbm'   '--with-gettext'' - with-gmp'' - with-iconv'' - with-jpeg-dir = / usr'   '--with-openssl'' - with-png'' - with-pspell'' - with-expat-dir = / usr'   '--with-pcre-regex = / usr'' - with-zlib'' - with-layout = GNU'   '--enable-exif'' - enable-ftp''--enable-magic-quotes'   '--enable-sockets'' - enable-sysvsem'' - enable-sysvshm'   '--enable-sysvmsg'' - enable-track-vars'' - enable-trans-sid'   '--enable-yp'' - enable-wddx'' - with-kerberos'   '--enable-ucd-snmp-hack'' - with-unixODBC = shared,/ usr'   '--enable-memory-limit'' - enable-shmop'' - enable-calendar'   '--enable-dbx'' - enable-dio'   '--with-mime-magic = / usr / share / file / magic.mime'' - without-sqlite'   '--with-libxml-dir = / usr'' - with-xml'' - with-system-tzdata'   '--with-apxs2 = / usr / sbin / apxs'' - without-mysql'' - without-gd'   '--without-odbc'' - disable-dom'' - disable-dba'' - without-unixODBC'   '--disable-pdo'' - disable-xmlreader'' - disable-xmlwriter'

vim mysql.ini
; Enable mysql extension module
extension=mysql.so

1 个答案:

答案 0 :(得分:2)

尝试运行yum install php-mysql并查看是否将MySQL扩展添加到PHP。

您可以运行yum search php列出可以安装到PHP中的其他模块,例如php-gdphp-pdo等。