PDA

View Full Version : PHP5 on Debian sarge


tin
07-24-2005, 01:20 AM
So I just signed up and wanted to install PHP5 with Apache2 on my Debian sarge account. Unforunately, Debian does not support PHP5 through the official apt package list. At first I thought the alternative package list from Dotdeb (http://www.dotdeb.org/) would do the trick, but they don't have a mod for Apache2. Luckily, I found another source (http://people.debian.org/~dexter/dists/php5/) that does. Just add the following line to your /etc/apt/sources.list:
deb http://people.debian.org/~dexter php5 sargeNext, update the package list withapt-get update Then, to get the vanilla PHP5 installation: apt-get install php5 libapache2-mod-php5 It should setup Apache2 automatically. If you want MySQL or other module support (CURL, GD, etc), add them to the list:
apt-get install php5 libapache2-mod-php5 php5-mysql php5-curl Be sure to restart Apache when you're done so the modules show up: /etc/init.d/apache2 restartFor a full list of PHP5 modules, apt-cache search php5.

Check out phpinfo() to make sure everything's set and away you go.

carl
07-30-2005, 02:09 AM
dotdeb recently moved to Sarge (was Woody), and is probably worth a look: http://dotdeb.org/

They provide do php5, as well as qmail, vpopmail etc (if you're a fan of qmail..).

geek.de.nz
02-15-2006, 10:36 AM
I tried like described at
http://www.debianhelp.co.uk/php5.htm

But for some reason I still can't run PHP5. It is installed as shown by apt-get. But when I run
#php -v
I get:
PHP 4.3.10-16 (cli) (built: Aug 24 2005 20:25:01)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Also, when I run the phpinfo(); I get:
PHP Version 4.3.10-16
...

Someone knows how to actually activate php5? I even deleted php4 with
#apt-get remove php4
and restarted the webserver with
#/etc/init.d/apache2 restart
Even tried rebooting, but still it didn't work.

I need PHP5 because I'm using classes etc, otherwise I'll have to rewrite a lot of the stuff I'm developing to run on my vserver.