Solved

Squirrel Mail

Posted on 2004-03-28
2
1,037 Views
Last Modified: 2013-12-15
Hi,

    I have installed Squirrelmail 1.4.0 on Redhat Linux 8.0. It is running fine. But i am not able to attach file more than 100K. How can i increase this file size?

i have already changed, in /etc/php.ini, max upload file  size but still same prob.


Vasanth.
   
0
Comment
Question by:vasanth
2 Comments
 
LVL 2

Accepted Solution

by:
perldog earned 200 total points
ID: 10698260
There are three settings in the php.ini configuration file that may need to be changed.

The values you will need to increase are:

memory_limit
post_max_size
upload_max_filesize

The values can be set in bytes (1,048,576 per MB) or they can be set in MB by appending the value with an "M", ie. 8M.

To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

You should also take into account limits for your MTA software:
- Courier-MTA: showconfig or /etc/courier/sizelimit - default 10MBytes
- Qmail-MTA: a file in /var/qmail/control called databytes. The file contains one line that represents the max size of attachments in bytes.

And if you are using Apache as your HTTP server:

You can restrict maximum file size using [LimitRequestBody] directive

Now, an issue specific to Squirrelmail:

Squirrelmail tries to stop users from submiting attachments bigger than a certain size by using <input type="hidden" name="MAX_FILE_SIZE" value="1000"> html code. You may need to edit one or two php files (start with your_squirrelmail_directory/src/compose.php)

Here is an issue specific to Redhat 8.0 (and newer):   In RedHat 8.0 there is an additional PHP config file, /etc/httpd/conf.d/php.conf, and increasing the number on the line "LimitRequestBody 524288" should solve the issue.

Also, check the max execution time in PHP.INI. Very large attachments may take longer than the 30 seconds allowed. Symptoms may be found by looking at the httpd error log and seeing "httpd in free(): warning: recursive call" yet the httpd does not core fault and die altogether. For a 10 MB file attachment I set execution time to 180 seconds.

I know this is a complex answer but I hope it helps!
0
 

Author Comment

by:vasanth
ID: 10712068
Thank you..


I got it working.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now