General Windows settings
Assign the server a static IP address
Log in as a user who is a member of the local administrator group
Install the IIS Web Server role
- Open Server Manager
- Click "Add Roles"
- Click Next
- Check the box next to "Web Server (IIS)" then click Next
- Click Next
- Check the box next to "CGI" only, leaving the other prexisting checked boxes alone, then click Next
- Click Install
- Click Close
Install 7-zip
Download the 64-bit version from (http://www.7-zip.org/download.html)
- Run setup
- Click Next
- Accept the agreement then click Next
- Change the install directory to c:\7-zip then click OK
- Click Next
- Click Install
- Click Finish
Install PHP
Download from (http://windows.php.net/download)
- Download the installer (.MSI) version of PHP VC9 x86 Non Thread Safe (example: php-5.3.2-nts-Win32-VC9-x86). There is no x64 version yet.
- Run the PHP installer
- Click Next
- Accept the agreement then click Next
- Change the install directory to "c:\php" then click Next
- Choose "IIS FastCGI" then click Next
- The "Items to Install" default selections are fine then click Next
- Click Install.
- Click Finish.
- Open the c:\php\php.ini file in notepad.exe. At a minimum, uncomment and set the following values:
Note: Adjust the max sizes and limits suitable for your server hardware configuration.- short_open_tag = on
- memory_limit = 2000M
- post_max_size = 1000M
- upload_max_filesize = 1000M
- max_file_uploads = 5000
- SMTP = "mail server name"
- smtp_port = 25
For the following values, all of them should be set correctly by default. However, double-check and make sure there is at least one uncommented entry for each of these values:
- default_socket_timeout = 60
- upload_tmp_dir = "c:\windows\temp"
- session.save_path = "c:\windows\temp"
- error_log = "c:\windows\temp\php-errors.log"
- cgi.force_redirect = 0
- fastcgi.impersonate = 1
- fastcgi.logging = 0
- extension_dir = "c:\php\ext"
- Save and close the file.
Install the php_ldap.dll PHP extension
- Download the (http://windows.php.net/downloads/releases/php-5.3.2-nts-Win32-VC9-x86.zip) file or similar release.
- Extract the files to a temporary folder.
- Copy the php_ldap.dll file to the c:\php\ext folder.
- Open the c:\php\php.ini file in notepad.exe and add the following text at the end:
[PHP_LDAP]
extension=php_ldap.dll
- Save and close the file.
Verify IIS settings with PHP FastCGI
- Open the Internet Information Services (IIS) Manager.
- With the server name selected in the left pane, double-click the entry in the right pane for "FastCGI Settings".
- Verify the "Full Path" is set to "c:\php\php-cgi.exe". Click OK.
Verify IIS settings for index.php as a default document
- Open the Internet Information Services (IIS) Manager.
- In the left pane, navigate to servername -> Sites -> Default Web Site
- Open "Default Document" in the right pane.
- Verify "index.php" appears in the list. If not, add it.
Test PHP functionality
- Open notepad.exe.
- Type the following code:
<?php phpinfo(); ?>
- Save the file as test.php in the c:\inetpub\wwwroot folder.
- Open a web browser.
- Navigate to http://servername/test.php
- Verify the "PHP Version" page appears.
Install MySQL
Download from (http://www.mysql.com/downloads/mysql)
- Download the latest version of MySQL Community Server. There are several variants. Download the mysql-essential x64 version.
- Run the MySQL installer.
- Click Next.
- Choose "Custom". Click Next.
- Change the install folder location to c:\mysql. Click OK. Click Next.
- Click Install.
- Click Next.
- Click Next.
- Leave the "Configure the MySQL Server now" box checked. Uncheck the "Register the MySQL Server now" box, if there is one. Click Finish.
- Click Next.
- Choose "Detailed Configuration". Click Next.
- Choose "Developer Machine". Click Next.
- Choose "Non-Transactional Database Only". Click Next.
- Choose "Manual Setting". Change level of concurrent connections to 100. Click Next.
- Check the box for "Enable TCP/IP Networking". Choose 3306 for the port number. Check the box next to "Add firewall exception for this port". Uncheck the box for "Enable Strict Mode". Click Next.
- Choose "Standard Character Set". Click Next.
- Check the box for "Install As Windows Service". The default service name is fine. Check the box for "Launch the MySQL Server automatically". Check the box for "Include Bin Directory in Windows PATH". Click Next.
- Check the box for "Modify Security Settings". Type a password twice. Leave the other boxes unchecked. Click Next.
- Click Execute.
- Click Finish.
Install PHPMyAdmin (optional)
Download from (http://www.phpmyadmin.net/home_page/downloads.php)
- Extract the zip file contents to the c:\inetpub\wwwroot\phpmyadmin folder.
- Using WordPad (not Notepad), open config.sample.inc.php file from C:\inetpub\wwwroot\phpmyadmin
- Add or edit the following variables:
$cfg['blowfish_secret'] = '84jfdfg5dmf40jdojf8949jf984'; # you can use any random string you want for the secret
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
- Save and rename the file as config.inc.php.
- Open Internet Explorer and navigate to http://(server IP)/phpmyadmin
- Login with "root" as the username and the same password used for the MySQL installation.
Create a database for ResourceSpace
- Open Internet Explorer and navigate to http://(server IP)/phpmyadmin
- Login with "root" as the username and the same password used for the MySQL installation.
- On the home page, click in the box underneath "Create new database". Type "resourcespace". The collation box can usually be left as is (saying "collation") or you can specify UTF8_general_ci collation. Click Create.
- On the following page, verify the database was successfully created.
Install ResourceSpace
Check out using SVN or GIT following the instructions at (http://www.resourcespace.com/svn)
Do this into the c:\inetpub\wwwroot\resourcespace folder.
Configure IIS for ResourceSpace
- Open the Internet Information Services (IIS) Manager.
- Navigate to servername - Application Pools on left.
- Click "Add Application Pool".
- Give it a name of "ResourceSpace". Leave the other settings as they are. Click OK.
- Right-click the new ResourceSpace pool name and choose "Advanced Settings...".
- Click the drop-down menu next to "Enable 32-Bit Applications" and select "True".
- Click the box to the right of "Identity" then click the small box with "...".
- Click the drop-down menu under "Built-in account" and choose "LocalSystem". Click OK.
- Click OK.
- Navigate to servername\Sites\Default Web Site
- Right-click the "resourcespace" folder and choose "Add Application..."
- Type "ResourceSpace" in the box under "Alias". Click Select.
- Click the drop-down menu under "Application pool" and choose "ResourceSpace". Click OK.
- Type "c:\inetpub\wwwroot\resourcespace" in the box under "Physical path". Click OK.
Install ImageMagick
Download from (http://www.imagemagick.org/download/binaries)
- For a 64-bit Windows install, download the ImageMagick-6.6.1-10-Q16-windows-x64-static version or similar (build may be newer).
- Run setup.
- Click Next.
- Accept the agreement. Click Next.
- Click Next.
- Change the install directory to c:\imagemagick (all lowercase). Click Next.
- Click Next.
- Click Next.
- Click Install.
- Click Next.
- Uncheck the box next to "View index.html". Click Finish.
Install Ghostscript
Download the 64-bit executable installer from (http://code.google.com/p/ghostscript/downloads/list)
- Open the installer file.
- Click Setup.
- Change the "Install to directory" box to "c:\gs". Click Install.
- Navigate to the C:\gsgsX.XXbin folder.
- Copy and paste the the gswin32c.exe into the same folder to make a duplicate. It should also have a new name (with -copy or similar).
- Rename the newly created .EXE file to gs.exe.
Install FFmpeg
Download from (https://github.com/BtbN/FFmpeg-Builds)
- Build the x64 version using your preferred licence variant.
- Extract the contents of the resulting FFmpeg zip file to c:\ffmpeg
Install EXIFTOOL
Download from (http://www.sno.phy.queensu.ca/~phil/exiftool)
- Download the "Windows Executeable" zip package.
- Open the exiftool zip archive file.
- Extract the contents to the c:\exiftool folder.
- Navigate to the c:\exiftool folder.
- Rename "exiftool(-k).exe" to "exiftool.exe"
Edit folder permissions for ResourceSpace setup
- Navigate to the C\:inetpub\wwwroot\resourcespace folder.
- Right-click the "filestore" folder and choose "Properties".
- Click the "Security" tab.
- Click Edit.
- Click Add.
- Click Locations.
- Navigate to and select the local machine name. Click OK.
- Type "Everyone" in the box under "Enter the object names to select". Click OK.
- With the "Everyone" group selected in the "Groups or user names" section, check the box under the "Allow" column next to "Modify". Click OK.
- Click OK.
- Right-click the "include" folder and choose "Properties".
- Click the "Security" tab.
- Click Edit.
- Click Add.
- Click Locations.
- Navigate to and select the local machine name. Click OK.
- Type "Everyone" in the box under "Enter the object names to select". Click OK.
- With the "Everyone" group selected in the "Groups or user names" section, check the box under the "Allow" column next to "Modify". Click OK.
- Click OK.
Configure initial ResourceSpace settings
- Open Internet Explorer
- Navigate to http://127.0.0.1/resourcespace/
- Enter the following parameters:
- MySQL Server -------> 127.0.0.1
- MySQL Username -------> root
- MySQL Password -------> same as MySQL installation
- MySQL Database -------> resourcespace
- MySQL Binary Path -------> "make blank"
- Application Name -------> "Name of Company"
- Base URL -------> http://(name-of-server)/resourcespace
- Admin username -------> first user of the system (part of "Super Admins" user group)
- Admin password -------> password for the above user (cannot be empty and needs to respect the password policy which is set by default)
- Email from address -------> valid-address@domainname.com
- Email notify -------> valid-address@domainname.com
- Spider Password -------> leave as is or change to anything you like
- Scramble Key -------> leave as is or change to anything you like
- Secure (https) mode -------> leave unchecked
Note: Be sure to use a forward slash (/) for the following directory paths, not backslashes ():
- Imagemagick Path -------> c:/imagemagick
- Ghostscript Path -------> c:/gs/gsx.xx/bin (specify the actual folder name for the version)
- FFMpeg Path -------> c:/ffmpeg/bin
- Exiftool Path -------> c:/exiftool
- AntiWord Path -------> leave blank
- PDFtotext Path -------> leave blank
- Click Begin Installation button.
Final configuration steps
- Open Internet Explorer.
- Navigate to http://servername/resourcespace
- Login with "admin" as the username and "admin" as the password.
- Once everything is verified to be working remove the "everyone" group from modify/write access list for the C:\inetpub\wwwroot\resourcespace\include folder.