#1  
Old 30th November 2010, 17:55
renders renders is offline
Junior Member
 
Join Date: Jan 2008
Location: Ontario Canada
Posts: 25
Thanks: 1
Thanked 6 Times in 4 Posts
Default 2mb limit in fcgid mode

Hi all.. I have a photo uploading script that works fine under mod_php but fails on fcgid ONLY on files larger than 2mb.

I have the usual php.ini upload settings set to 64mb..

Is there a setting related to this limit?

Thanks

Rob
Reply With Quote
Sponsored Links
  #2  
Old 1st December 2010, 00:15
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 395
Thanks: 30
Thanked 58 Times in 50 Posts
Default

Rob,

There are several settings related to that limit. You may wish to modify the following to suit your needs and paste it into the "Apache directives" box for the site:

Code:
<Directory /var/www/domain.tld/>
LimitRequestBody 0
php_admin_value memory_limit 1024M
php_admin_value max_execution_time 0
php_admin_value max_input_time 0
php_admin_value post_max_size 2000M
php_admin_value file_uploads On
php_admin_value upload_max_filesize 2000M
php_admin_value session.cookie_lifetime 0
php_admin_value session.gc_maxlifetime 259200
</Directory>
Give it about 5 minutes for ISPConfig to refresh the directives, and see if your script functions as expected.

Note also that you may use the phpinfo() function in a script that resides within the same directory as the script you are testing to confirm that the directives are being applied.

Finally, the values in the example above are quite large; you may have no need to use such large values in your particular case.

Good luck!
Reply With Quote
  #3  
Old 1st December 2010, 04:47
renders renders is offline
Junior Member
 
Join Date: Jan 2008
Location: Ontario Canada
Posts: 25
Thanks: 1
Thanked 6 Times in 4 Posts
 
Thumbs up

Tried your suggestion.. Added the following:

Code:
<Directory /var/www/domain.com>
LimitRequestBody 0
php_admin_value memory_limit 1024M
php_admin_value max_execution_time 0
php_admin_value max_input_time 0
php_admin_value post_max_size 64M
php_admin_value file_uploads On
php_admin_value upload_max_filesize 64M
php_admin_value session.cookie_lifetime 0
php_admin_value session.gc_maxlifetime 259200
</Directory>
Checked the vhost file after a couple of minutes and saw that it was updated. BUT, no change to the phpinfo. Not sure what the issue is??

Finally, got it to work by adding upload_max_filesize directly to the php.ini file in the /etc/php5/cgi folder once I realized that it was the correct php.ini file for fast_cgi.

Thanks for your help..

Rob
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 15:51
ISPConfig3 Installed/But My Mail Client is rejecting addresses LinuxGuyMT Installation/Configuration 17 21st December 2009 11:35
Attacks on MTA dclardy Installation/Configuration 4 29th September 2009 17:50
slow download through webserver problem snewp Technical 14 9th May 2008 06:25
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 20:38


All times are GMT +2. The time now is 19:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.