In ubuntu 10.04, the php version is 5.3. zendOptimizer cannot be used. Only 5.2 can be used. Step 1: seds/lucid/karmic/g/etc/apt/sources. list | sudotee/etc/apt/sources. list. d/karmic. list Step 2: in/etc/apt/preferences. d create a new file php
On Ubuntu 10.04, the php version is 5.3. zend Optimizer cannot be used, but only 5.2 can be used.
Step 1:
Sed s/lucid/karmic/g/etc/apt/sources. list | sudo tee/etc/apt/sources. list. d/karmic. list
Step 2:
In/etc/apt/preferences. d, create a new file with the following php content:
Package: php5
Pin: release a = karmic
Pin-Priority: 991
Package: php5-gd
Pin: release a = karmic
Pin-Priority: 991
Package: php5-common
Pin: release a = karmic
Pin-Priority: 991
Package: php5-curl
Pin: release a = karmic
Pin-Priority: 991
Package: php5-mysql
Pin: release a = karmic
Pin-Priority: 991
Package: php5-pear
Pin: release a = karmic
Pin-Priority: 991
Package: php5-xsl
Pin: release a = karmic
Pin-Priority: 991
Package: php-pear
Pin: release a = karmic
Pin-Priority: 991
Package: php5-cli
Pin: release a = karmic
Pin-Priority: 991
Package: php5-memcache
Pin: release a = karmic
Pin-Priority: 991
Package: php5-pgsql
Pin: release a = karmic
Pin-Priority: 991
Package: libapache2-mod-php5
Pin: release a = karmic
Pin-Priority: 991
Step 3:
Sudo apt-get update
Sudo apt-get remove php5 libapache2-mod-php5 php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache
Sudo apt-get install php5 libapache2-mod-php5 php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache
Charge: If there is no security apache2 or mysql line
Sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 php5-xsl php5-gd php-pear libapache2-mod-auth-mysql php5-mysql php5-curl php5-memcache
Done :)