LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-18-2009, 09:24 AM   #1
MagicTom
LQ Newbie
 
Registered: Feb 2003
Location: Philadelphia, PA
Distribution: Debian, Ubuntu, CentOS, Fedora
Posts: 17

Rep: Reputation: 0
PHP 5.3 on Debian


PHP 5.3 was recently released (exciting!) and added to the Debian Experimental repository. The repository and install instructions are located at http://osdir.com/ml/php-general/2009-07/msg00040.html .

Problem is, the line they give to install php 5.3 doesn't seem to help with the dependencies. Executing "apt-get -t experimental php5" on Debian Etch gives me:
Code:
The following packages have unmet dependencies:
  php5: Depends: libapache2-mod-php5 (>= 5.3.0-2) but it is not going to be installed or
                 libapache2-mod-php5filter (>= 5.3.0-2) but it is not going to be installed or
                 php5-cgi (>= 5.3.0-2) but it is not going to be installed
E: Broken packages
Switching it to php5-cgi (which is really all I need at this point) gives me:
Code:
The following packages have unmet dependencies:
  php5-cgi: Depends: libdb4.7 but it is not installable
            Depends: libgssapi-krb5-2 (>= 1.6.dfsg.2) but it is not installable
            Depends: libk5crypto3 (>= 1.6.dfsg.2) but it is not installable
            Depends: libkrb5-3 (>= 1.6.dfsg.2) but it is not installable
            Depends: libpcre3 (>= 7.7) but 6.7+7.4-4 is to be installed
            Depends: libssl0.9.8 (>= 0.9.8f-5) but 0.9.8c-4etch5 is to be installed
            Depends: libxml2 (>= 2.6.28) but 2.6.27.dfsg-6 is to be installed
E: Broken packages
So, it's fantastic that PHP 5.3 is in the repository and all, but it's not doing me a lot of good if apt won't find the rest of the packages it needs. But I'm not super apt-savvy, so if anyone has any tips it would be hugely appreciated!

Last edited by MagicTom; 07-18-2009 at 09:25 AM.
 
Old 07-19-2009, 06:38 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What is your sources.list now?
 
Old 07-19-2009, 06:47 AM   #3
MagicTom
LQ Newbie
 
Registered: Feb 2003
Location: Philadelphia, PA
Distribution: Debian, Ubuntu, CentOS, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
Well I've been starting up EC2 nodes to test this before I do it on my webserver (there's a whole lot of sites on there at risk if I do this wrong ;-)) But every time I get one, my sources.list looks like this:

Code:
deb http://ftp.debian.org/debian/ etch main
deb-src http://ftp.debian.org/debian/ etch main

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

deb http://ftp.debian.org/debian/ experimental main contrib
deb-src http://ftp.debian.org/debian/ experimental main contrib
Thanks for replying!
 
Old 07-19-2009, 08:44 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ok, etch is oldstable. I would wager that php5.3 in experimental isn't meant to be able to run on Etch. Perhaps not even Lenny (stable).

Picking one package .. I'm mostly right. libxml2 (>= 2.6.28) is not available in Etch but is in Lenny.

You can either upgrade your system to Lenny, or attempt to build php5 from experimental on your Etch system. With all the dependencies it probably isn't worth it, but you can try something like:
apt-get install build-essential
apt-get build-dep php5
apt-get source -b -t experimental php5
And see if it will build. If it does,
dpkg -i php5-somethingsomething.deb

Last edited by AlucardZero; 07-19-2009 at 08:53 AM.
 
Old 07-19-2009, 11:25 AM   #5
MagicTom
LQ Newbie
 
Registered: Feb 2003
Location: Philadelphia, PA
Distribution: Debian, Ubuntu, CentOS, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the help, Alucard! Your prediction was right on -- I couldn't get it to install cleanly in Lenny either, but I've successfully taken a server from etch to squeeze and installed php 5.3.0 with all my modules.

Thanks again!
 
  


Reply

Tags
debian, php



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP version in Debian 5.0 kaplan71 Debian 2 05-18-2009 07:55 PM
PHP in DEBIAN mahi Linux - Newbie 3 11-29-2008 02:52 PM
Compiling PHP on Debian j@ckrabbit Debian 1 10-28-2005 02:43 PM
PHP/Apache/Debian squirellplaying Linux - General 17 08-28-2004 03:17 AM
PHP CLI on Debian rcs1000 Debian 2 08-01-2004 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration