Загрузка...

How To Change WordPress Max Upload Size with PHP (no plugin)

Learn how to change the max upload size in WordPress without a plugin. Instead, we can modify the php.ini file directly to increase the upload limit.

In my case, I'm using the All-in-One WP Migration plugin which requires me to upload a file that's larger than the limit fo 16MB. In the video, I show you how to increase the PHP max upload limit to 1GB, but you can pretty much change it to any size you want.

Specifically in the php.ini file, we change the following variables:
* upload_max_filesize
* post_max_size

For most, this configuration files is located at /etc/php/7.2/apache2/php.ini where 7.2 is the version of your PHP

This fix also solves the WordPress error: "The uploaded file exceeds the upload_max_filesize directive in php.ini"

Code snippets and full tutorial 👉 https://tonyteaches.tech/wordpress-max-upload-size/
Check out my vlog channel @TonyFlorida

#wordpress #php #ssh

Видео How To Change WordPress Max Upload Size with PHP (no plugin) канала Tony Teaches Tech
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять