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.
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.