• [ Moderator note: moved to Fixing WordPress. ]

    Hey,
    I want to upload and install a plugin and the size of the plugin is 6 MB. But as I click the install now button WordPress gives an error.
    “The uploaded file exceeds the upload_max_filesize directive in php.ini”.

    Please Help.

    • This topic was modified 7 years, 6 months ago by fsksattar.
    • This topic was modified 7 years, 6 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Geoffrey Shilling

    (@geoffreyshilling)

    Volunteer Moderator

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account.

    (in the above examples, the limit is set to 128MB)

    See also: How do I Import a WordPress WXR file when it says it is too large to import?

    And if everything else fails, @fsksattar, you can always use some FTP program, upload that plugin (unpacked) to /wp-content/plugins/plugin_name and proceed with the usual installation from the dashboard.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The uploaded file exceeds the upload_max_filesize directive in php.ini’ is closed to new replies.