| How can I modify the size limit of uploaded files in php and apache? That is, to modify the restrictions on php file upload. For more information, see. During program migration, it is found that files larger than 2 MB cannot be uploaded. First, check Localsetting. php file. this is the configuration file, with the following fields: $ wgUploadSizeWarning = 20000000;, but soon this is only a warning message. If you choose to ignore all messages in the wiki, the file size cannot exceed 2 MB. After further troubleshooting, we found that php restricts the file upload size. For specific configuration files, see/usr/local/php/lib/php. ini. Note that the configuration file in the/etc directory has actually become invalid because the original rpm packages such as php and apache are uninstalled and manually installed through the source code. After modifying php. ini, restart the apache service,/usr/share/apache/bin/apachetcl restart, and upload the file again. |