upload_max_filesize

Discussion in 'Installation/Configuration' started by niklasberlin, Mar 26, 2015.

  1. niklasberlin

    niklasberlin New Member

    Hi,

    I know this topic has been discussed like hundreds of times but no matter how many threads here or topics on stackoverflow or whereever I have read, the provided solutions didn't work for me.

    I have a Debian 7.8 (wheezy) server with apache2+php5 & ISPConfig3.

    Site is configured in ISPConfig (FCGI + SuEXEC) but unfortunately no matter what I do, the following limits cannot be raised:
    post_max_size
    upload_max_filesize
    memory_limit​

    All of them are stuck at 513 MB (512 for memory_limit).

    I set the values in the Options tab:
    custom php.ini:
    post_max_size = 20G
    upload_max_filesize = 20G
    max_execution_time = 900
    max_input_time = 900
    memory_limit = 2G
    default_socket_timeout = 900​

    apache directives:
    php_admin_value post_max_size 20G
    php_admin_value upload_max_filesize 20G
    FcgidMaxRequestLen 21474836480​

    .htaccess file is renamed to sth useless, so no rewrites here

    /etc/apache2/mods-available/fcgid.conf:

    MaxRequestLen 21474836480
    FcgidMaxRequestLen 21474836480​

    I even changed the values in the following three locations:
    /etc/php5/apache2/php.ini
    /etc/php5/cgi/php.ini
    /etc/php5/cli/php.ini​


    and a call of phpinfo(); always gives me (local value / Master value):
    memory_limit 512M 2G
    post_max_size 513M 20G
    upload_max_filesize 513M 20G​

    I think I overlook sth here. The Master value seems to work but sth overwrites the values locally for this domain and I cannot find where.
    Or it's just me being stupid. Never had this problem before...
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) remove the values from apache directives field. They do not matter for php fcgi mode.
    2) Then check in phpinfo output (in this website) which php mode and which php.ini is used currently.
     
  3. niklasberlin

    niklasberlin New Member

    Hi Till,
    I have removd the apache directives and here's theresult of the requested info:

    phpinfo():
    Server API CGI/FastCGI
    Configuration File (php.ini) Path /etc/php5/cgi
    Loaded Configuration File /var/www/conf/web4/php.ini​

    Content of /etc/php5/cgi/php.ini (nothing overwritten at the bottom of the file)
    post_max_size = 20G
    memory_limit = 128M
    upload_max_filesize = 20G

    Content of /var/www/conf/web4/php.ini (In the file)
    post_max_size = 20G
    memory_limit = 128M
    upload_max_filesize = 20G
    Content of /var/www/conf/web4/php.ini (at the bottom of the file - overwriting the stuff before I guess?)
    post_max_size = 20G
    upload_max_filesize = 20G
    max_execution_time = 900
    max_input_time = 900
    memory_limit = 2G
    default_socket_timeout = 900
    attached you'll find my phpinfo (IP and hostname cleared out)

    By the way, thanks a lot or your incredibly awesome work and your alway immediate and helpful support. Not only for now but for the past few years! I really appreciate it!


    //Edit: Attachment removed due to security risk...

     
    Last edited: Mar 31, 2015
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Looks fine so far and yes, the settings at the bottom should override the ones that are defined above in the file. Please try to restart the server and check again. Maybe apache is hanging in a way that it does not start a new php fcgi process.
     
  5. niklasberlin

    niklasberlin New Member

    Hi,

    I rebooted the entire server, unfortunately still the same... :(

    However I created a new domain in ISPConfig where I changed nothing, so everything is default and probably due to my changes in the global php.ini the new domain has the correct values, so I am just gonna delete the respective "broken" domain and recreate it, that should do the trick.

    Thanks four your help :)

    //Edit: FYI: the process described above worked fine. Unfortunately this prevented me from finding the real source of error :-/

    //Edit2: Okay. Sorry I wasted your time, it was the .user.ini file of a script that overwrote these values. I didn't know that anything apart from the php.ini and the apache config files such as vhost and .htaccess could do such :-/
     
    Last edited: Mar 31, 2015

Share This Page