Windows server: Moodle 404 errors

Windows server: Moodle 404 errors

by Andrew Lorbach -
Number of replies: 12

Hello,

Having some issues with our moodle setup at the moment. Running server 2008, MySQL 2005 database fastcgi and IIS 7.0.

Basically it's working perfectly except for the following errors:

When trying to upload a .csv file users I receive a 404 file or directory not found error.

Also when an existing user tries to enrol to a course, the same 404 error appears, but if that user presses back and then clicks enrol again. The page loads fine.

I'm wondering if it's an issue in the php config or something else?

Any help is much appreciated.

Thanks.

Average of ratings: -
In reply to Andrew Lorbach

Re: Windows server: Moodle 404 errors

by Luis de Vasconcelos -

What directory can't it find? Probably Moodledata or one of its sub-folders.

It might be a permissions thing. Make sure that the IIS process has propper write access to your Moodledata folder.

In reply to Luis de Vasconcelos

Re: Windows server: Moodle 404 errors

by Andrew Lorbach -

Hello, thanks for the reply.

I've fixed the user uploads problem, that was just simply due to a misconfigured .csv file.

The only issues I'm encountering now are 404 errors to do with enrolling in a course. (If a user clicks enrol, then are given the 404 page, if they click back and 'yes' again, the course loads fine).

When users try and upload a file that is too big they are given a 404 page also, this may be a normal response for moodle though, I am not sure.

IIS has all the permissions to the moodle directory, everything else seems to work with no issues except the things mentioned above.

It doesn't seem to mention a directory that is missing the address it goes to is: "http://moodle2/course/view.php", and just says this:

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

enrol.php?id=24&confirm=1 is the link that users go to when they click yes to enrol in a course.

In reply to Andrew Lorbach

Re: Windows server: Moodle 404 errors

by Andrew Lorbach -

So in essence, when I click enrol, instead of going redirecting to the course ID number.

e.g http://moodle2/course/view.php?id=28

it just browses to:

http://moodle2/course/view.php

And then spits out a cannot find error.

I hope this is a simple fix. Cheers guys.

In reply to Andrew Lorbach

Re: Windows server: Moodle 404 errors

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Have you tried changing your slash arguments setting in the admin area?
In reply to Andrew Lorbach

Re: Windows server: Moodle 404 errors

by Luis de Vasconcelos -

The upload_max_filesize setting in your php.ini file is used to control the maximum file sizes that PHP will allow you to upload.

And if you experience timeouts or memory problems when uploading really big files try increasing the values of these settings in php.ini:

max_execution_time
memory_limit

And ActivityTimeout and RequestTimeout in your FastCGI config file (fcgiext.ini).

In reply to Luis de Vasconcelos

Re: Windows server: Moodle 404 errors

by Andrew Lorbach -

Slashargument setting doesn't seem to effect it.

The only serious issue is the 404 error at the moment, when enrolling in a class.

In reply to Andrew Lorbach

Re: Windows server: Moodle 404 errors

by Sarah Long -

Hi

I have the same problem but it might be the misconfigured CSV file. PLEASE can you tell me what the misconfiguration was in your case so I can see if my error is the same - or can anyone else help?

We did a bulk upload a few months ago from the same location and it was fine.

the path is inetpub>wwwrootmoodle>admin>upload>user.php

In reply to Sarah Long

Re: Windows server: Moodle 404 errors

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Aha! Are you who I think you might be? In which case - I am "upping" your query smileyour csv file has been fixed (in another place) but you are still getting a 404 so we are wondering what else it could be? I presume you mean ......admin>uploaduser.php?
In reply to Mary Cooch

Re: Windows server: Moodle 404 errors

by Sarah Long -

The path I have given is the path it gives me, and as I say, this worked for the previous upload.

The csv issue is fixed, (thanks Mary) but we still cant upload bulk users as we get a 404 error.

If we load manually we cannot disable the email as the system still requires that an email is sent (which was fine for the previous upload, but we have run out of addresses and the two lower years dont really need them)

We also get a 500 error when a user logs out (just been told this today)

Anyone help?

In reply to Sarah Long

Re: Windows server: Moodle 404 errors

by Andrew Lorbach -
Still having issues with a redirection error upon students enrolling. Would like this sorted as it is the only issue we are facing with our moodle install. Any ideas?
In reply to Andrew Lorbach

Re: Windows server: Moodle 404 errors

by Luis de Vasconcelos -

It might be a URL rewriting problem. You might need to enable URL rewriting in IIS7.

http://learn.iis.net/page.aspx/734/url-rewrite-module/
http://improve.dk/blog/2009/10/14/how-to-do-url-rewriting-on-iis-7-properly

Also try the rewriting rule described in:
http://docs.moodle.org/en/Installation_FAQ#Uploaded_files_give_.22File_not_found.22

Are you using any SCORM in your courses?

In reply to Luis de Vasconcelos

Re: Windows server: Moodle 404 errors

by Bob Smith -

Hello,

Sorry to dig up a slightly older thread, but incase you hadn't seen my previous post:

http://moodle.org/mod/forum/discuss.php?d=144597#p635034

This will resolve 404 errors occuring when you should see a moodle error page (such as when you upload a misconfigured CSV file, which, funilly enough was the problem that kicked me into gear to solve the issue)

Thanks,

Bob