View Single Post
  #13  
Old 23rd January 2013, 17:37
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

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
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 23rd January 2013 at 21:44.
Reply With Quote