-
Notifications
You must be signed in to change notification settings - Fork 11
API Site Setup Instructions
gregtheyoung edited this page Dec 9, 2014
·
17 revisions
#Instructions for Setting Up a Server for PatentsView API
- Download the code
- Use your favorite tool to get the code from Github: https://github.com/CSSIP-AIR/PatentsView-API and put it at
c:\PatentsView-API. - Using the Windows Server Manager, add the Web Server (IIS) role.
- While going through that wizard, be sure to include:
1. .NET 3.5 Framework.
1. HTTP Activation - which is under the .NET 4.5 group. Clicking that will confirm to add a slew of other features.
1. If you get a warning on the confirmation screen that you need to specify a different source for missing files, specify the source:
C:\Windows\WinSxS. - Install PHP via the Web Platform Installer
- http://www.microsoft.com/web/gallery/install.aspx?appid=PHP53 and click the "Install Now" button.
- Run the
php53.exefile that was downloaded. - On the "Prerequisites" page, deselect the drivers for SQL Server.
- Click install.
- It will probably say that it failed to install "PHP Manager for IIS", so we will install it manually.
- Install PHP Manager
- Go to: http://phpmanager.codeplex.com/releases/view/69115
- Download "PHP Manager 1.2 for IIS 7 - x64"
- Run the download
- Configure IIS
- Run the PHP Manager 1. It will say the it has some recommendations. Accept those, which are to set index.php as a default doc and to monitor changes to the php.ini file.
- Set up sites
- These instructions are for just one model for setting up the sites in IIS. You may want to do it differently.
- Copy the contents of
c:\PatentsView-APItoc:\qm\currentand to (assuming this is for version 1)c:\qm\v1. - Create a virtual directory called
apioff of the default site and point it toc:\qm\current\querymodule\public_html. - Create a virtual dir off the
apivdir calledv1and point it toc:\qm\v1\querymodule\public_html. - Edit the
c:\qm\current\querymodule\public_html/web.configfile and change the name of the rewrite rule from "slim" to "slimCurrent". - Go into the URL Rewrite for the
v1vdir and remove the "slimCurrent" rule. 1. Do this for all other vN directories. - Update sites with new code version
- Copy the contents of
c:\PatentsView-APItoc:\qm\currentand to (assuming this is for version X)c:\qm\vX. - Create a virtual dir off the
apivdir calledvXand point it toc:\qm\vX\querymodule\public_html. - Edit the
c:\qm\current\querymodule\public_html/web.configfile and change the name of the rewrite rule from "slim" to "slimCurrent". - Go into the URL Rewrite for the
v1vdir and remove the "slimCurrent" rule. 1. Do this for all other vN directories. - Edit the
c:\qm\vX\querymodule\public_html\web.configand delete thehttpProtocolsection.