Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2002
    Posts
    202

    debian woody - php4 unstable how?

    Hey I'm new to the debian package world.

    I'm trying to install php4 unstable as displayed at http://packages.debian.org/unstable/web/php4.

    This is my /etc/apt/sources.list
    deb http://http.us.debian.org/debian woody main contrib non-free
    deb http://non-us.debian.org/debian-non-US woody/non-US main contrib non-free
    deb http://security.debian.org stable/updates main contrib non-free
    I use this command for attempting to install php4 unstable, but keeps saying 4.1.2 which is the stable version.
    apt-get -s -t unstable install php4
    What must i do to install the unstable version of php?

  2. #2
    Join Date
    Jan 2003
    Posts
    1,715
    Hrm... I don't see a -t option for apt-get. Anyway, woody is the stable release. You will probably need to change those to 'unstable' and do an 'apt-get update' to reload the package list. PHP4 will probably depend on a lot of other packages. I would suggest hanging back on 'testing' unless you enjoy a wild ride.
    Game Servers are the next hot market!
    Slim margins, heavy support, fickle customers, and moronic suppliers!
    Start your own today!

  3. #3
    Join Date
    Oct 2002
    Location
    Cincinnati, OH
    Posts
    78
    Actually you just have to add extra sources.list entries for the unstable pool. Afterwards, it's a matter of doing something like apt-get install unstable/php4.

    Either Google around, or read in Debian's docs, about "apt-pinning". It's the system that apt allows you to be at a certain level of your system (such as woody), but to individually install packages from more-unstable pools (like sarge or sid).

    As noted above, doing this will also cause all the dependencies to be updated to their more-unstable versions also. Handle with care.

    --Scott

  4. #4
    Join Date
    Nov 2002
    Posts
    202
    i tried your command but it didnt work
    server:~/t/img# apt-get -s install unstable/php4
    Reading Package Lists... Done
    Building Dependency Tree... Done
    E: Couldn't find package unstable
    i believe it's because of my server.list. i've tried many things but i do not know how to add an unstable list.. can anyone help me?

    another question:
    i believe php 4.1 is pretty outdated. there are a few good things added in 4.2. php 4.3 seems pretty stable on other redhat systems. so how can i find out when it is likley 4.3 will come out?

    thanks

  5. #5
    Join Date
    Jan 2003
    Posts
    1,715
    Debian Stable releases are well-tested and stable at any cost. PHP will not be updated in there until the next stable release, unless some grave bug comes up that can not be fixed by any other means. It will be quite some time (a year or two) before a new stable release.

    RedHat looks more like testing, which is what most of my servers are on. Those are the packages that go two weeks without a critical issue, so it runs quite current while still avoiding the major disasters.
    Game Servers are the next hot market!
    Slim margins, heavy support, fickle customers, and moronic suppliers!
    Start your own today!

  6. #6
    Join Date
    Nov 2002
    Posts
    202
    i see debian woody's ways.. nice

    i'll probably install php5 in cgi mode see how that goes..

    thanks for your advise

  7. #7
    You want the unstable version or just the latest?

    If you want the latest edit your sources.list of apt and change "woody" to "sarge" - the one I'm using I might add - if you want unstable simply modify "woody" to "unstable" aka Sid, I don't recommend this choice.

    then, Debian Magic begings

    apt-get install php

    Will do the dirty work for you, I recommend running Sarge not Woody (Because it is outdated, but hey if you want a secure OS use Woody. bugfree), if you want to run sarge and Upgrade from woody, simply.

    apt-get update (to get updated Listings of packages) *Use it before install php on step 1*

    After the listings have been updated, now let's upgrade the main OS core:

    apt-get dist-upgrade

    After that you can do:

    apt-get upgrade (To install the package upgrades that weren't installed on dist-upgrade)

    Athrough, I recommend you to get the tar ball and untar it and compile it, is not that hard

    ~Good Luck
    ^_^

  8. #8
    Join Date
    Apr 2003
    Location
    Melbourne, AU
    Posts
    539
    IMHO, you're better off compiling php from source and installing it into a separate directory (/usr/local/php?), for these two reasons:

    1) it's way too messy (meeting the dependencies, fixing the build scripts) compiling the php_4.3 source deb in woody.
    2) www.backports.org doesn't have it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •