Open Apache's httpd.conf configuration file and add the following parameter settings to this file.
MaxRequestLen 10240000
I set it here to 10M, which is slightly larger than the default maximum value of 8M for PHP upload. You can adjust the value of this parameter according to your own needs. Note that the unit of this parameter is bytes.
#After the configuration is completed, just restart Apache.
For more articles related to solutions to the Apache file upload 500 error, please pay attention to the PHP Chinese website!