server error 500 when restoring courses

server error 500 when restoring courses

by Manfred Knabl -
Number of replies: 3

When I try to restore a Moodle 2.6.1 (Ubuntu, Apache, MySQL) course in Moodle 2.9 (IIS und MSSQL) then I allways get a internal server error 500 after a long time of waiting, although the filesizes are only about 10 M.
I also used proper values in the php.ini for max_file_size, max_upload_file_size and max_execution_time, but they didn't solve the problem.

Is it possible to restore a Moodle 2.6 course in Moodle 2.9 or not?

thx Manfred


Average of ratings: -
In reply to Manfred Knabl

Re: server error 500 when restoring courses

by Paul Verrall -

Hi Manfred,

You should be able to restore your 2.6 course backup into 2.9. It sounds to me like you are hitting a timeout somewhere in your software stack elsewhere than the PHP max_execution_time.  

My first guess would be the Apache fcgid modules IdleTimeout (this obviously depends on how you are using PHP with Apache, there are MANY ways). If you have added complications like load balancers this could also be affecting it.

Basically check all your logs (not just PHP) and find out what is timing out.