Apache2 and PHP5 in Less than 10 Minutes

This weeks Debian Weekly News featured a link to some unofficial debs of PHP5. I’ve been meaning to tinker with PHP5 for some time now and jumped on the opportunity to do so.

I took a fresh and minimal Debian Testing install (updated from a tiny stable install) and added the following line to my /etc/apt/sources.list:

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

After an apt-get update I used apt-get install to install the following packages:

  • apache2-mpm-prefork
  • libapache2-mod-php5
  • Many of the standard Apache2 modules
  • Many of the standard PHP5 modules listed here
  • A few suggested and recommended packages.

I ran the install command with -s a few times to see what would be installed, but zero to working Apache2 + PHP5 took me less than 10 minutes. Of course this is running unofficial stuff on a Testing system (though if you ask nice enough you should be able to pull this off on an otherwise Stable distro, but why would you do that?), so use it at your own risk. I’d suggest that you not try this on a production system. Until we see PHP5 incorporated into the various distros, this might be the quickest way to give it a go.

I’m excited to tinker with the new OOPness features in PHP5. I’ve also got my eye on a particular MVC framework called Mojavi.

Update (1/12/2005): As some have noticed it looks like there has been some moving and shaking in this unofficial unstable php5 build. After an apt-get update; apt-get dist-upgrade a few days ago, I lost the ability to use DomDocument. I checked the dists directory and changed my sources.list to reflect sid-old.

I changed my sources.list back to sid after noticing that there were fresh new (5.0.3-0.3) pakages dated this morning at 4am. The new packages are excellent!

Let me say again, don’t use this on a production system. But do look around, have some fun, and get a feel for php5. Special thanks to Piotr Roszatycki (dexter) for generating these packages.

17 Responses to “Apache2 and PHP5 in Less than 10 Minutes”


  1. 1 Bernd vdB Jan 11th, 2005 at 6:32 pm

    The deb directory seems to be empty, @ Jan 11 2005.

  2. 2 rolfhub\'s personal blog May 11th, 2005 at 5:36 am
    Ein paar Tipps zu Linux/Apache/PHP-Servern
    VHost-Konfiguration (Virtual Hosts definieren)

    Apache 1.*
    in der Datei: /etc/apache/httpd.conf

    Apache 2.*
    in der Datei: /etc/apache2/sites-available/default

    Außerdem nützlich:
    php5 auf Debian Testing (Debian Sarge)
    Diese Anleitung hat bei m

  3. 3 rolfhub\'s personal blog May 11th, 2005 at 5:36 am
    Ein paar Tipps zu Linux/Apache/PHP-Servern
    VHost-Konfiguration (Virtual Hosts definieren)

    Apache 1.*
    in der Datei: /etc/apache/httpd.conf

    Apache 2.*
    in der Datei: /etc/apache2/sites-available/default

    Außerdem nützlich:
    php5 auf Debian Testing (Debian Sarge)
    Diese Anleitung hat bei m

  4. 4 WebhostingTech May 28th, 2005 at 2:49 pm
    Apache2 und PHP5 in 10 Minuten
    In wenigen Sekunden mit Hilfe von apt-get PHP5 installieren ist kinderleicht mit dieser Anleitung. Bei Debian ist mir mittlerweile die apt-get Variante lieber als die Installation von Hand.

  5. 5 serious skin care Jun 10th, 2005 at 8:10 pm
    serious skin care
    Please check out some information dedicated to diabetes medication drugs

  6. 6 womens health Jul 4th, 2005 at 7:45 am
    womens health
    You may find it interesting to take a look at the pages in the field of mobic hoodia

  7. 7 Barry Jan 16th, 2006 at 8:40 pm

    I have just followed the above steps but find that apache doesnt load php - I get a dialogue box telling me I want to download a phtml file.

    I tihnk I’ll drop this site back to php4

  8. 8 PTFo7m5iNl Jan 12th, 2007 at 9:26 pm

    Hi! Very nice site! Thanks you very much! LxKwuJgifJpw

  9. 9 fkjwoytuga Feb 27th, 2007 at 6:02 pm
  10. 10 sffblqrdtr May 24th, 2007 at 11:37 am
  11. 11 emfiyygnwv Jun 22nd, 2007 at 8:19 pm

    Hello! Good Site! Thanks you! dwygdvideguvh

  12. 12 grand-gambler.com Mar 31st, 2010 at 7:25 pm

    Sehr gut put 5 balls.

  1. 1 consolidate loans Trackback on Apr 7th, 2006 at 7:44 pm
  2. 2 richmond hotels Trackback on Apr 18th, 2006 at 6:11 pm
  3. 3 Vehicles Insurance Trackback on Aug 26th, 2006 at 11:54 pm
  4. 4 Baby Girl Name Margaret Trackback on Jun 15th, 2007 at 2:26 pm
  5. 5 Payday Loans Trackback on Aug 22nd, 2007 at 7:54 am

Leave a Reply