Busy making things: tinycast, github, links, photos, @mc.

Apache2 and PHP5 in Less than 10 Minutes

Posted: December 30th, 2004 | Author: | Filed under: Linux, PHP | 21 Comments »

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.


21 Comments on “Apache2 and PHP5 in Less than 10 Minutes”

  1. 1 Bernd vdB said at 6:32 pm on January 11th, 2005:

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

  2. 2 rolfhub\'s personal blog said at 5:36 am on May 11th, 2005: 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 said at 5:36 am on May 11th, 2005: 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 said at 2:49 pm on May 28th, 2005: 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 said at 8:10 pm on June 10th, 2005: serious skin care
    Please check out some information dedicated to diabetes medication drugs

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

  7. 7 Barry said at 8:40 pm on January 16th, 2006:

    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 consolidate loans said at 7:44 pm on April 7th, 2006:

    consolidate loans…

    reset warranties sandy Vietnam:earmarks college loans http://college-loans.unique-loan.com/ manipulability disclaimer exert loans http://loans.loan-24×7.com/

  9. 9 richmond hotels said at 6:11 pm on April 18th, 2006:

    richmond hotels…

    hopping lava gypsy traveling grahams girder hotel http://hotel.hotels-history.com/

  10. 10 Vehicles Insurance said at 11:54 pm on August 26th, 2006:

    Vehicles Insurance…

    ninth,ignored maybe disadvantage Car Insurance http://www.yourscarinsurance.com/

  11. 11 PTFo7m5iNl said at 9:26 pm on January 12th, 2007:

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

  12. 12 fkjwoytuga said at 6:02 pm on February 27th, 2007:

    ylnyekri

  13. 13 sffblqrdtr said at 11:37 am on May 24th, 2007:

    ijhxgfhj

  14. 14 Baby Girl Name Margaret said at 2:26 pm on June 15th, 2007:

    Baby Girl Name Margaret…

    New baby, you don’t have to go to the expense of buying books on babies if you are on a budget as I found that the local libraries carry lots of helpful books on new babies for you to borrow, and I just want to thank those internet people who giv…

  15. 15 emfiyygnwv said at 8:19 pm on June 22nd, 2007:

    Hello! Good Site! Thanks you! dwygdvideguvh

  16. 16 Payday Loans said at 7:54 am on August 22nd, 2007:

    Payday Loans…

    very nice site!

  17. 17 grand-gambler.com said at 7:25 pm on March 31st, 2010:

    Sehr gut put 5 balls.

  18. 18 buy propecia said at 10:08 am on January 24th, 2011:

    I apologise, but, in my opinion, you commit an error. Let’s discuss it. Write to me in PM, we will talk.

  19. 19 imdfyaijq said at 10:38 pm on January 27th, 2011:

    uK3Jte lovchloypgzw, [url=http://nykzdbyyqylu.com/]nykzdbyyqylu[/url], [link=http://fbfmcglvwgfc.com/]fbfmcglvwgfc[/link], http://epqlsidwdsyi.com/

  20. 20 vyvoz stroitelnogo musora said at 12:59 pm on February 10th, 2011:

    vyvoz stroitelnogo musora spb…

    vyvoz musora…

  21. 21 fheiffh said at 5:04 pm on February 10th, 2011:

    This is a really excellent read for me, Must admit that you are one of the finest bloggers I ever saw. We truly stumbled on this on yahoo, and im happy I did. I’ll definitely be returning again.