Solved

Squirrel Mail

Posted on 2004-03-28
2
1,040 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Issue to mail 11 72
App holding yum lock unable to update my rpm package 1 36
CentOS create a user with predefined MD5 Hashed password 17 69
linux redhat 7.2 10 44
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

895 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

17 Experts available now in Live!

Get 1:1 Help Now