sleepingbird.net Home since May.11 2003
Copyright sleepingbird, 1993- All rights reserved.
Linux Server

TOP > Linux Server > Webmail > 添付ファイルのサイズ変更

添付ファイルのサイズ変更

 添付ファイルサイズの変更は、/etc/php.ini の次の部分を変更して、apache を再起動する。

# vi /etc/php.ini

; Maximum allowed size for uploaded files.
upload_max_filesize = 25M
memory_limit = 60M
post_max_size = 60M

# /etc/rc.d/init.d/apache2 restart
 併せて、postfix の main.cf でもファイルサイズを拡張して再起動しておく。
# vi /etc/postfix/main.cf

; Mail box size
mailbox_size_limit = 0
message_size_limit = 25600000

# /etc/rc.d/init.d/postfix reload
 mailbox_size_limit に 0 を指定すると無制限となる。
 一通あたりサイズは、25600000 / 1024 = 25000 で約25Mbyte となる。