Unable to install zendoptimizer in php5.3 under Ubuntu10.04 solution: rollback is required. 2. * # removeallphppackgesudoaptitudepurge 'dpkg-l | grepphp | awk' {print $2} '| tr "\ n" 'sudosu # usekarmikforphppakageecho-e "Pack
In php5.3 of Ubuntu 10.04, zend optimizer cannot be installed. solution:
Rollback is required. 2 .*
# Remove all php packge
Sudo aptitude purge 'dpkg-l | grep php | awk '{print $2}' | tr "\ n """'
Sudo su
# Use karmik for php pakage
Echo-e "Package: php5 \ nPin: release a = karmic \ nPin-Priority: 991 \ n">/etc/apt/preferences. d/php
Apt-cache search php5-| grep php5-| awk '{print "Package:", $1, "\ nPin: release a = karmic \ nPin-Priority: 991 \ n "} '>/etc/apt/preferences. d/php
Apt-cache search-n libapache2-mod-php5 | awk '{print "Package:", $1, "\ nPin: release a = karmic \ nPin-Priority: 991 \ n "} '>/etc/apt/preferences. d/php
Exit
# Add karmik to source list
Sed s/lucid/karmic/g/etc/apt/sources. list | sudo tee-a/etc/apt/sources. list. d/karmic. list
# Update package database (use apt-get if aptitude crash)
Sudo apt-get update
# Install php
Sudo apt-get install-t karmic php5-cli libapache2-mod-php5
Go again
Wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
Decompress the package and copy it directly.
Finally, add the dynamic library path of zend to php. ini.
Restart apache
OK