Jump to content

Recommended Posts

Posted (edited)

Hi,

 

We have an IIS 8 server it has PHP 5.4.14 installed. On our moodle site we are getting http 500 errors. I only get them when loading the odd image. It doesn't make the website unusable. Sometimes everything works fine. Looking at the failed request log this is what i am getting. I have done some google but not found much. Does anyone have any thoughts please?

 

Thanks

CGI.PNG

Edited by FN-GM
Posted
Hi,

 

We have an IIS 8 server it has PHP 5.4.14 installed. On our moodle site we are getting http 500 errors. I only get them when loading the odd image. It doesn't make the website unusable. Sometimes everything works fine. Looking at the failed request log this is what i am getting. I have done some google but not found much. Does anyone have any thoughts please?

 

Thanks

I had all sorts of issues with Moodle on PHP 5.4.x - the newer builds have been getting better [of Moodle] but I think there is still a fair bit of PHP 5.4.x incompatibility in it. I have reverted to PHP 5.3.x for now.

Posted
Ok thanks, does anyone know how i change the PHP version in IIS? I do have 5.3 installed.

 

Thanks

 

I have in the past used this extension: PHP Manager for IIS - Home

It makes it a little simpler to manage the PHP INI file, but it also allows you to register/change the PHP version running. Of course you can do it by messing around with other settings directly within IIS, but this extension works pretty well.

Posted
Got it install.

 

I am now on PHP 5.3.24 and its still broken :( Any ideas please?

Eek - probably not then.

 

My other ideas would be: 1) Do you have any URL rewriting going on? I had an issue with SCORM content at one stage, due to an old rewrite rule adjusting the path to the files and 2) The Slash Arguments option in Moodle, Admin->Server->HTTP, have you tried that enabled and disabled?

 

However, re those last two points, if they were the issue, I'd have thought they would be affecting all other images within Moodle. But I guess it can't hurt to throw it out there as a suggestion can it?

Posted

1. Yes got one to redirect to https. I have removed that and i still get it. (i think)

2. Seems to make no difference.

Posted
1. Yes got one to redirect to https. I have removed that and i still get it. (i think)

2. Seems to make no difference.

I think your redirection will probably be okay then, I have a similar one myself. I don't suppose it is trying to load an image from an unsecured connection/location and that image is then being blocked by the browser?

 

Apart from that, I am totally out of ideas buddy.

Posted (edited)

Thanks anyway. Anyone else got any ideas please? @ZeroHour maybe :)

 

EDIT: Interestingly enough, FireFox always seems to load images properly.

Edited by FN-GM
Posted
There is no file called error.log in that folder.

 

Thanks

 

Have a look in you php.ini file and see where the error log is being saved to.

Posted

What is your file upload limit set as?

 

Is could be an issue with the upload limit being greater then the da file size it can server.

 

Have a look at the value Maximum allowed content length in IIS under Request Filtering > Edit Feature Settings: Set 'Maximum allowed content length'

The default value is 28mb, set it to something like 536870912 which is 512mb.

Posted
Just done that, doesn't seem to help. Is it the upload limit in PHP that could be the issue? Sorry about the long reply.
Posted (edited)
Just done that, doesn't seem to help. Is it the upload limit in PHP that could be the issue? Sorry about the long reply.

Yes, that should also match the IIS value.

 

If it were failing to upload due to that limit, that wouldn't really make sense as to why they might display in one browser but not another.

Edited by InterwebsGuy
Posted
Set memory, upload to 512 and the IIS settings that @penfold_99 said and its still happening :(

Can you confirm I understand correctly; an image that is failing to display in one browser displays in another? Because if so that really would rule out server settings I would imagine.

Posted

Not quite. In IE sometimes the images display sometimes they dont. If i refresh different images fail to load. Same in chrome. Firefox seems to work fine every time.

 

I can see in chrome its a 500 error message.

Posted
Not quite. In IE sometimes the images display sometimes they dont. If i refresh different images fail to load. Same in chrome. Firefox seems to work fine every time.

 

I can see in chrome its a 500 error message.

Do you have Zlib compression enabled in the PHP.ini? If you do it might be worth disabling that and seeing if the outcome is any different. Give the IIS service a restart after that to ensure it takes effect. To be honest, I'd be inclined to disable any IIS compression that may be happening too.

 

Do you have anything other than Moodle on your server? If so, any issues with that?

Posted
zlib.output_compression = Off

 

Only got moodle on the box. I dont think i have any IIS compression.

 

THanks

I think IIS has some compression on by default, but IRC zlib compression is often the problematic one.

 

I'm really out of ideas for now, if I think of anything else, I'll let you know.

  • Thanks 1
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...