mindspin311 Posted February 11, 2008 Share Posted February 11, 2008 I'm getting the Internal Server Error at 20 seconds every time!!! Doesn't matter if I throw in code that will take 30 seconds or 90 seconds to do. If it takes less than 20 seconds, it will always work. If I output text while my script is executing, it just stops after 20 seconds instead of showing the error. The memory used varies every time, but is always less than the 128MB allowed by omnis.com where I'm hosting on a UNIX server. Plus the largest size I tried to do is 2000 for an array of INTS O(n^2) so 16mb+. It also says I get a max execution time of 180 seconds on php settings. I have no idea why this is happening. I don't know if I can view the server logs (since i'm using omnis.com to host my site) to see what's going on when this happens, but since it's always 20 seconds, I'm thinking it has nothing to do with the code. Anyone have any ideas?? I'm gonna contact them when they open at 6am PST, but if I can solve it or at least know what's happening, it would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/90473-500-internal-server-error-at-20-seconds/ Share on other sites More sharing options...
s0c0 Posted February 11, 2008 Share Posted February 11, 2008 php.ini setting on max script execution time perhaps. do you have the ability to at least try modifying this through the php ini set function (i forget the exact name). Quote Link to comment https://forums.phpfreaks.com/topic/90473-500-internal-server-error-at-20-seconds/#findComment-463836 Share on other sites More sharing options...
mindspin311 Posted February 11, 2008 Author Share Posted February 11, 2008 Well I'm able to change it from 180 to 300, but it gets reset back to 180 next time I reload the page. I display max_execution_time, set it, and display it and it always shows 180 then 300 no matter how many times I do it. Is it supposed to reset when I'm done running a script on a page? Also, it's taking forever to fill up a database right now (like a second for each entry) so I haven't been able to try it for large sizes and see if it times out at 20 seconds. I'll try it if this site ever gets stuff working correctly. Quote Link to comment https://forums.phpfreaks.com/topic/90473-500-internal-server-error-at-20-seconds/#findComment-463841 Share on other sites More sharing options...
mindspin311 Posted February 11, 2008 Author Share Posted February 11, 2008 Nope.. Just tried it and it times out at 20 seconds. I'm doubting that's the problem though since max execution time was 180 seconds before I changed it. Quote Link to comment https://forums.phpfreaks.com/topic/90473-500-internal-server-error-at-20-seconds/#findComment-463843 Share on other sites More sharing options...
mindspin311 Posted February 11, 2008 Author Share Posted February 11, 2008 I tried a few others that had to do with time and none of them were 20. I also just made a double for loop to a million and waited to see how long until it timed out.. surprise surprise.. 20 seconds.. Quote Link to comment https://forums.phpfreaks.com/topic/90473-500-internal-server-error-at-20-seconds/#findComment-463845 Share on other sites More sharing options...
mindspin311 Posted February 11, 2008 Author Share Posted February 11, 2008 Just for the heck of it.. (in case it's because of my browser settings or something) I tried it on a different browser and a different laptop and still... 20 SECONDS!! Quote Link to comment https://forums.phpfreaks.com/topic/90473-500-internal-server-error-at-20-seconds/#findComment-463848 Share on other sites More sharing options...
PFMaBiSmAd Posted February 11, 2008 Share Posted February 11, 2008 Check your web server log to find out what is being reported as the cause of the error. Quote Link to comment https://forums.phpfreaks.com/topic/90473-500-internal-server-error-at-20-seconds/#findComment-463939 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.