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.


More ownCloud Tutorials