Mac OS X Server & Upload file max limit configuration?

Mac OS X Server & Upload file max limit configuration?

by John Patten -
Number of replies: 3

Hi All!

I'm attempting to increase my file size upload limit. I followed the links related to LimitRequestBody (I added the line to my httpd.conf file) and changed the php.ini.default page to reflect the new upload_max_filesize and post_max_size. But I'm still only allowed to upload 2MB files.

I'm guessing the Mac OS XServer has it's configuration files in different places than a standard Unix server running Apache and maybe I'm not changing the right php.ini or httpd.conf file.

Anyone running Moodle on OS X server and successfully changed the Upload limitations?

Thank you!

Average of ratings: -
In reply to John Patten

Re: Mac OS X Server & Upload file max limit configuration?

by Russell Myers -
Hey buddy,

What php package are you using and where is the php.ini file located?
Same question for apache...

What OS is it?

I have changed the upload limits successfully on 10.3 and 10.4, with some difficulty at points. However, if you have installed Marc Liyanage's PHP package: http://www.entropy.ch/software/macosx/php/

Then the php.ini file is located in /usr/local/php#/lib/

I would make sure you are editing the right php.ini before looking for another httpd.conf.

Let me know what you find out!

Rusty

P.S. Don't forget to restart!
In reply to Russell Myers

Re: Mac OS X Server & Upload file max limit configuration?

by John Patten -

Thanks Rusty...

I don't do too much editing of the php.ini file, and it dawned on me that I had been editing the "php.ini.default" file instead of the php.ini file. Actually, there was not even a php.ini file in the etc directory, just the "php.ini.default"

Because everything seemed to be working just fine I assumed that the OS X Server was using the php.ini.default file. Wrong! I just copied it and saved it as php.ini, restarted and everything seems to be okay now with an increased max file upload!

Inexperience wink

Thanks!

In reply to John Patten

Re: Mac OS X Server & Upload file max limit configuration?

by Russell Myers -
Hey John,

good deal, glad to hear its working. If you have any other questions feel free to email me, I have been running moodle for a few years on OS X and have fixed quite a few problems. Later

rzm102@psu.edu

Rusty