Ubuntu10.04Lucid is installed with php5.2

Source: Internet
Author: User
Tags xsl
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 :)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.