I was trying to import a very small db, 3kb to be exact and getting an internal server error in Phpmyadmin.
In my error_log i was also seeing this;
First, i tried increasing the size of upload_max_filesize = 15M but that alone did not help.
Im using php 5.3 so i set upload_max_filesize = 15m in;
then ...
I added the following to httpd-fcgid.conf;
15k should be enough if you need more try 20000000
Then restarted apache, /etc/init.d/httpd restart
Now i can import DB's into Phpmyadmin with no further issues.
This may not be the best place to add MaxRequestLen if your using cloudlinux but it seems to work.
Maybe cloudlinux has another option to set that somewhere.
Hope this helps someone.
In my error_log i was also seeing this;
Code:
mod_fcgid: HTTP request length 131952 (so far) exceeds MaxRequestLen (131072)
First, i tried increasing the size of upload_max_filesize = 15M but that alone did not help.
Im using php 5.3 so i set upload_max_filesize = 15m in;
Code:
/usr/local/php53/lib/php.ini
then ...
I added the following to httpd-fcgid.conf;
Code:
#
# mod_fcgid configuration file
#
<IfModule mod_fcgid.c>
SharememPath /var/run/fcgid_shm
FcgidMinProcessesPerClass 0
FcgidMaxProcessesPerClass 8
FcgidMaxProcesses 150
FcgidIdleTimeout 60
FcgidProcessLifeTime 120
FcgidIdleScanInterval 30
FcgidPassHeader Authorization
AddHandler fcgid-script .fcgi
[B]MaxRequestLen 15728640[/B]
</IfModule>
15k should be enough if you need more try 20000000
Then restarted apache, /etc/init.d/httpd restart
Now i can import DB's into Phpmyadmin with no further issues.
This may not be the best place to add MaxRequestLen if your using cloudlinux but it seems to work.
Maybe cloudlinux has another option to set that somewhere.
Hope this helps someone.
Last edited: