![]() |
#1 |
Junior Member
Join Date: Apr 2013
Location: Romania
Posts: 9
![]() |
![]()
Hi,
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: Code:
nano /etc/httpd/conf.d/fcgid.conf Code:
FcgidMaxRequestLen 1073741824 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! EDIT: 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. Thanks. Last edited by mariusfv; 04-11-2013 at 08:37 PM. |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Apr 2013
Location: Romania
Posts: 9
![]() |
![]()
SOLVED
Solution for ISPmanager to use PHP as FastCGI: 1. Must to login as root Edit with nano/pico/vi (your editor) /etc/httpd/conf.d/fcgid.conf 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! |
![]() |
![]() |
![]() |
Tags |
fastcgi, php, upload maxim size |
Thread Tools | |
|
|