Guide: Apache and PHP on Windows

Discussion in 'Windows Desktop Systems' started by SPeedY_B, Nov 24, 2002.

  1. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    SPeedY_B's Quick Guide to Installing Apache/PHP on Windows
    (Sponsored By madmatt :D)


    first of all you're going to need a webserver to run the PHP module, i'd suggest you do a little reading up on this if you're not sure what this means exactly, other wise click here and download PHP-Triad (~12mb).
    PHP-Triad is basically a package containing PHP 4.1.1 and Apache HTTPd 1.3.23 pre-configured to work together on any Windows system.
    Once thats downloaded simply double click the installer and follow it through until everything is installed.

    You should now have a "PHPTriad" sub-folder in your start menu, open this up and click the shortcut for "PHPTriad Control Panel"

    [​IMG]

    a DOS Window should pop-up briefly, you may ignore this, Once that window has performed its task and closed itself open http://localhost:1005
    You will be presented with the PHPTriad Control Panel...

    [​IMG]

    Click the "Install Apache as Service" link, this will allow apache to run at system start-up
    (IMPORTANT NOTE: This will run a web-server on your computer, I'd recommend if you have a firewall that you set it to dis-allow incoming tcp/udp data on port 80 so that no-one other than yourself/localhost will be able to access the server)
    You will receive a confirmation message, after this you may close the browser window. Next Start > Run > services.msc
    Set the Apache service to "Automatic" and start it if it isn't already.

    [​IMG]

    You are now serving web documents from C:\apache\htdocs the address you use to reach the files via your browser (or active desktop) is http://localhost
    To use MADMATT.xperience you can simply unzip the contents of the latest zip available (Link in MadMatt's signature) into c:\apache\htdocs or a sub-folder within, here i have put all the files into a folder called "matt" and can access them by going to http://localhost/matt/xperience.php in my browser.

    [​IMG]

    To incorperate this into the desktop, you add a new desktop item, with the localhost url as the location, as shown here :

    [​IMG]

    Once added and confirmed, windows will synchronise with the server (which is local, so it wont take long) then you're all set.
    If all has gone well you will now have MADMATT.xperience on your desktop.

    [​IMG]

    For the more advanced user there are more options that can be configured in c:\apache\conf\httpd.conf (open with word/notepad) but i wouldn't recommend this for someone who is new to webservers etc.
     
  2. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    Thank you much speedy, this will be a great guide for those who want to run MADMATT.xperience. It also opens the flood gates for new and exciting active desktop code. Great job. Thanks! =]
     
  3. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Glad to help :D
    I hope more people do start to run it because it's a nice addition to the active desktop :)
     
  4. Oli_G

    Oli_G Guest

    wkd fine, slayg
     
  5. wadada

    wadada Moderator

    Messages:
    707
    Location:
    netherlands
    cool

    thanks very much, me can use this very good !

    [​IMG]

    :)
     
  6. Leo

    Leo OSNN Addict

    Messages:
    216
    Great guide Speedy.
    :)
     
  7. Tabula Rasa

    Tabula Rasa Stranger Than Kindness Political User

    Messages:
    3,233
    Location:
    Israel
    Gr8 guide SpeedY_B
     
  8. Grandmaster

    Grandmaster Electronica Addict Political User Folding Team

    Messages:
    10,574
    Location:
    Santa Clara, CA
    "(Sponsored By madmatt :D)" That cracked me up :D Great guide, will try this out right now.. :)
     
  9. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    hey, I'm getting big here. I'm a big time player now.
     
  10. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
    Awesome job SpeedY ... great contribution to the site :)
     
  11. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    :D :p

    The guide needed to be done, so i did it :)
     
  12. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
    This has gotta be a sticky, and so it is :)
     
  13. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    So i see ;)
    Does this mean i have to answer questions when...erm IF it all goes horribly wrong ? :p
     
  14. DrMetallica

    DrMetallica OSNN Senior Addict

    Messages:
    301
    [edit] inappropriate post [/edit]
     
  15. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    wonder what that said =)
     
  16. chris

    chris Free to Fly

    Messages:
    1,109
    i'm gonna work through the guide now, hopefully i'll have it workin soon =)
     
  17. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    First off, thanks for all the compliments :D

    Secondly, as the point was raised elsewhere ..
    Apache when running will create TWO processes in your tasklist, i've noticed this before but never really looked into it.
    Here's some info from the site :
    So don't worry if you see two apache.exe's in your tasklist, it's perfectly normal.

    Enjoy :D
     
  18. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    well, now I am going to try and get rid of normal Apache and PHP from my PC, I hate messin with conf files.
     
  19. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
  20. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Out of curiousity, as plenty of people have said "im gonna try it", how many actually have it all working now?