Upload exceeds max file size.

[ad_1]

I’m trying to upload a plugin. (WP Encryption) I’m using this video as a guide. [https://www.youtube.com/watch?v=kfDZDijL-Wg]) But I’m getting this error…

> The uploaded file exceeds the upload\_max\_filesize directive in php.ini.

The .zip file in question reads 2,666k in size. So I’ve edited my /etc/php/8.1/cli/php.ini file to read…

>post\_max\_size = 128M
>
>upload\_max\_filesize = 64M

..and rebooted the machine. (Ubuntu 22.04.2 LTS hosted in Azure) but I’m still getting the error. Am I missing something? How do I configure the server to upload this plugin?

[ad_2]
2 Comments
  1. In WordPress go to Tools > Site Health and click the server tab. Check what version of php your site is using and where the php.ini file is located.

  2. Alternatively/as a workaround, you could upload the zip file to /wp-content/plugins and extract it using ssh or a control panel file manager.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer