CentOS Linux 5.4 - 您的 PHP 安裝似乎缺少 WordPress 所需的 MySQL 擴展
我剛剛在我的 CentOS Linux 5.4 上升級到 PHP 版本 5.3.3,當我嘗試安裝 wordpress 時它說
您的 PHP 安裝似乎缺少 WordPress 所需的 MySQL 擴展。
這是我的 php.ini 文件
./configure’’–build=i686-redhat-linux-gnu’’’–host=i686-redhat-linux-gnu’’–target=i386-redhat-linux-gnu’’’–program-prefix= ’ ‘–prefix=/usr’ ‘–exec-prefix=/usr’ ‘–bindir=/usr/bin’ ‘–sbindir=/usr/sbin’ ‘–sysconfdir=/etc’ ‘– datadir=/usr/share’ ‘–includedir=/usr/include’ ‘–libdir=/usr/lib’ ‘–libexecdir=/usr/libexec’ ‘–localstatedir=/var’ ‘–sharedstatedir= /usr/com’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–cache-file=../config.cache’ ‘–with-libdir= lib’ ‘–with-config-file-path=/etc’ ‘–with-config-file-scan-dir=/etc/php.d’ ‘–disable-debug’ ‘–with-pic’ ‘–disable-rpath’ ‘–without-pear’ ‘–with-bz2’ ‘–with-exec-dir=/usr/bin’’–with-freetype-dir=/usr’’–with-png-dir=/usr’’–with-xpm-dir=/usr’’ –enable-gd-native-ttf’ ‘–without-gdbm’ ‘–with-gettext’ ‘–with-gmp’ ‘–with-iconv’ ‘–with-jpeg-dir=/usr’ ‘–with-openssl’ ‘–with-pcre-regex=/usr’ ‘–with-zlib’ ‘–with-layout=GNU’ ‘–enable-exif’ ‘–enable-ftp’ ’ –enable-magic-quotes’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–enable-sysvmsg’ ‘–with-kerberos’ ‘–enable-ucd- snmp-hack’ ‘–enable-shmop’ ‘–enable-calendar’ ‘–without-sqlite’ ‘–with-libxml-dir=/usr’ ‘–enable-xml’ ‘–with-system -tzdata’’–with-apxs2=/usr/sbin/apxs’’–without-mysql’ ‘–without-gd’ ‘–disable-dom’ ‘–disable-dba’ ‘–without-unixODBC’ ‘–disable-pdo’ ‘–disable-xmlreader’ ‘- -disable-xmlwriter’ ‘–without-sqlite3’ ‘–disable-phar’ ‘–disable-fileinfo’ ‘–disable-json’ ‘–without-pspell’ ‘–disable-wddx’ ‘– without-curl’ ‘–disable-posix’ ‘–disable-sysvmsg’ ‘–disable-sysvshm’ ‘–disable-sysvsem’ 伺服器 API Apache 2.0 處理程序’–disable-wddx’ ‘–without-curl’ ‘–disable-posix’ ‘–disable-sysvmsg’ ‘–disable-sysvshm’ ‘–disable-sysvsem’ 伺服器 API Apache 2.0 處理程序’–disable-wddx’ ‘–without-curl’ ‘–disable-posix’ ‘–disable-sysvmsg’ ‘–disable-sysvshm’ ‘–disable-sysvsem’ 伺服器 API Apache 2.0 處理程序
如何解決這個問題?
確保
php-mysql
安裝了 php ( ) 的 MySQL 模組:rpm -qa | grep mysql
並且您在
/etc/php.d/mysql.ini
or中有以下內容/etc/php.ini
:extension=mysql.so