Solved

Squirrel Mail

Posted on 2004-03-28
2
1,044 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
list of sudo access for date range 5 35
Samba 4, Users Permission, 5 67
exchange, squid, proxy, linux 6 43
Windows 10 linux VM 18 42
Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
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.:
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.

726 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