This problem is reproducible: installation progresses smoothly through language selection, system check, data folder setup, and database user setup. When the installation moves onto moodle/admin/index.php, however, I get an Error 404 from IIS, and can't progress further. I've experimented a bit with this, and have found the following data: if I remove the provided admin/index.php and create a fresh one, I can access it. I can access a phpinfo() test script in the same directory. If I rename the provided admin/index.php and try to access the renamed file, I can't access it. If I comment out all the contents of the provided admin/index.php file, I can access it.
I've never heard of a web server simply refusing to send a document just because it didn't like the document contents. In my experience, they usually send a list of parse errors or somesuch. I've even tried downloading and extracting a fresh copy, to no avail.
Has anyone encountered something like this before? I'm out of ideas, and getting a little desperate.
Many Thanks,
Bob Robertson
Now that I have Moodle installed and working after a fashion, I have three other problems to worry about. First, none of the images are displaying; this includes static images from the pix folder, not generated ones, so I know that something's up.
Second, accessing <server>/moodle/ isn't enough to get into the site; I have to explicitly access <server>/moodle/index.php. This is probably just an IIS configuration issue, and not much of a problem.
Third, I need to install the GD library and get PHP happy with it. I uncommented the appropriate line in php.ini, but PHP started yelling about how one module was compiled with API=<aNumber> and PHP was compilerd with API=<bNumber>. The numbers look suspiciously like timestamps, so I think that I need to recompile PHP with the right command line options. I'm not quite sure how to do that on a windows machine.
Advice on any of these problems would be greatly appreciated. Needless to say, I'll be researching answers to these. I just wanted to get a status report out as soon as possible.
Many Thanks,
Bob Robertson
Hi Bob,
Getting Windows IIS to deal with index.php pages is, like you said, just a configuration issue. IIS would normally have files like index.htm and index.html in a list that it recognises, and you manually go and add others. You could check out this site, about half way down the page it gives instructions.
As regards the images, that is probably just a case of toggling your slasharguments settings-whatever they are now, change them to the opposite: Administration -> Server -> HTTP
Sorry, but can't help with the php issue.
Matt
I also added index.php to the list of default documents, again to no avail. I went to Control Panel=>Administrative Tools=>Computer Management, then opened the Internet Information Services entry. I right-clicked on "Web Sites", selected Properties, the Documents tab, then clicked "Add" and provided "index.php" to the resulting dialog box. I then spread the change to all conflicting children. I have done this for both the "Web Sites" heading and its "Default Web Site" child. Did I do something wrong?
Many thanks as ever,
Bob Robertson
Hi Bob,
Not that experienced with IIS, so hopefully someone more familiar will row in. I'm just wondering, do you have to re-start your web server for the changes to take effect?
On the images front, if you cannot even browse to them using http, and you are certain that they exist on that filepath, is it possible that IIS does not have read priveleges on the folder?
Finally, what I've seen people do with problems similar to yours is to simply install a complete xampp package and stop IIS completely. This may be an option. Alternatively, it may be worth your while checking out the Windows based servers forum.
Matt
-Bob