Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I upload a large (>245 Mb) file to my MediaWiki wiki (using Upload file, same as for images), I see:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

This is a .avi file. I have set this as a permissible file type in LocalSettings.php.

How can I solve this? Is there a time out for uploading files (though this takes less than 10 seconds)?

Increasing the memory to 1024M did not work:

ini_set( 'memory_limit', '1024M' );

share|improve this question
What do your webserver logs say? – Cakemox Feb 17 '11 at 13:03
up vote 4 down vote accepted

check upload_max_filesize in /etc/php.ini

share|improve this answer
@B14D3 - ironically, I posted the same solution at the same time as you. Thanks, I will accept your answer. – Wikis Feb 17 '11 at 14:39
@Wikis Actually, you beat him by 24 seconds :) – squillman Feb 17 '11 at 15:19
@Wikis Hover your mouse over the "answered X hours/days ago" text on a post and it shows the exact time the post was entered in the database. – squillman Feb 17 '11 at 15:22
@squillman - and again I've learnt something - thanks! – Wikis Feb 17 '11 at 16:45
:D good one :D same time ... I'm glad I could help :D – B14D3 Feb 18 '11 at 11:26

Solved - it appears that this was in php.ini:

upload_max_filesize = 2M
share|improve this answer

check out the directory to which these image files are being uploaded has enough permissions, i dont suspect its timeout problem , the file size is not so big , its something to do with script which is handling this upload and writing to server in some dire

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.