Install ownCloud in a Windows Server

ownCloud was developed with Linux and Unix based operating systems in mind so if you are looking to implement ownCloud in a production environment you probably should install it in a Linux server. But installing ownCloud in a Windows server is certainly possible now that PHP is supported in all Windows servers starting from Windows server 2008.In this tutorial we will install ownCloud in a Windows 2016 server.


In order to finish this guide successfully you need the following:

  1. A Windows Server 2008 or later installed and fully updated
  2. IIS with CGI support enabled on the server
  3. MySQL
  4. PHP 5.4 or higher

Installing IIS

Login to your Windows server then click on Server Manager in your Start menu, and then click on Add roles and features:


The Add roles and features wizard will come up. click on Next:


On the “Installation Type” Window choose “Role-based or feature-based installation:


Click on Next. on the “Server Selection” screen choose your server from the server pool:


click on Next. on the “Select Server Role” window, check the Web Server (IIS ) role:


the Add roles and features window will pop-up:


Click on Add Features then click Next.


Click Next .


click Next


On the “Role services” window make sure CGI is check under the Application Development group. after you do that, click Next.


Click on Install in the confirmation window.


IIS with CGI support should be now installed in your server.

Installing PHP and MySQL

The easiest way to install PHP and MySQL at once in your Windows server is using the Microsoft Web Platform installer found in this URL download and execute the wpiluancher.exe file . select the default settings during the installation until you get to this window:


On that Window click on Products then Frameworks and choose the latest PHP version from the list. the latest PHP version at the time of this writing is version 7.0.


Click on Add then click on Database and add MySQL Windows as well:


Click on Install after you have added both.

Select a password for your MySQL server:


click on I Accept in the following window. and the installation will begin.


MySQL and PHP should be installed on your server now.

Note: if you get any error saying that PHP manager cannot be installed. make sure .NET 3.5 with HTTP Activation is installed on your server. somehow PHP manager needs that.

Create MySQL Database

Login to your MySQL server using CMD. open cmd on your server, and switch to this path cd “C:Program FilesMySQLMySQL Server 5.1bin” then login to your MySQL server

mysql -u root -p


To create the ownCloud database type this:

create database owncloud ;

then type exit. you can also create create a different user to use with your ownCloud database if you don’t want to use the root account. see this section Create new user in MySQL if you want to do that.

Installing ownCloud

From your server download the latest ownCloud zip package from this URL unzip it and then move it to your C:inetpubwwwroot web directory. type in the name of your site (e.g. localhost/nameofyoursite ) or the IP address of your server in the browser, and the ownCloud installation wizard should come up:


Enter the username, password, and the data folder location. click on Finish setup after you are done entering that information, and ownCloud should get installed on your Windows server!


Installing ownCloud in a Windows server is a lot more involved than installing it on a Linux server, but is not that hard. I hope you found this guide helpful, and please use the comments if you have any question.

More ownCloud Tutorials

about My name is Nelson Amaya and I’m the author of this website. I created the site in 2009 (under the domain) and I’ve been posting tutorials here ever since. I'm a systems / network administrator and I enjoy solving complex problems and learning as much as I can about new technologies. I write tutorials based on my work experience and other IT stuff I find interesting.

5 thoughts on “Install ownCloud in a Windows Server

  1. carlo says:

    I installed owncloud following your instructions and it seems fine but when I try to reach it via browser I got the message “owncloud server does not support microsoft windows ” do you know why

    1. Nelson Amaya says:

      Carlo, what version of ownCloud did you install? support for ownCloud in a window server is very shaky, I ran through multiple issues when I wrote this tutorial. is there any reason why you can’t use Linux to setup your ownCloud instance?

  2. joking611 says:

    I’ve encountered the same “owncloud server does not support Microsoft windows” error. While a Linux box or a VMWare appliance would be a reasonable alternative, the Windows box is the only server in the DMZ behind a firewall that only have one public IP. Port forwarding to another server would be problematic, as the 443 is already being forwarded to the Windows server. So… a Windows workaround would be helpful. That’s why I was pleased to find a post where someone had apparently done it.

      1. joking611 says:

        I saw that Windows was no longer supported after version 8, but I’ve often seen that “not supported” isn’t always the same thing as “doesn’t work”.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>