在安裝php的時候,不論是編譯安裝:php
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic
仍是yum安裝:mysql
================================================================================ Package Arch Version Repository Size ================================================================================ Installing: php x86_64 5.5.7-1.fc20 updates 2.6 M Updating: php-bcmath x86_64 5.5.7-1.fc20 updates 62 k php-devel x86_64 5.5.7-1.fc20 updates 2.2 M php-gd x86_64 5.5.7-1.fc20 updates 84 k php-imap x86_64 5.5.7-1.fc20 updates 82 k php-ldap x86_64 5.5.7-1.fc20 updates 61 k php-mbstring x86_64 5.5.7-1.fc20 updates 567 k php-mcrypt x86_64 5.5.7-1.fc20 updates 53 k php-pdo x86_64 5.5.7-1.fc20 updates 137 k php-pgsql x86_64 5.5.7-1.fc20 updates 121 k php-process x86_64 5.5.7-1.fc20 updates 74 k php-soap x86_64 5.5.7-1.fc20 updates 231 k php-xml x86_64 5.5.7-1.fc20 updates 243 k Updating for dependencies: php-cli x86_64 5.5.7-1.fc20 updates 2.6 M php-common x86_64 5.5.7-1.fc20 updates 1.0 M
安裝的這些模塊都是什麼,幹什麼用的?
分別搜索之,備忘以下:sql
================================================================================ Package Arch Version Repository Size ================================================================================ Installing: php PHP主程序 Updating: php-bcmath 高精度數學函數 php-devel PHP開發庫 php-gd 圖形開發庫 php-imap internet message access protocol,即網際網絡信息存取協議 php-ldap 輕量級目錄訪問協議(Lightweight Directory Access Protocol) php-mbstring 多字節字符串,好比:中文 php-mcrypt 加密相關函數庫 php-pdo PDO數據庫操做庫 php-pgsql PDO數據庫操做庫,pg數據庫 php-process 進程相關,具體不詳 php-soap SOAP 簡單對象訪問協議 php-xml XML php-cli php的命令行支持 php-common
更多待補充:數據庫