Okay, so we're going to begin by downloading PHP from:
Pick a mirror, and download it and we'll continue once your finished.
Okay, lets begin.
Open up the installer and begin by clicking Next.
The next screen is the License Agreement.. Simply click on I Agree and we’ll continue to the next step.
Here we’ll want to select Advanced as we’re not installing anything in the default location we’re organizing everything a little bit more and installing all of our server applications in a sub folder of a main Server folder.
The next window brings us to the installation directory that PHP will be installed in. We’re going to want to click on Browse.
In this case we’re going to use “C:\Server\PHP” as the installation directory, once this has been typed in the location bar simple click on Ok.
Next, you hit Next...
For the screen about the backups, make no changes and hit Next.
The next screen will ask us about the temporary upload folder. Leave it be, because we don't need it in the server folder, and hit Next.
Leave the next screen as well, and hit Next.
The next screen is for the SMTP server. Sense we haven’t setup one yet, we’ll leave this all as the default and we can go back later and change it at any time by editing the php.ini file.
For the next screen asking about error reporting, select the one best for development.
On the next screen, select Apache in this case and click Next.
For the extensions, leave it default and click Next.
If it asks about keeping a PHP.INI file, select No.
We’ll be setting PHP up as a CGI binary as it’s the simplest to setup and get us moving quickly.
Now we’ll need to edit the httpd.conf file, which is located in the conf folder on Apache2 installations. Once the httpd.conf is opened we’ll need to add a few lines of code to the very bottom of this file to allow PHP to load and work correctly.
ScriptAlias /php/ "c:/server/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
The first line will let Apache know the installation of PHP and the next two will let Apache know how to handle PHP files. Once the following code has been added to the httpd.conf file, simply restart Apache and if no errors are displayed we’re pretty much finished. But we’ll make sure PHP is installed correctly.
Open a text editor and put the following code in it:
<?PHP phpinfo(); ?>
Save it as phpinfo.php and put it in C:\Server\Apache2\htdocs and load it up at: http://localhost/phpinfo.php
As long as it comes up, PHP is good.
Okay, so now that we have a basic server running, we'll setup a link for ourselves. As always, you can link to your server through an IP, but if your IP changes or whatever, then you need to change the link..
Also, please note that you will NOT be able to connect to your own local server from anywhere in your network, using your own IP.
I'd reccomend going to http://no-ip.org
and registering for a DNS Host, and then downloading the client to keep your IP up to date with the DNS settings.
Good luck, and I hope someone enjoyed this guide.