Installing Modx on IIS 6, Server 2003
I just installed Modx 1.0.0 on IIS 6.0, windows Server 2003 and had a few glitches. I’ve done several 1.0.0 installs under UNIX and they went without a hitch. These are just my notes for reference, not a “how-to”.
Prior to starting the install make sure the assets/cache/ Folder for the site has IUSR_MACHINE permissions or you will get errors like “failed to open stream permission denied” for siteCache.idx.php and the install will fail.
Make sure you enable mbstring (extension=php_mbstring.dll) in your PHP.ini or you will get an error from Ajax Search of call to undefined function, e.g. “Fatal error: Call to undefined function mb_strlen() in C:/directory/assets/snippets/ajaxSearch/classes/ajaxSearch.class.inc.php on line 1090″. After you make the change, restart IIS and look for mbstring in the output of your PHP info page.
Following is another Ajax Search issue that I have not resolved yet. When you go to a page in the search results, you get:
« MODx Parse Error »MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: preg_replace() [function.preg-replace]: Compilation failed: lookbehind assertion is not fixed length at offset 11
Error type/ Nr.: Warning - 2
File: C:\location\manager\includes\document.parser.class.inc.php(746) : eval()’d code
Line: 120
This is repeatable on my CentOS box and now my windows box too. The issue on CentOS is PHP was compiled against a buggy version of PCRE- but- the version used in that web server is held hostage by Parallels and their poorly supported control panel Plesk, which is not upgradable and is not planned to be upgraded for some time yet. On the windows box, updating PHP is a little easier. My info.php shows PHP is compiled with PCRE Library Version 6.6 06-Feb-2006. So the issue is not with Modx or the Ajax Search- it is with the PCRE Library. This should be resolved on windows by upgrading PHP. On the Unix box, I did a workaround and simply turn off the ajax search results highlighting.