FN-GM Posted July 16, 2013 Posted July 16, 2013 (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 Edited July 16, 2013 by FN-GM
InterwebsGuy Posted July 17, 2013 Posted July 17, 2013 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.
FN-GM Posted July 17, 2013 Author Posted July 17, 2013 Ok thanks, does anyone know how i change the PHP version in IIS? I do have 5.3 installed. Thanks
InterwebsGuy Posted July 17, 2013 Posted July 17, 2013 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.
InterwebsGuy Posted July 18, 2013 Posted July 18, 2013 That's for IIS 7 i am on 8 I have it on IIS8, IRC the latest build of it works with IIS8 without any issues. There is something about it on the website/forums/support.
FN-GM Posted July 18, 2013 Author Posted July 18, 2013 Got it install. I am now on PHP 5.3.24 and its still broken Any ideas please?
InterwebsGuy Posted July 18, 2013 Posted July 18, 2013 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?
FN-GM Posted July 18, 2013 Author Posted July 18, 2013 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.
InterwebsGuy Posted July 18, 2013 Posted July 18, 2013 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.
FN-GM Posted July 22, 2013 Author Posted July 22, 2013 (edited) Thanks anyway. Anyone else got any ideas please? @ZeroHour maybe EDIT: Interestingly enough, FireFox always seems to load images properly. Edited July 22, 2013 by FN-GM
penfold_99 Posted July 23, 2013 Posted July 23, 2013 What does your php error.log file say? Its normal found in C:\windows\temp.
FN-GM Posted July 23, 2013 Author Posted July 23, 2013 There is no file called error.log in that folder. Thanks
penfold_99 Posted July 23, 2013 Posted July 23, 2013 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.
penfold_99 Posted July 23, 2013 Posted July 23, 2013 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.
FN-GM Posted July 24, 2013 Author Posted July 24, 2013 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.
InterwebsGuy Posted July 25, 2013 Posted July 25, 2013 (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 July 25, 2013 by InterwebsGuy
FN-GM Posted July 25, 2013 Author Posted July 25, 2013 Set memory, upload to 512 and the IIS settings that @penfold_99 said and its still happening
InterwebsGuy Posted July 25, 2013 Posted July 25, 2013 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.
FN-GM Posted July 25, 2013 Author Posted July 25, 2013 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.
InterwebsGuy Posted July 25, 2013 Posted July 25, 2013 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?
FN-GM Posted July 25, 2013 Author Posted July 25, 2013 zlib.output_compression = Off Only got moodle on the box. I dont think i have any IIS compression. THanks
InterwebsGuy Posted July 25, 2013 Posted July 25, 2013 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. 1
FN-GM Posted September 23, 2013 Author Posted September 23, 2013 Im still stuck on this if someone else has any ideas please?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now