Microsoft IIS and SQL Server Support

The preferred approach to installing the necessary prerequisites for ownCloud is to use the Microsoft Web Platform Installer (WPI). This free utility can be downloaded from this link, http://www.microsoft.com/web/downloads/platform.aspx.

Configuration

Once downloaded and installed, invoke the WPI. It will look like the following:

../_images/mswpi-1.png

Navigate to the “Products” tab:

../_images/mswpi-2.png

And install the following by selecting “Add” next to the instance.

Server

IIS Recommended Configuration

IIS Static Content

IIS Default Document

IIS Directory Browsing

IIS HTTP Errors

IIS HTTP Redirection

IIS CGI

IIS ISAPI Extensions

IIS ISAPI Filters

IIS Server Side Includes

IIS HTTP Logging

IIS Logging Tools

IIS Request Monitor

IIS Tracing

IIS Custom Logging

IIS Client Certificate Mapping Authentication

IIS URL Authorization

IIS Request Filtering

IIS IP Domain Restrictions

IIS Static Content Compression

IIS Dynamic Content Compression

IIS Management Console

IIS Management Scripts and Tools

IIS Management Service

Frameworks

PHP 5.4.14

Windows Cache Extension 1.3 for PHP 5.4

Database

Microsoft Drivers for PHP v5.4 for SQL Server IIS

Tools

PHP Manager for IIS

Installation

Once these selections have been made, click the install button and allow the web platform installer to lay down the needed code to configure the web server.

Verbs

It is important to enable all verbs in the PHP FastCGI settings in order for the sync to work properly.

In the IIS Management application, double click Handler Mappings.

../_images/mswpi-3.png

Then double-click on the PHP FastCGI Settings.

../_images/mswpi-4.png

Select “Request Restrictions”.

../_images/mswpi-5.png

Navigate to the Verbs tab and verify that “All Verbs” is selected.

../_images/mswpi-6.png

The following error may appear when this value is set and OK is selected.

../_images/mswpi-7.png

The resolution is to put quotes around the exe name as follows.

../_images/mswpi-8.png

When prompted to create a FastCGI application, select Yes.

../_images/mswpi-9.png

Restart the IIS service to make sure all settings are applied.

Install ownCloud

Once the prerequisites have been installed, the system is ready for the ownCloud installation

To install ownCloud simply copy the ownCloud code to the IIS root directory, change the permissions on the folder to make sure that the user that IIS will use for access can indeed access the files.

Data directory

Verify the desired storage directory has proper permissions for the user IIS is using to access. For example, if IIS users anonymous access, the user is “webusr”. Make certain “webusr” has access to the directory or share.

Run ownCloud

At this time, ownCloud is installed. Navigate to the ownCloud web interface in the browser and initialize the instance. Select MSSQL option for the database under the Advanced tab. Provide the location for the database server as well as the login and password for the database.