2013-07-05 33 views
0

我剛將LAMP的所有組件安裝到我的CentOS Web服務器上。 現在有幾個庫,我可以從安裝選擇:CentOS服務器上的PHP模塊 - 我需要哪些?

我的需求:我只是想運行一個Web服務器在其上安裝WordPress的

我的問題:我需要哪些模塊?

[[email protected]***** ~]# yum search php- 
Loaded plugins: fastestmirror 
Loading mirror speeds from cached hostfile 
* base: 
* extras: 
* updates: 
============================================== N/S Matched: php- ============================================== 
php-bcmath.x86_64 : A module for PHP applications for using the bcmath library 
php-cli.x86_64 : Command-line interface for PHP 
php-common.x86_64 : Common files for PHP 
php-dba.x86_64 : A database abstraction layer module for PHP applications 
php-devel.x86_64 : Files needed for building PHP extensions 
php-embedded.x86_64 : PHP library for embedding in applications 
php-enchant.x86_64 : Human Language and Character Encoding Support 
php-fpm.x86_64 : PHP FastCGI Process Manager 
php-gd.x86_64 : A module for PHP applications for using the gd graphics library 
php-imap.x86_64 : A module for PHP applications that use IMAP 
php-intl.x86_64 : Internationalization extension for PHP applications 
php-ldap.x86_64 : A module for PHP applications that use LDAP 
php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling 
php-mysql.x86_64 : A module for PHP applications that use MySQL databases 
php-odbc.x86_64 : A module for PHP applications that use ODBC databases 
php-pdo.x86_64 : A database access abstraction module for PHP applications 
php-pear.noarch : PHP Extension and Application Repository framework 
php-pecl-apc.x86_64 : APC caches and optimizes PHP intermediate code 
php-pecl-apc-devel.x86_64 : APC developer files (header) 
php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon 
php-pgsql.x86_64 : A PostgreSQL database module for PHP 
php-process.x86_64 : Modules for PHP script using system process interfaces 
php-pspell.x86_64 : A module for PHP applications for using pspell interfaces 
php-recode.x86_64 : A module for PHP applications for using the recode library 
php-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices 
php-soap.x86_64 : A module for PHP applications that use the SOAP protocol 
php-tidy.x86_64 : Standard PHP module provides tidy library support 
php-xml.x86_64 : A module for PHP applications which use XML 
php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol 
php-zts.x86_64 : Thread-safe PHP interpreter for use with the Apache HTTP Server 

回答

1

我可能沒有完整的清單,但在這裏是一些建議:

  • PHP MySQL的
  • PHP-PDO
  • PHP梨
  • PHP-PECL
  • php-xml

但是,如果我是你,我會安裝PEAR package manager,並安裝所有你需要的擴展或模塊。看起來像這樣可以更容易地從單一來源管理所有的php庫,因爲我敢打賭,在某些時候,你會想要使用一個php庫,通過你的yum庫不可用。

+0

謝謝你dsw88。我在一個在線教程中發現,我只需要以下的php模塊就可以讓Wordpress工作:php-gd。所以我只做了yum安裝php-gd,現在它工作正常。謝謝您的幫助 – DextrousDave

相關問題