Moolde 1.8 Max File Upload

Moolde 1.8 Max File Upload

by scott waldman -
Number of replies: 7

OK. I changed the php.ini file on my server. For both the php info via Moodle and a straight php info file the Max file upload is 16MB This is what I want. Under security site policies I changed the Max uploaded file size to 16777216. Yet still, when I add a course the Max file upload is 2MB. How can I change this? Do I need to add the newly modified php.ini to every folder within my Moodle directory? Is there a script to run to take care of this?

Average of ratings: -
In reply to scott waldman

Re: Moolde 1.8 Max File Upload

by Just H -
Hi Scott

Do I need to add the newly modified php.ini to every folder within my Moodle directory?

Depends on what version of PHP you are running (and not sure, but maybe server set up too) e.g. when I was running PHP 4 I had to have one in every directory that had a PHP file in it. After switching to PHP 5 just need the one.

Is there a script to run to take care of this?

If that is the issue, then yes smile Head to here and checkout tips 1-3 under "using PHP". Used them ever since I started with Moodle and works a treat.

Regards
H
In reply to Just H

Re: Moolde 1.8 Max File Upload

by scott waldman -
Harry-

That was it. It worked! My pho was version 4.x and your suggestion with php populate script worked. Thanks.
In reply to scott waldman

Re: Moolde 1.8 Max File Upload

by Wayne Vaughn -
I am using Moodle 1.8 PHP 5.  I changed the settings listed in this thread, and seemed to work fine.  I had to rebuild config.php, so I renamed it to config.php.old and reran install.php.  the settings and paths i needed to change changed.  Everything except my upload file size is now 8 bytes.  These settings in all of my php.ini files are set as 10M, but when I try to upload a file I get an error and there is a statement that says Max upload is 8 bytes.  Any ideas?
In reply to Wayne Vaughn

Re: Moolde 1.8 Max File Upload

by Luca Bagna -
Hi,
i fixed the problem editing apache.conf in /etc/moodle (I'm using ubuntu 7.04) and setting:
php_value upload_max_filesize XXM
php_value post_max_size XXM
in the appropriate section accordingly with the PHP version used.
Hope this help
Luca
In reply to scott waldman

Re: Moodle 1.8 Max File Upload

by Del Helms -
Fit to be tied!
I am running Mac OS 10.4 with Apache 1.3.33. I installed Marc Liyanage's MySQL and PHP packages. I am unable to change the max_file_upload size via the the php.ini file. I have changed the file parameters to 40MB from 2MB using TextWrangler and I reset Apache after making the changes with no luck.
A couple of questions. 1) Do I need to keep the php.ini-recommended file? 2) Did Mac OS 10.4 come with PHP installed? If so, what version? I am able to view my php info file from within Moodle and it states I am running PHP 5.2.2.
Finally, Apache 1.3.33 does not have a "LimitRequestBody" line. I added the line with a '0' value per Mac OS installation recommedations and reset Apache with no luck.
Any help would be greatly appreciated.

Respectfully,

Del Helms

In reply to scott waldman

php.ini max_file_upload

by Del Helms -
Okay-- I installed Moodle 1.6.5 on another Mac OS X computer and changed the max_file_upload settings within the php.ini file and the changes took on the first attempt. All of the variables (I think)are the same: OS, PHP, MySQL, Apache, php.ini settings; therefore, is it possible that something in Moodle 1.8 is the culprit?
Any help would be greatly appreciated as I am getting ready to dump 1.8 and install 1.65 for a more scalable system.

Thanks in advance,

Del