apt-get install php5

apt-get install mysql-server-5.5

apt-get install php5-mysql

apt-get install php5-gd

apt-get install php5-mcrypt

apt-get install php5-ldap

apt-get install php5-memcache

apt-get install php5-xcache (可选)

apt-get install php5-curl

 

批量安装: apt-get install php5 mysql-server-5.5 php5-gd php5-mcrypt php5-ldap php5-memcache php5-curl php5-mysql