php.ini

I’m having a $#!&%(& hard time with this and haven’t had luck with
either the devs or hosting support in getting this sorted.

I moved a Perch site to a new server and for the most part it works
except when uploading video files via the CMS, especially large ones
(~80MB), all of which flat-out fail to upload. The first thing I did was
to increase the PHP upload limit via php.ini and placed the file in
/perch/core/, “core” being the guts of the CMS.

The defaults were changed to:

post_max_size=“120M”
upload_max_filesize=“100M”

I then checked the phpinfo.php file in the “core” directory and the
above changes showed correctly but file uploads still don’t work.
Viewing the Perch diagnostics report I see the following (partial):

PHP max upload size: 100M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 8M

I’m wondering if “max form post size” is part of the problem, though I
don’t see that listed in phpinfo. I’m at my wits end to figure this out.

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It appears I have it working now. [crosses fingers]

Todd
http://xiiro.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ve had a few issues with WebYep uploads.

Changing the .htaccess file to use

 RLimitMem max 

Usually Helped.

Also a php.ini file included setting the timeout on the script…

   memory_limit = 32M      ; Maximum amount of memory a script may consume (32MB) 
upload_max_filesize = 10M ; Maximum upload size 
post_max_size = 32M ; 
max_execution_time = 600    ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data 

David

On 22 Aug 2012, at 23:27, Todd email@hidden wrote:

I’m having a $#!&%(& hard time with this and haven’t had luck with either the devs or hosting support in getting this sorted.

I moved a Perch site to a new server and for the most part it works except when uploading video files via the CMS, especially large ones (~80MB), all of which flat-out fail to upload. The first thing I did was to increase the PHP upload limit via php.ini and placed the file in /perch/core/, “core” being the guts of the CMS.

The defaults were changed to:

post_max_size=“120M”
upload_max_filesize=“100M”

I then checked the phpinfo.php file in the “core” directory and the above changes showed correctly but file uploads still don’t work. Viewing the Perch diagnostics report I see the following (partial):

PHP max upload size: 100M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 8M

I’m wondering if “max form post size” is part of the problem, though I don’t see that listed in phpinfo. I’m at my wits end to figure this out.

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks David. I may extend the execution and input time also given the
large file sizes involved.

Todd

David Owen wrote:

I’ve had a few issues with WebYep uploads.

Changing the .htaccess file to use

  RLimitMem max

Usually Helped.

Also a php.ini file included setting the timeout on the script…

    memory_limit =32M       ; Maximum amount of memory a script may consume (32MB)
 upload_max_filesize =10M  ; Maximum upload size
 post_max_size =32M  ;
 max_execution_time = 600    ; Maximum execution time of each script, in seconds
 max_input_time = 600 ; Maximum amount of time each script may spend parsing request data

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Post Max Size must be a bit larger than the Max Upload Size, to accommodate the rest of the fields in the file upload form. Basically, you have to add up all the data you ever plan to push to the form and make sure that Post Max Size is larger than that. If you have a textarea, this can include someone paste-bombing the entire Encyclopedia Britannica into that field. Max Execution Time and Max Input time are also related. If you’re trying to upload 100MB of files, take 100 * 1024 * 8, and then divide by what you think a reasonable upload speed (in Kilobits per second) is for your target audience. (Guessing and testing works, too. Just don’t leave this set to too long a time while testing the rest of your code, or you will grow gray hair waiting for the server to die and give you an error message for even the smallest unrelated thing.)

Walter

On Aug 23, 2012, at 9:43 AM, Todd wrote:

Thanks David. I may extend the execution and input time also given the large file sizes involved.

Todd

David Owen wrote:

I’ve had a few issues with WebYep uploads.

Changing the .htaccess file to use

 RLimitMem max

Usually Helped.

Also a php.ini file included setting the timeout on the script…

   memory_limit =32M       ; Maximum amount of memory a script may consume (32MB)
upload_max_filesize =10M  ; Maximum upload size
post_max_size =32M  ;
max_execution_time = 600    ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter. I already had the Post Max Size and Max Upload Size setup
correctly. The uploads are for back-end (admin) use so I’m not sure how
critical Max Execution Time is. My concern was that the server would
simply timeout on big files. But everything seems to be working [knocks
on wood] The problem was finding where the php.ini needed to go which
was not in the site root but in a deeply nested folder within the Perch
app where the script that processes form edits/submissions live.

Todd

Walter Lee Davis mailto:email@hidden
August 24, 2012 9:39 AM
Post Max Size must be a bit larger than the Max Upload Size, to
accommodate the rest of the fields in the file upload form. Basically,
you have to add up all the data you ever plan to push to the form and
make sure that Post Max Size is larger than that. If you have a
textarea, this can include someone paste-bombing the entire
Encyclopedia Britannica into that field. Max Execution Time and Max
Input time are also related. If you’re trying to upload 100MB of
files, take 100 * 1024 * 8, and then divide by what you think a
reasonable upload speed (in Kilobits per second) is for your target
audience. (Guessing and testing works, too. Just don’t leave this set
to too long a time while testing the rest of your code, or you will
grow gray hair waiting for the server to die and give you an error
message for even the smallest unrelated thing.)


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options