Upload file size is limited reasons

Problems
Symptom:
On linux server, php program to upload small files can be several megabytes, more than 3MB uploading failed
to modify the parameters for uploading files inside php.ini, ineffective

Solution
This is due in prima environment, run the CGI program is in the protection cgiwrap of
cgiwrap running time will first detection program owner, permissions, directories, are correct
not correct the report can not run
the wrong phenomenon is very Common

cgiwrap also has the ability to limit CPU, memory limitations, restrictions and other aspects of the process of
default, uploaded via PHP script, only about 3MB of data uploaded
and then cgiwrap think php script to run over resources, forcibly terminate the php program
and therefore it missed the php the upload failed for no reason, and upload php does not report the cause of failure

Thus, check /usr/prima/etc/httpd/site.conf, to confirm whether the following line
SetEnv CGI_RLIMIT_INFINITY 1

It identifies cgiwrap the check owner, permissions, etc., do not check the resource-
By default, Prima for Linux is site.conf have this configuration
if the configuration has been deleted administrator
or for some reason does not exist
will encounter this article said the failure to
write this line can be configured to restart apache repair

Guess you like

Origin www.cnblogs.com/sfqas/p/12181820.html
Recommended