[campcaster-support] How to set the maximum file size for upload
  • Vote Up0Vote Down importimport
    Posts: 0Member
    I'm having trouble increasing my maximum file upload size in Campcaster.

    I have adjusted post_max_size and upload_max_filesize in
    /etc/php.ini
    as well as
    /etc/apache2/conf.d/90_php_campcaster.conf
    and
    /opt/campcaster/etc/apache/90_php_campcaster.conf

    Despite raising the max values to 300M, I seem to still have a limit of
    32M for max file upload and 36M for max post size.

    Strategically placed phpinfo pages confirm that although my "Master
    Value' is 300M for both post_max_size and upload_max_filesize, the
    "Local Value" is 36M for post_max_size and 32M for upload_max_filesize.

    I do find a single .htaccess file in
    /opt/campcaster/var/Campcaster/htmlUI/var/ that sets these values to
    100M and 110M, but something is setting them down to 32M and 36M.

    Any ideas on what I'm doing wrong?

    Thanks,

    - John Hicks

    --
    John Hicks

    When replying to me personally, please use "johnhicks" instead of "johnlist" in the email address.
  • 1 Comment sorted by
  • John Hicks wrote:
    > I'm having trouble increasing my maximum file upload size in Campcaster.
    >
    > I have adjusted post_max_size and upload_max_filesize in
    > /etc/php.ini
    > as well as
    > /etc/apache2/conf.d/90_php_campcaster.conf
    > and
    > /opt/campcaster/etc/apache/90_php_campcaster.conf
    >
    > Despite raising the max values to 300M, I seem to still have a limit
    > of 32M for max file upload and 36M for max post size.
    >
    > Strategically placed phpinfo pages confirm that although my "Master
    > Value' is 300M for both post_max_size and upload_max_filesize, the
    > "Local Value" is 36M for post_max_size and 32M for upload_max_filesize.
    >
    > I do find a single .htaccess file in
    > /opt/campcaster/var/Campcaster/htmlUI/var/ that sets these values to
    > 100M and 110M, but something is setting them down to 32M and 36M.
    >
    > Any ideas on what I'm doing wrong?
    >
    > Thanks,
    >
    > - John Hicks
    >
    The problem occurred because of the way I stored backup files when I was
    editing the configuration files to increase the limits.

    apache2.conf contains the following line:
    Include /etc/apache2/conf.d/

    Apparently, after including the contents of any files in conf.d, this
    directive goes on to include files in any subdirectories of that
    directory (including a subdirectory named 'backup" where I had tried to
    hide my backup file).

    As it turns out, I didn't need to go to such lengths to hide my backup
    in the first place. The gedit editor automatically creates a backup file
    and names it by appending a tilde (~) to the end of the original name. I
    was afraid these would be Included, but I now learn that the Include
    directive ignores these backup files by default.

    Foiled, once again, by my own brilliance!! Smile

    - John

    --
    John Hicks

    When replying to me personally, please use "johnhicks" instead of "johnlist" in the email address.