Tuesday, September 05, 2023

increasing wordpress max upload size by changing php.ini

Via 

https://docs.moodle.org/402/en/File_upload_size

and

https://www.w3docs.com/snippets/php/where-is-php-ini-on-ubuntu.html

Edited the php.ini file to increase file upload size for a Wordpress site hosted on Ubuntu 22.04.

sudo find / -name php.ini
/etc/php/8.1/apache2/php.ini
/etc/php/8.1/cli/php.ini 

sudo nano /etc/php/8.1/apache2/php.ini
sudo nano /etc/php/8.1/cli/php.ini 
and Ctrl-w post_max_size, upload_max_filesize to 50 M

max_execution_time to 600.

No comments:

Post a Comment