Installation issues on remote windows server

edited April 2011 in Installation
I've been building a site using my local wamp server and haven't had any trouble moving sites to a linux server but now am having to move one to a windows server. Yikes!

It's a windows 2003 server with IIS 6, php 5.x and has ISAPI Rewrite 3 installed. I've looked through the threads here and found where someone was getting the same, 'Cannot modify header information' error I'm getting but none of the fixes mentioned have worked.

I've cleared site session cache, rewrite IS working. FCPATH echo's out as:

C:\Inetpub\vhosts\arkansasstone.com\subdomains\new\httpdocs\

This is installed as a subdomain but has its own directory structure so it's NOT a subdirectory of the main site. You access it via browser as you would any subdomain - in this case - new.arkansasstone.com.

(By the way, if any of you are struggling to get ISAPI Rewrite 3 to work on a windows server and the server has Plesk installed - and if you have access to windows user management or IIS Manager, you might need to go in to IIS and add the user - IIS_WPG and set read and execute privileges for that user to the whole site. For some reason that user got added unbeknown to me. I saw that user on another site that rewrite was working for and added the user to this site and rewrite just started working.)

Here's the error I'm getting on every page:
Notice: Undefined offset: -1 in C:\Inetpub\vhosts\arkansasstone.com\subdomains\new\httpdocs\fuel\modules\fuel\config\fuel_constants.php on line 13 A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\arkansasstone.com\subdomains\new\httpdocs\fuel\modules\fuel\config\fuel_constants.php:13) Filename: libraries/Session.php Line Number: 672 A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\arkansasstone.com\subdomains\new\httpdocs\fuel\modules\fuel\config\fuel_constants.php:13) Filename: libraries/Session.php Line Number: 672
Could it have something to do with FCPATH containing backslashes rather than the typical linux forward slashes?

Comments

  • edited April 2011
    I was able to fix this by changing line 13 in fuel\modules\fuel\config\fuel_constants.php from this:
    define('WEB_FOLDER', $_FUEL_SEGS[count($_FUEL_SEGS)-2]);
    to this:
    define('WEB_FOLDER', $_FUEL_SEGS[count($_FUEL_SEGS)-1]);
    I've tested the site and all is well including the CMS. It also didn't seem to cause any problems with my local install which is WAMP on a windows 7 box. I'm sure there is some underlying issue that I'm missing and this may be just a band-aid but this is working without hitch.
Sign In or Register to comment.