I have Roundcube setup on IIS 7 with PHP 5.2 via FastCGI on Windows Server 2008 R2. I know this isn't a supported configuration, but I'm hoping I can find some help here.
The only change I had to make beyond the basic installation instructions was to edit where INSTALL_PATH is set to the root directory in the iniset file.
That line now reads:
if (!defined('INSTALL_PATH')) {
define('INSTALL_PATH', 'D:/clients/webmail/');
}
I passed all of the /installer/ tests and removed that folder, but when I try to actually run the package, I get a 501 error. Specifically, the error message reads:
SERVICE CURRENTLY NOT AVAILABLE!
Error No. [501]
The corresponding error from the log file is:
PHP Error: Error loading template for login in D:\clients\webmail\program\include\rcube_template.php on line 375 (GET /)
I then fired up ProcessMonitor (file system tracer utility for all running processes) to find out what was going on behind the scenes and found the following lines before the error is triggered:
1:00:32.7883136 PM php-cgi.exe 3568 CreateFile D:\clients\webmail SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: ***, OpenResult: Opened
1:00:32.7883563 PM php-cgi.exe 3568 QueryDirectory D:\clients\webmail\installer NO SUCH FILE Filter: installer
1:00:32.7883938 PM php-cgi.exe 3568 CloseFile D:\clients\webmail SUCCESS
1:00:32.7885712 PM php-cgi.exe 3568 CreateFile D:\clients\webmail\installer NAME NOT FOUND Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: ***
1:00:32.7886720 PM php-cgi.exe 3568 CreateFile D:\clients\webmail\installer\skins\ PATH NOT FOUND Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: ***
1:00:32.7887407 PM php-cgi.exe 3568 CreateFile D:\clients\webmail\installer\skins\default\ PATH NOT FOUND Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: ***
1:00:32.7888034 PM php-cgi.exe 3568 CreateFile D:\clients\webmail\installer\skins\default\templates\ PATH NOT FOUND Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: ***
1:00:32.7888721 PM php-cgi.exe 3568 CreateFile D:\clients\webmail\installer\skins\default\templates\login.html PATH NOT FOUND Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, Impersonating: ***
As you can see, instead of looking in the D:\clients\webmail\skins\ directory, PHP is looking in the D:\clients\webmail\installer\skins directory. When it can't find the skin there, the error is triggered.
Any ideas on how I can fix this?