step: 0.apt-getupdate 1.apt-getinstallapache2 2.apt-getinstallphp5libapache2-mod-php5 (5.3) upgradetophp5.5 sudoapt-getupdatesudoapt-getinstallpython-software-properties sudoadd-apt-repositoryppa:ondrej/php5 (if upgrade to php5.4) sudoadd-

step:

0. apt-get update
1. apt-get install apache2
2. apt-get install php5 libapache2-mod-php5


3. apt-get install php5-mysql
4. apt-get install php5-gd
4. pdo:

------------------------------ php升级时,可能会出错 -------------------------------------

Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.8.0-19-generic_3.8.0-19.30~precise1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

08-19 07:05