[Ilugc] Media WIKI + PHP upload limit

  • From: rajsekar@xxxxxxxxxxxxxxxxx (Rajsekar)
  • Date: Tue Jan 25 20:12:54 2005


I run a Wiki page on my comp (just for fun).
I tried uploading an ogg file (around 4MB).  It said that the file is
empty.  I assumed that this has to with mediawiki and hacked around
include/SpecialUpload.php

I found that it wasn't really mediawiki that was causing trouble.  The size
that it gets from php itself seems to be zero. I checked this by making it
output (as reply) the size it gets.

Now I found that some php variables like upload_max_size, post_max_size,
memory_limit need to be adjusted to take big uploads.  I changed my
conf.d/php.conf (included by httpd.conf) and still am not able to upload
big files.

Can someone help me on this issue?

I have pasted my php.conf

This is my php.conf 
---------------------------------------8<---------------------------------

LoadModule php5_module        lib/apache/libphp5.so

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 9524288
</Files>

AddType application/x-httpd-php .php 
AddType application/x-httpd-php-source .phps 

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

php_value upload_max_size 102400000
php_value post_max_size  102400000
php_value memory_limit   102400000
-------------------------------------------8<------------------------------



-- 
    Rajsekar Manokaran
    IIT Madras

Other related posts: