<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I made it work assuming "myproject" is the tool's name, e.g.
    "commonshelper" then putting this in /data/project/myproject/php.ini<br>
    <br>
    <tt>post_max_size = "16M"</tt><tt><br>
    </tt><tt>upload_max_filesize = "4M"</tt><br>
    <br>
    and this in /data/project/myproject/.lighttpd.conf<br>
    <br>
    <tt>fastcgi.server += ( ".php" =></tt><tt><br>
    </tt><tt>        ((</tt><tt><br>
    </tt><tt>                "bin-path" => "/usr/bin/php-cgi -c
      /data/project/myproject/php.ini",</tt><tt><br>
    </tt><tt>                "socket" => "/tmp/php.socket.$tool",</tt><tt><br>
    </tt><tt>                "max-procs" => 2,</tt><tt><br>
    </tt><tt>                "bin-environment" => (</tt><tt><br>
    </tt><tt>                        "PHP_FCGI_CHILDREN" => "2",</tt><tt><br>
    </tt><tt>                        "PHP_FCGI_MAX_REQUESTS" => "500"</tt><tt><br>
    </tt><tt>                ),</tt><tt><br>
    </tt><tt>                "bin-copy-environment" => (</tt><tt><br>
    </tt><tt>                        "PATH", "SHELL", "USER"</tt><tt><br>
    </tt><tt>                ),</tt><tt><br>
    </tt><tt>                "broken-scriptfilename" => "enable",</tt><tt><br>
    </tt><tt>                "allow-x-send-file" => "enable"</tt><tt><br>
    </tt><tt>         ))</tt><tt><br>
    </tt><tt>)</tt><br>
    <br>
    <div class="moz-cite-prefix">Then webservice2 restart<br>
      <br>
      Perhaps there's a simpler way...<br>
      <br>
      Il 14/11/2015 22:07, Magnus Manske ha scritto:<br>
    </div>
    <blockquote
cite="mid:CAGHUEtb4Qu1pziicpKbXj+A=NvEZoeRs429pef0SHKAjRpQxZQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">How can I change the upload_max_filesize and
        post_max_size values (usually in php.ini) for a tool (using
        lighttpd)?<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Labs-l mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a>
<a class="moz-txt-link-freetext" href="https://lists.wikimedia.org/mailman/listinfo/labs-l">https://lists.wikimedia.org/mailman/listinfo/labs-l</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>