I’ve found myself doing this several times over the past little while as I had to switch computers. Each time I would struggle with a few of the steps, so I thought I would document them this time and share for future me (or you if you like).
The first thing that needs to be done is to actually install IIS. This is done through the Control Panel.
i. Select IIS Management Console
i. Expand Application Development Features
ii. Expand any of the remaining sub folders and select any items that may interest you in turning on
It’s important to note, that by default my IIS was already turned on; however, under Application Development Features, the CGI option was not and after installing PHP I had the following error:
Error - "Handler "PHP53_via_FastCGI" has a bad module "FastCgiModule" in its module list"
Luckily, a quick Google search brought me here to tell me how to solve the issue: http://www.hagrin.com/344/fixing-http-50021-error-handler-php53viafastcgi-has-bad-module-fastcgimodule-its-module-list was to turn on this feature!
I took the lazy way out. I used the Web Platform Installer to make things easier.
This will download a stable version of PHP and configure IIS to be able to handle PHP files.
If you do not perform this step, you’ll have to make several changes to IIS not being covered in this tutorial!
If you wish to you MySQL, follow these steps. Once again I leveraged the Web Platform Installer.
The MySQL Connector is required to be able to connect to a MySQL database.
The MySQL Windows 5.1 is actually a MySQL server that will run locally. If you simply wish to connect to an existing MySQL database, only the connector is required.
Visit http://www.cakephp.org and download the version of CakePHP you wish to use.
Extract CakePHP on your computer. This should be placed into a folder that is not behind higher security. E.g. of My Documents, Program Files, Windows Folder, even inetpub. I would suggest creating a folder at the root of your drive of choice.
i. This is important as it’s different from Apache or Nginx where you would select the app/webroot!
At this point you should be up-and-running. You will need to finish off the remaining regular configuration of CakePHP such as setting up your database connection, changing the cipher in core, etc…
See the CakePHP Getting Started Guide for any further information.
Once you’re done, feel free to browse the ton of CakePHP sample code I’ve blogged about in the past! Published on Jun 11, 2013 Tags: CakePHP Tutorial
| php
| PHP
| iis
Did you enjoy this article? If you did here are some more articles that I thought you will enjoy as they are very similar to the article
that you just finished reading.
No matter the programming language you're looking to learn, I've hopefully compiled an incredible set of tutorials for you to learn; whether you are beginner
or an expert, there is something for everyone to learn. Each topic I go in-depth and provide many examples throughout. I can't wait for you to dig in
and improve your skillset with any of the tutorials below.
Install IIS
Install PHP
Optional - Install MySQL
Download CakePHP
Create IIS Website
Up and Running
Summary
Related Posts
Tutorials
Learn how to code in HTML, CSS, JavaScript, Python, Ruby, PHP, Java, C#, SQL, and more.