[Labs-l] PHP upload file size

Ricordisamoa ricordisamoa at openmailbox.org
Sun Nov 15 17:56:15 UTC 2015


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 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/311dfe8e/attachment.html>


More information about the Labs-l mailing list