|
APPLIES TO:
Parallels Plesk Panel
Resolution By default, PHP limits uploaded files size to 2 MB, and this limit applies to all PHP application including Webmail. Edit the following options in /etc/php.ini file on the Plesk server and set the values that match your needs, for example:
upload_max_filesize = 32M post_max_size = 32M
Restart Apache after the php.ini file modification.
Also, maximum attached file size can be changed in Horde configuration. See "attach_size_limit" option in the /etc/psa-horde/imp/conf.php:
$conf['compose']['attach_size_limit'] = '0';
Zero "attach_size_limit" value means 'no limit'. Additional information Note that memory_limit should be larger than post_max_size. If you insrease PHP parameter post_max_size do not forget to increase parameter memory_limit also.
According to Description of core php.ini directives:
--- post_max_size integer
Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size . When an integer is used, the value is measured in bytes. Shorthand notation, as described in this FAQ, may also be used. If the size of post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty. This can be tracked in various ways, e.g. by passing the $_GET variable to the script processing the data, i.e. <form action="edit.php?processed=1">, and then checking if $_GET['processed'] is set.
Note: PHP allows shortcuts for bit values, including K (kilo), M (mega) and G (giga). PHP will do the conversions automatically if you use any of these. Be careful not to exceed the 32 bit signed integer limit (if you're using 32bit versions) as it will cause your script to fail.
Posted:
12 years ago
|
Fatal error: Maximum execution time of 300 seconds exceeded Problem When importing a sql table in phpMyAdmin i get the following error:
Quote: Fatal error: Maximum execution time of 300 seconds exceeded in \Plesk\admin\htdocs\domains\databases\phpMyAdmin\l ibraries\read_dump.lib.php on line 91 The knowledgebase on this site says you have to change the php.ini, other sites say httpd.conf. I tried both, didn't work. Neither of those files had any entry of '300', so i searched for a ini,conf or php file containing '300' and found that "\Plesk\admin\htdocs\domains\databases\phpMyAdmin\ config.inc.php" did.
This file overwrites the default php timeout value.
Solution Changing the value 300 in 0 (0=unlimited) in config.inc.php, will make it work.
Quote: $cfg['ExecTimeLimit'] = 0; // maximum execution time in seconds (0 for no limit) I hope this is will be of any use to someone else.
__________________ Kind regards,
Posted:
12 years ago
|