This site is now 100% read-only, and retired.

PHP5 on Debian Stable?

Posted by simonw on Wed 28 Sep 2005 at 13:08

What is the smart way to get PHP5 on a Debian stable box?

I know I can "pin" packages from other releases by following the Debian reference.

I could snaffle the packages manually from testing, I could do my own backport, or use someone elses. I could even rebuild everything from source tar balls from the respective websites.

I'm leaning toward pinning packages, but I've never done this on anything but my own desktop box before, and I gather that "backports" was the unofficial but sensible way of doing this sort of thing before.

I figure there is no "right way" (except perhaps not using PHP5 operationally before for Etch is released?), but what is the way of least resistance?

 

 


Re: PHP5 on Debian Stable?
Posted by Anonymous (69.242.xx.xx) on Wed 28 Sep 2005 at 13:38
I'm running a debian stable box for testing php5. I've been using http://www.dotdeb.org/tiki-index.php

The packages have been fine or testing code and projects, but I've not used it in production.

Another alternative could be to try ubuntu. They have php5 packages in their upcoming Breezy release.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (194.250.xx.xx) on Wed 28 Sep 2005 at 13:45

Dotdeb packages are provided by an hosting company, and yes, they are made for production (count several thousand servers using it).

M

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (194.250.xx.xx) on Wed 28 Sep 2005 at 13:42

One easy and efficient way is to use "Dotdeb" packages.

http://www.dotdeb.org/

I used them several years on Woody (mutualized platform with many users) without any problem. Dotdeb is always up to date, especially concerning security issues.

M

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (80.99.xx.xx) on Wed 28 Sep 2005 at 15:07
As I know, the dotdeb packages does not support apache2, that's why I use the PHP5 packages from here:

deb http://people.debian.org/~dexter all sarge
deb-src http://people.debian.org/~dexter all sarge

---
kobak

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by stoffell (81.164.xx.xx) on Wed 28 Sep 2005 at 18:04
Thanks for the nice links, also looks good.

But with the release of starge (current stable), the dotdeb packages support apache2.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by simonw (212.24.xx.xx) on Tue 20 Dec 2005 at 09:11
[ View Weblogs ]
Hmm they seem to want to pull in apache-common from 1.3?!

Known issue, or do I need to doublecheck stuff?

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by multani (82.230.xx.xx) on Wed 28 Sep 2005 at 19:12
Yes, dotdeb now supports Apach2 & Php5 ...

I've used the packages from Dexter, but I found several bugs in, so now, I used the Dotdeb one, and it's allright ...

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (195.202.xx.xx) on Wed 28 Sep 2005 at 20:42
Put it in a vserver.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by simonw (84.45.xx.xx) on Wed 28 Sep 2005 at 21:19
[ View Weblogs ]
I assume the vserver solution would be to let me run "testing" along side "stable"?

If so I can appreciate the flexibility of having PHP4 for in stable, and PHP5 in testing, it seems to have increased my work load as the system admin?! All the other GNU/Linux boxes run Debian stable, or will do by Christmas.

We even discussed offering some sort of virtual server hosting (we were thinking Xen or UML, but vserver might be an option), but most of our clients want us to "just make it work", rather than wanting their own server (even if I think it is very easy to manage a virtual server, since you don't have any of those hardware headaches that Linux can still bring, not everyone agrees). So if we did go with some sort of virtual server solution, we might end up maintaining N instances ourselves, so it would need some careful planning.

I had read about Dexter's packages, but not the dotdeb packages, perhaps I should have searched a little harder, but I was finding very little.

I think PHP5 adoption was quite slow, no doubt in part because it isn't 100% backwardly compatible, and also that the new features benefit big packages, and they take time to write.

But even customers who want handholding are now asking for it by name, as they are looking at products that require it.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by stoffell (81.165.xx.xx) on Wed 28 Sep 2005 at 21:55
Have a look at this: http://www.linux-mag.com/content/view/2175/

Concerning PHP5, there's also a section on "Adoption Among Hosting Providers" and "Application Support"

---
stoffell

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (213.164.xx.xx) on Thu 29 Sep 2005 at 07:32
Perhaps I'm being dumb here, but isn't Debian Stable the overruling reason for using Debian - i.e. a well tested production quality platform?

How can it continue to be this if you don't use Stable's packages?

This isn't intended as flamebait, I'd really like to know.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (67.104.xx.xx) on Thu 29 Sep 2005 at 18:25
There are exceptions to every rule. I think of it more as all of my system except one package has been tested well. I run coldfusion on my Debian Server and it's not even a Debian package.

Dont forget that Debian is a great distro but ultimatly you have to make whatever OS you use work for your enviroment. Its rediculous to be say if Debian does not have a stable package dont use it, thats just not practical.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (207.74.xx.xx) on Fri 30 Sep 2005 at 13:01
Things only become stable through testing. Someone has to try it out first. :)

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by simonw (212.24.xx.xx) on Tue 20 Dec 2005 at 10:45
[ View Weblogs ]
dotdeb it is.

Found an article saying basically add the repositories to /etc/apt/sources.list and;

apt-get update # Of course
apt-get install libapache2-mod-php5 php5 php5-mysql

Will report back if we get any issues. Previous attempts were less specific on what to install, and were picking up stuff for the old version of Apache. Seems slicker than the "dexter" repository and possibly slightly older, and people are using it in anger. However they do update some existing Debian Sarge packages (presumably for compatibility).

The Apache2 module ousts the PHP4 one, although it seem happy to have both PHP4 and PHP5 installed locally.

I also need to migrate the existing PHP4 applications, which may prove interesting.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by simonw (212.24.xx.xx) on Thu 19 Jan 2006 at 10:52
[ View Weblogs ]
php5 seems to have gone - but libapach2-mod-php5 pulls in the relevant dependencies.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (70.29.xx.xx) on Thu 19 Jan 2006 at 05:27
Trouble Shoot & INSTALL - APACHE/MYSQL/PHP from scratch
-------------------------------------------------------

Since the apache2 that comes with debian proves to be a bitch when it comes to configuration
lets do this...

Reinstall apache2 and also get it to work such that it points to /var/www

DANGEROUS COMMAND SO HANDLE WITH CARE...
----------------------------------------

dpkg --purge --force-depends apache2-common
dpkg --purge --force-depends apache2

MAKE SURE YOU INSTALL OR DEPENDECIES WILL BREAK
------------------------------------------------

apt-get install apache2-common
apt-get install apache2


PHP5 SUPPORT
------------
add the below to "/etc/apt/sources.list"

deb http://people.debian.org/~dexter php5 sarge

install the necessary packages

apt-get install php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd

For a full list of PHP5 modules

apt-cache search php5.

to install php and mysql modules use the below

cd /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/php5.load
ln -s /etc/apache2/mods-available/php5.conf

Now start the beast....

/etc/init.d/apache2 start

now in /var/www run your first php script... Please no "Hello World!!!"



IF THERE IS SOMETHING TOO OBVIOUS OR IF THERE ARE SOME REDUNANT STEPS
PLEASE CORRECT THEM !!! DON'T COMPLAIN ;)

Thaneshshan Suntharalingam

[ Parent ]

Thanks
Posted by simonw (212.24.xx.xx) on Thu 19 Jan 2006 at 10:54
[ View Weblogs ]
Thanks Thaneshshan, but I read you comment whilst (literally) installing the dotdeb packages on the live server.

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (161.53.xx.xx) on Fri 13 Jul 2007 at 16:37
great man, that is what we need here...

[ Parent ]

Re: PHP5 on Debian Stable?
Posted by Anonymous (77.228.xx.xx) on Wed 14 Apr 2010 at 10:42
And mysql?

[ Parent ]