Instalacion de Owncloud en IIS
Instalacion de Owncloud en IIS
I tried to install OwnCloud on Windows Server 2008 R2 and Windows 7 the last days. Doing this, I ran into much trouble and it was a little
afford to get it working. But now, after the 5th installation, I think, I've got a way, how it is working quite fine and I want to share it with you.
Please keep in mind, that there is a lot of security tuning to do with IIS before going online (use SSL, deactivate week ciphers, change
application pool, ...). But here just a quick and dirty way to get OwnCloud up and running.
I used following prerequisites while writing this:
fresh installation of Windows Server 2008 R2 Standard on a virtual machine (IIS 7.5)
OwnCloud 3.0.2 (but same procedure for 3.0.3, 4.0, 4.0.1, 4.0.2)
PHP 5.4.1+ (VC9 x86 Non Thread Safe (2012-Apr-25 23:01:06)) - http://windows.php.net/download/
MySQL Community Server 5.5.23+ (Windows (x86, 64-bit), MSI Installer)- https://www.mysql.com/downloads/mysql/
7-Zip - http://www.7-zip.org/
Notepad++ - http://notepad-plus-plus.org/
You know how to use a command line (but I'll try to keep everything as simple as possible)
Static Content
Default Document
Directory Browsing
HTTP Errors
HTTP Logging
Request Monitor
Security
Request Filtering
Performance
Management Tools
max_execution_time = 300
memory_limit = 1G
display_errors = On (if everything is working fine after installation, you MUST change this back to Off)
post_max_size = 1G
extension_dir = "ext"
cgi.force_redirect = 0
fastcgi.impersonate = 1
upload_max_filesize = 1G
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
(remember to restart IIS after making changes to php.ini using command-line command iisreset)
Install MySQL as a Windows Service, choose the service name and make it launch automatically
After that enter a password for the root account. Please use a secure one and write it down somewhere.
You get an error message, if the MIME Type is already existing. Otherwise it's been added now
If you like, you can delete all other existing entries (you will not need it) using these commands:
Code: Select all
/-files.
/-files.
/-files.
/-files.
/-files.
Only need in versions before 4.0.2: Open the file C:\inetpub\wwwroot\lib\base.php in an editor and search for "Redirect to
installer if not installed". There is a bug in version 3 and 4 which is leading to endless redirects as long as OwnCloud is not
configured because of the slash before index.php (Windows uses backslashes). In this line, change the first occurance of
'/index.php' to DIRECTORY_SEPARATOR.'index.php'.
It has to look like this:
Code: Select all
Since version 4.0.1: Allow user IURS Read-/Write access to directory C:\inetpub\wwwroot\apps
(Create folder C:\inetpub\wwwroot\data -> only before v4.0.1, add the user IUSR to NTFS directory security and grant him
Read-/Write access.) Outdated since 4.0.1
If you want to store uploaded user content somewhere else than in C:\inetpub\wwwroot\data (which i warmly recommend you to
do!), than create this directory (let's say D:\OwnCloud\data) and grant Read-/Write access to user IUSR
User IUSR doesn't need access to C:\inetpub\wwwroot\config anymore, you can remove it from directory security
If you store uploaded user content somewhere else than in C:\inetpub\wwwroot\data you can remove the user IUSR from there
as well
That's it for now. This is the way it is working for me. Feel free to comment this entry.
Bye,
Stefan
(P.S.: Just realized, that version 3.0.3 has been released while writing this guide. I don't know, what they've changed and this guide is still ok.
But I'll check tomorrow).
Update - 2012-05-04
Checked the differences between 3.0.2 and 3.0.3. It seems, that 3.0.3 is redirecting to HTTPS after logging in. This is a good idea, but isn't
working until you create a HTTPS binding for your website. And - of course - a SSL certificate. Or you have a look at
http://forum.owncloud.org/viewtopic.php?f=3&t=2420