• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question PHP 7 Upload file over 64MB ?

WSNHosting

Basic Pleskian
how to config PHP Upload file over 64MB ?

i try

ini_set('post_max_size', '256M');
ini_set('upload_max_filesize', '256M');

echo ini_get("upload_max_filesize");
echo "<br>";
echo ini_get("post_max_size");

echo phpinfo();

or

php_value max_input_time 0
php_value max_execution_time 0
php_value post_max_size 500M
php_value upload_max_filesize 500M

in .htaccess

or

upload_max_filesize = 500M
post_max_size = 500M

not work !!
 
The maximum upload size can be set on the PHP configuration page of the subscription in Plesk. This is normally not set by the subscription user, but must be set by the administrator. The size set in the data fields that are meant for it cannot be overwritten by user settings (e.g. ini_set or php_value or add-on variables).
 
What is the exact error that is displayed or logged when you try to upload a file larger 64 MB despite your higher settings? Could it be possible that this is not a PHP issue, but "request entity too large" (client body size is too large)?
 
mod_fcgid: stderr: PHP Warning: POST Content-Length of 93000303 bytes exceeds the limit of 67108864 bytes in Unknown on line 0,
 
This does not sound possible to me. When phpinfo() is displaying the correct value, it is not possible that the actual execution of a POST is using a different value, because PHP cannot know that different value. Are you sure that phpinfo() is displaying for example 500 MB, yet the post error shows that the limit is 64 MB?

Have you tried to restart the web server? It should do that automatically on changes, but maybe there is an issue with web server reloads?
 
Back
Top