Can't install Wordpress plugin
I'm trying to add an 8MB Wordpress plugin, but when I try to add it I'm getting this error: "The Uploaded File Exceeds The uploadmaxfilesize directive in php.ini".
How do I increase the max filesize?
1 Reply
The max file upload size is controlled by PHP. You'll need to modify this setting in your php.ini file. You can usually find this file in one of these 2 locations:
/etc/php/php.ini
/etc/php/7.0/apache2/php.ini
If you're having trouble finding it, you can use the phpinfo() function to find it.
Example:
<?php
phpinfo();
?>
Once you've found your php.ini file, you can edit the following directives to increase the max filesize to whatever you'd like (in this example I've increased it to 256MB):
upload_max_filesize = 256M
post_max_size = 256M
memory_limit = 1000M
file_uploads = On
max_execution_time = 300