When you use phpmyadmin to import data to apache2.4.9 + php5.4, the server error 500 is displayed. View logs and find
Mod_fcgid: HTTP request length 135024 (so far) exceeds MaxRequestLen (131072)
It means that the request is too long, but you have never seen MaxRequestLen before. You can search for it in httpd. conf. No, and search for it in php. ini. I had to go to Baidu. The reason seems to be that the default request data of the later version of apache has been reduced, and it is also the reason why fcgi runs. Anyway, no matter what, there is only one solution:
Add one in httpd. conf
# Modifying fgci request restrictions
# MaxRequestLen 5242880
Example
<IfModule mod_fcgid.c>
AddHandler fcgid-script. fcgi
FcgidConnectTimeout 20
# To get around upload errors when uploading images increase the MaxRequestLen size to 15 MB
# MaxRequestLen 15728640
</IfModule>
Then restart apache and no error will be prompted.
Note: If you only need to modify the MaxRequestLen of a single virtual host, you only need to add it to virtualhost. If it is global, add it to httpd. conf