Score:1

Increase PHP's upload_max_filesize in Apache

cn flag

I have a Laravel app and I need to increase PHP's upload_max_filesize, but rather than do this for the entire app I wanted to apply it to a specific route/location. I am running Apache 2.4.

In the past with something like WordPress I would put this in the Apache virtual host configuration:

<Directory /www/website.com/public/wp-admin>
php_admin_value upload_max_filesize 30M
</Directory>

However, with Laravel every request is routed through public/index.php using mod_rewrite, so there aren't separate files or directories per-se.

I have tried:

<LocationMatch /admin/>
php_admin_value upload_max_filesize 30M
</LocationMatch>

Which doesn't seem to do anything.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.