Output is none - looks like it's not installed?
of course when I try
apt-get install php5-imagick
I het an error similiar to this
Quote:
The following packages have unmet dependencies:
php5-imagick: Depends: phpapi-20060613+lfs but it is not installable
E: Broken packages
~$ apt-get install phpapi-20060613+lfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package phpapi-20060613+lfs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package phpapi-20060613+lfs has no installation candidate
|
But I realsed that most likely I haven't downloaded updted package for imagick , so I found it in anoter repo on same site:
http://archives-php53.dotdeb.org/dis...9/binary-i386/
All-in all I resolved it with this steps:
Quote:
1.
I made new directory
mkdir /root/downloads/php5.3
then I moved there
cd /root/downloads/php5.3
2.
I downloaded all of the deb packages
wget -r -np -nH -nd -R index.html http://archives-php53.dotdeb.org/dis...9/binary-i386/
wget -r -np -nH -nd -R index.html http://archives-php53.dotdeb.org/dis...9/binary-i386/
3.
Created Packages.gz
dpkg-scanpackages . /dev/null | gzip -c9 > Packages.gz
4.
added this to sources.list
deb file:///root/downloads/php5.3 ./
5.
apt-get update
6.
apt-get upgrade
7.
apt-get dist-upgrade
And that's it
Don't forget to restart Apache2
/etc/init.d/apache2 restart
8.
php -v
PHP 5.3.9-1~dotdeb.2 with Suhosin-Patch (cli) (built: Jan 13 2012 01:21:19)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
piks:~/downloads/php5.3#
9. If you run into any problems it might be good idea to:
9.a. uinstall complete PHP
apt-get remove php5 libapache2-mod-php5 php5-gd php5-mysql
apt-get remove php5-curl php5-tidy php5-dev php-pear php5-cli
apt-get remove php5-common php5-suhosin
9.b. comment out sources.list local repository
joe /etc/apt/sources.list
deb http://archive.debian.org/debian/ lenny main contrib non-free
deb-src http://archive.debian.org/debian/ lenny main contrib non-free
deb http://archive.debian.org/debian-volatile lenny/volatile main non-free
# deb file:///root/downloads/php5.3 ./
9.c.
apt-get update
apt-get upgrade
apt-get auto-remove
9.d.
install PHP 5.2 all over again
apt-get install php5 libapache2-mod-php5 php5-gd php5-mysql
apt-get install php5-curl php5-tidy php5-dev php-pear php5-cli
apt-get install php5-common php5-suhosin php5-cgi php5-imagick
9.e.
un-comment sources.list local repository
joe /etc/apt/sources.list
deb http://archive.debian.org/debian/ lenny main contrib non-free
deb-src http://archive.debian.org/debian/ lenny main contrib non-free
deb http://archive.debian.org/debian-volatile lenny/volatile main non-free
deb file:///root/downloads/php5.3 ./
9.f
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get auto-remove
/etc/init.d/apache2 restart
9.g
If you get error 500 it could be because somehow sometimes it might happend that instalelr skips (???) php5-cgi
so do it once again, just to be sure:
apt-get install php5-cgi
/etc/init.d/apache2 restart
9.h
If that's not enough you can always tail outpout of apache error log
tail -F /var/log/apache2/error.log
|
Recent comments
9 hours 55 min ago
12 hours 22 min ago
1 day 17 min ago
1 day 2 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 22 hours ago
2 days 36 min ago
2 days 8 hours ago
2 days 10 hours ago