WordPress: Difference between revisions
imported>Onny Remove deprecation note |
imported>Onny Add section on max upload filesize config |
||
| Line 113: | Line 113: | ||
require_once ABSPATH . 'wp-admin/includes/plugin.php'; | require_once ABSPATH . 'wp-admin/includes/plugin.php'; | ||
activate_plugin( 'akismet/akismet.php' ); | activate_plugin( 'akismet/akismet.php' ); | ||
''; | |||
</syntaxHighlight> | |||
=== Max upload filesize === | |||
The following example configuration changes the max upload filesize limit to 16GB for the Wordpress instance with the hostname <code>localhost</code>. Change the [[phpfpm]] pool name according to your hostname. | |||
<syntaxHighlight lang="nix"> | |||
services.phpfpm.pools."wordpress-localhost".phpOptions = '' | |||
upload_max_filesize=16G | |||
post_max_size=16G | |||
''; | ''; | ||
</syntaxHighlight> | </syntaxHighlight> | ||