US: 1-941-4621-069
Cyprus: 3-572-2052-781

Go Back Forums > ISPmanager > Troubleshooting

Thread Tools
Old 04-11-2013, 06:21 PM   #1
Junior Member
Join Date: Apr 2013
Location: Romania
Posts: 9
mariusfv is on a distinguished road
Default PHP as FastCGI upload upload limit bug ?


ISPmanager Lite:
I've installed FastCGI from: Server settings->Applications->FastCGI module for the Apache web-server and after I enable it.
After I activate the user to use FastCGI and change www.domain to: PHP as FastCGI.

After I check via phpinfo() file:

Server API CGI/FastCGI
Loaded Configuration File /var/www/php-bin/MYUSERNAME/php.ini

My website working(WordPress CMS) but the problem is with upload limit file: 2 MB. -> Here the: Server Settings(ISPmanager Lite)->PHP Configuration file has no effect, is set to 32 MB but with FastCGI has no effect(btw a nice update here to can be configured the FastCGI too will be nice).
This restriction to 2 MB give you HTTP Error or 500 Internal Server Error on any uploads even was under 2 MB, basically impossible to upload something!!!
So I login as root and:
nano /etc/httpd/conf.d/fcgid.conf
and I add this:
FcgidMaxRequestLen 1073741824
service httpd restart
No problem now to upload till 2 MB and I avoid Internal Server Error 500 but HOW TO EDIT THIS RESTRICTION OF 2 MB with PHP as FastCGI as long as via the control panel of ISPmanager the PHP configuration has no effect to FastCGI? Please tell me where I must to edit the php.ini used by FastCGI ?
Or a solution to increase max upload file size with FastCGI with ISPmanager?

Thanks in advance!

Strange situation:
I've edit:
nano /var/www/MYUSERNAME/data/php-bin/php.ini
and I add: upload_max_filesize=30M
service httpd restart
killall ispmgr
Now the limit of 2 MB increased to 8 MB but not 30 MB ...strange ?
Please provide a solution to increase upload_max_filesize with PHP as FastCGI.


Last edited by mariusfv; 04-11-2013 at 08:37 PM.
mariusfv is offline   Reply With Quote
Old 04-12-2013, 12:25 AM   #2
Junior Member
Join Date: Apr 2013
Location: Romania
Posts: 9
mariusfv is on a distinguished road
Default Solved


Solution for ISPmanager to use PHP as FastCGI:

1. Must to login as root

Edit with nano/pico/vi (your editor)


add this file:

FcgidMaxRequestLen 1073741824 (increase to 1 GB like in old version, new version accept 128 KB, any upload/install on your WordPress, Drupal, etc, will get in a internal server error or http error).

service httpd restart

cd /var/www/php-bin/YOUR_USERNAME

edit here php.ini (nano/pico/vi ...your editor ...ISPmanager have PHP Configuration in menu where you can increase maximum size for files but work only with PHP as an Apache module(with PHP as FastCGI HAS NO EFFECT) -here will be nice an update to can edit max file size for whatever you choose to use, apache module, FastCGI, etc.)

add this 2 lines:

upload_max_filesize = 30M
post_max_size = 30M (assume that you want to increase your upload files to 30 MB, for your Wordpress, Drupal, etc).

Exit and save php.ini

service httpd restart

killall ispmgr

Now your WordPress, Drupal, etc will accept the desired upload file size!
mariusfv is offline   Reply With Quote

fastcgi, php, upload maxim size

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 12:09 PM.