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 IIS components
- Navigate to the Control Panel -> Programs and Features
- Click "Turn Windows features on or off"
- Click inside the checkbox next to "Internet Information Services", the box should become completely filled, not just checked
- Navigate to Internet Information Services -> World Wide Web Services -> Application Development Features
- Check the box next to CGI then click OK, the IIS components will then be installed
Install 7-zip
Download the 64-bit version from (http://www.7-zip.org/download.html)
- Run setup
- Click Next
- Accept the agreement. 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
All the following values should be set correctly by default, however you should double-check that 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 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"
Verify IIS settings for index.php as a default document
- Open the 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, it should be added if not
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 third-party SMTP server (optional)
Windows 7 no longer includes an SMTP service that can be optionally installed. A third-party SMTP server program needs to be installed if you are going to configure ResourceSpace with sending email. Here are several free options:
- hMailServer (http://www.hmailserver.com)
- Free SMTP Server (http://www.softstack.com/freesmtp.html)
- AfterLogic XMail Server Lite (http://www.afterlogic.com/community-editions/mailsuite-lite) - requires IIS and ASP.NET to be installed
Install MySQL
Download from (http://www.mysql.com/downloads/mysql)
- Download the latest version of MySQL Community Server, there are several variants so download the mysql-essential x64 version
- Run the MySQL installer
- Click Next
- Choose "Custom" then click Next
- Change the install folder location to c:\mysql, OK then 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" then click Next
- Choose "Developer Machine" then click Next
- Choose "Non-Transactional Database Only" then click Next
- Choose "Manual Setting" and set the 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
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
Following the instructions here to check out ResourceSpace.
Configure IIS for ResourceSpace
- Open the 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 servernameSitesDefault Web Site esourcespace
- 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 esourcespace" in the box under "Physical path". Click OK.
Install ImageMagick
Download from (http://www.imagemagick.org/script/download.php#windows)
- For a 64-bit Windows install, download the latest ImageMagick-7.0.7-31-Q16-x64-dll.exe 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:\gs\gsX.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 (http://ffmpeg.arrozcru.org/autobuilds)
- Download the static x64 version.
- Extract the contents of the FFmpeg 7z 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.