thehenrys.net

April 10, 2006

New OS, PHP upload limit..

Filed under: Server Admin — dh @ 11:54 pm

I finally moved away from Fedora and happiily found a new home with CentOS3. I was having trouble uploading attachments with the Squirrelmail. The page would quickly go back to the compose message page when trying to attach larger files. Looked at /etc/php.ini for the usual suspects:

max_execution_time
max_input_time
memory_limit
file_uploads
upload_max_filesize

All of these looked ok. Took a look at /etc/httpd/conf/httpd.conf for something. Still no dice… Then I remembered about /etc/httpd/conf.d/php.conf ! Sure enough, there was the culprit. Made a quick change to LimitRequestBody and restarted apache, everything workie! I bumped LimitRequestBody up pretty high as this is not a busy server. You should adjust according to your needs.

Leave a Reply