Affordable & Reliable Blog Hosting Solutions At SGD$400 Per Year!
You are here: Home Forum
  • narrow screen
  • wide screen
  • Increase font size
  • Default font size
  • Decrease font size
Welcome, Guest
Please Login or Register.    Lost Password?

[ KB ] Use PHP5.2 on Ubuntu 10.04 LTS instead of PHP5.3
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: [ KB ] Use PHP5.2 on Ubuntu 10.04 LTS instead of PHP5.3
#157
admin
Admin
Posts: 131
graph
User Offline Click here to see the profile of this user
[ KB ] Use PHP5.2 on Ubuntu 10.04 LTS instead of PHP5.3 3 Months, 4 Weeks ago Karma: 1
Source - jtrancas.wordpress.com/2010/05/04/cakephp-1-1-and-php-5-3/

Code:

# 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

 
Last Edit: 2010/05/14 12:04 By admin.
Regards,
Haas
Group Lead
Cripperz Prodigy Group
The administrator has disabled public write access.
Go to topPage: 1

Google Search

Login

Random Ads