CodeIgniter Forums
CodeIgniter won't run on Windows IIS - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CodeIgniter won't run on Windows IIS (/showthread.php?tid=14593)



CodeIgniter won't run on Windows IIS - El Forum - 01-08-2009

[eluser]meigwilym[/eluser]
I've used CI many times on LAMP servers in the past with little hassle. But I've got PHP 5.2.5 on IIS 6.0 and CI will not load.

I've set the query string to PATH_INFO, and it gets the segments with no problems (or loads the default controller). But the script stops at line ~198 in system/codeigniter/CodeIgniter.php

Code:
$CI = new $class();

I can echo some text before this line, but not after it. I'm not a OO expert so I'm unsure as to what could be causing the problem.

Any advice?

Thanks,

Mei


CodeIgniter won't run on Windows IIS - El Forum - 01-10-2009

[eluser]jtkendall[/eluser]
Hi meigwilym,

Have you tried adding ini_set('display_errors', true); before the error_reporting(E_ALL); line in index.php? Are you getting a specific error, or is the page just dying? A exact error message would help in figuring out the issue.


CodeIgniter won't run on Windows IIS - El Forum - 01-10-2009

[eluser]jalalski[/eluser]
Try changing the ci/libraries/Log.php, line 46 to:

Code:
if ( ! is_dir($this->log_path) /*OR ! is_really_writable($this->log_path)*/)

and see if that makes a difference.

Let us know if it does and I'll file a bug report.