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.

Prerequisites


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:

image

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

image

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

image

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

image

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

image

the Add roles and features window will pop-up:

image

Click on Add Features then click Next.

image

Click Next .

image

click Next

image

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

image

Click on Install in the confirmation window.

image

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 https://www.microsoft.com/web/downloads/platform.aspx download and execute the wpiluancher.exe file . select the default settings during the installation until you get to this window:

image

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.

image

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

image

Click on Install after you have added both.

Select a password for your MySQL server:

image

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

image

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

image

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 https://owncloud.org/install 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:

image

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!

Conclusion

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.

Share the knowledge...Share on FacebookTweet about this on TwitterShare on LinkedInShare on Google+Share on RedditEmail this to someonePrint this page

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 forevergeeks.com 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.

  • carlo

    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

    • 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?

  • joking611

    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.

    • @joking611:disqus can you use XAMPP https://www.apachefriends.org/index.html to run it? I think Windows server support was removed recently from ownCloud.

      • joking611

        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”.