[Labs-l] PHP upload file size

Magnus Manske magnusmanske at googlemail.com
Sun Nov 15 23:01:49 UTC 2015


Thanks, that worked!

On Sun, Nov 15, 2015 at 5:56 PM Ricordisamoa <ricordisamoa at openmailbox.org>
wrote:

> I made it work assuming "myproject" is the tool's name, e.g.
> "commonshelper" then putting this in /data/project/myproject/php.ini
>
> post_max_size = "16M"
> upload_max_filesize = "4M"
>
> and this in /data/project/myproject/.lighttpd.conf
>
> fastcgi.server += ( ".php" =>
>         ((
>                 "bin-path" => "/usr/bin/php-cgi -c
> /data/project/myproject/php.ini",
>                 "socket" => "/tmp/php.socket.$tool",
>                 "max-procs" => 2,
>                 "bin-environment" => (
>                         "PHP_FCGI_CHILDREN" => "2",
>                         "PHP_FCGI_MAX_REQUESTS" => "500"
>                 ),
>                 "bin-copy-environment" => (
>                         "PATH", "SHELL", "USER"
>                 ),
>                 "broken-scriptfilename" => "enable",
>                 "allow-x-send-file" => "enable"
>          ))
> )
>
> Then webservice2 restart
>
> Perhaps there's a simpler way...
>
>
> Il 14/11/2015 22:07, Magnus Manske ha scritto:
>
> How can I change the upload_max_filesize and post_max_size values (usually
> in php.ini) for a tool (using lighttpd)?
>
>
> _______________________________________________
> Labs-l mailing listLabs-l at lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/labs-l
>
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/labs-l/attachments/20151115/7bb9b328/attachment.html>


More information about the Labs-l mailing list