Skip to content

Increase WordPress maximum file size

Last updated on June 26, 2019

When you install WordPress on LiteSpeed server, you will use FPM instead of the default apache server to handle the web requests. However, a standard WordPress install only allow a maximum 2 Mb upload file size. To change the limit, you have to identify which php.ini to edit.

To do this, type

find / -name php.ini

This will list all the php.ini files from the root directory. If you are using LiteSpeed, you should have a local php.ini in a directory similar to

/usr/local/lsws/lsphp72/etc/php/7.2/litespeed/

Note that 72 or 7.2 may differ depending on your default php version, which is 7.2 in my case.

Change the upload_max_filesize and post_max_filesize and restart your LiteSpeed server using the admin console.

Published inTechnology