Apache2 and PHP5 in Less than 10 Minutes


Posted

in

,

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.

Comments

21 responses to “Apache2 and PHP5 in Less than 10 Minutes”

  1. Bernd vdB Avatar
    Bernd vdB

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

  2. rolfhub\'s personal blog Avatar
    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. rolfhub\'s personal blog Avatar
    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. WebhostingTech Avatar
    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. serious skin care Avatar
    serious skin care
    Please check out some information dedicated to diabetes medication drugs

  6. womens health Avatar
    womens health
    You may find it interesting to take a look at the pages in the field of mobic hoodia

  7. Barry Avatar
    Barry

    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. 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. richmond hotels…

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

  10. Vehicles Insurance…

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

  11. PTFo7m5iNl Avatar

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

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

  13. emfiyygnwv Avatar

    Hello! Good Site! Thanks you! dwygdvideguvh

  14. Payday Loans…

    very nice site!

  15. grand-gambler.com Avatar

    Sehr gut put 5 balls.

  16. buy propecia Avatar

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

  17. imdfyaijq Avatar

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

  18. vyvoz stroitelnogo musora spb…

    vyvoz musora…

  19. fheiffh Avatar

    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.