Installation command for PHP 5.2.x in ubuntu 12.04 LTS -


i have applied lots of thing installation php 5.2.9 , 5.2.10 in lts not working want command installing php 5.2.x in ubuntu 12.04 lts.

try script below, credit blog post http://www.nicovs.be/install-php-5-2-on-ubuntu-12-04/

# script install php 5.2 9.10 on 10.04/12.04 # , pin not updated  pkgs=`dpkg -l | grep php | awk '{print $2}'`  apt-get remove $pkgs  sed s/precise/karmic/g /etc/apt/sources.list |   tee /etc/apt/sources.list.d/karmic.list  sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list.d/karmic.list  mkdir -p /etc/apt/preferences.d/  package in $pkgs   echo "package: $package   pin: release a=karmic   pin-priority: 991   " | tee -a /etc/apt/preferences.d/php done  apt-get update  apt-get install $pkgs 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -