Skip to content

API Site Setup Instructions

gregtheyoung edited this page Oct 16, 2014 · 17 revisions

#Instructions for Setting Up a Server for PatentsView API

  1. Using the Windows Server Manager, add the Web Server (IIS) role.

  2. While going through that wizard, be sure to include: HTTP Activation - which is under the .NET 4.5 group. Clicking that will confirm to add a slew of other features.

  3. Install PHP via the Web Platform Installer

  4. http://www.microsoft.com/web/gallery/install.aspx?appid=PHP53 and click the "Install Now" button.

  5. A PHP53.exe file should've been downloaded. Run it.

  6. On the Prerequisites pages, deselect the drivers for SQL Server.

  7. Click install.

  8. It will probably say that it failed to install "PHP Manager for IIS", so we install it manually.

  9. Installed PHP Manager directly.

  10. Download and install .NET 3.5 framework from here: http://www.microsoft.com/en-us/download/details.aspx?id=22

  11. Go to this page: http://phpmanager.codeplex.com/releases/view/69115

  12. Download "PHP Manager 1.2 for IIS 7 - x64"

  13. Run the download.

  14. It will ask to download and install .NET 2.0. Do that.

  15. Install PHP

  16. Go to this site and click on install. This will run the Web Platform installer. http://www.microsoft.com/web/gallery/install.aspx?appid=PHP53

  17. This downloaded a file called php53.exe. Run it. As part of it installing, it installed PHP Manager fo IIS MS Drivers for PHP 5.3 for SQL Server in IIS - but I clicked on the X and removed this PHP 5.3.28 It said it failed when installing PHP Manager for IIS Went through role/feature setup for server and added .NET 3.5 feature Also include HTTP Activation, which caused a slew of other .NET things to be installe Installed PHP Manager directly http://phpmanager.codeplex.com/releases/view/69115

Ran PHP Manager Took recommendation to set the default for .php and to monitor changes to the php.ini file

Added perimssion for IUSR on the wwwroot directory

Install Slim framework http://www.slimframework.com/install Extracted to wwwroot/querymodule/v0

Created hello world Needed web.config from here: https://github.com/codeguy/Slim

Checked to see that I could have querymodule/v0 and querymodule/v1 - no problem there!

For development Installed PHPStorm

Installed and configured xdebug
	http://www.leighton.com/blog/php-debugging-in-phpstorm-6-0-with-xdebug
	From the custom install instructions
		Download php_xdebug-2.2.5-5.3-vc9-nts.dll
		Move the downloaded file to "C:\Program Files (x86)\PHP\v5.3\ext"
		Edit C:\Program Files (x86)\PHP\v5.3\php.ini and add the line
		zend_extension = "C:\Program Files (x86)\PHP\v5.3\ext\php_xdebug-2.2.5-5.3-vc9-nts.dll"

Installed Xdebug chrome extension
Installed JetBrains IDE support chrome extension
Clone this wiki locally