Guide: Apache and PHP on Windows

SPeedY_B

I may actually be insane.
Joined
31 Mar 2002
Messages
15,807
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"

001.jpg


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

002.jpg


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.

003.jpg


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.

004.jpg


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

005.jpg


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.

006.jpg


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.
 
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! =]
 
Glad to help :D
I hope more people do start to run it because it's a nice addition to the active desktop :)
 
cool

thanks very much, me can use this very good !

wadforum.gif


:)
 
"(Sponsored By madmatt :D)" That cracked me up :D Great guide, will try this out right now.. :)
 
hey, I'm getting big here. I'm a big time player now.
 
So i see ;)
Does this mean i have to answer questions when...erm IF it all goes horribly wrong ? :p
 
i'm gonna work through the guide now, hopefully i'll have it workin soon =)
 
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 :
Because Apache for Windows is multithreaded, it does not use a separate process for each request, as Apache does with Unix. Instead there are usually only two Apache processes running: a parent process, and a child which handles the requests. Within the child each request is handled by a separate thread. So, "process"-management directives are different
So don't worry if you see two apache.exe's in your tasklist, it's perfectly normal.

Enjoy :D
 
well, now I am going to try and get rid of normal Apache and PHP from my PC, I hate messin with conf files.
 
Out of curiousity, as plenty of people have said "im gonna try it", how many actually have it all working now?
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back