How can I change the maximum file upload size for PHP applications?

You will need to add/edit ”


” in


OS X Server does not come with a


file in place (it relies on the default values compiled into PHP).

If you haven’t done so already, just create a new


file and add:

upload_max_filesize = 5M

(or whatever size you need)

When done editing issue:

sudo /usr/sbin/apachectl graceful restart

Alternatively you can copy the supplied




and use it as starting point.

I do recommend to start with a new file though. Over time you can just add any parameters you want to differ from the defaults, while still keeping a clean and readable

1 reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *