Thursday, January 29, 2026

How to allow higher MB file uploads by increasing size in server php.ini

1) Check php version using the command:

                            php -v


2) Make sure server is using apache php or php cli by using the below command

                        sudo systemctl status


3) Check if any php-fpm is running. else

            sudo nano  /etc/php/8.4/cli/php.ini


4) Edit php.ini and change these values from 2M to 10 or 20 M

                    upload_max_filesize = 10M 

                    post_max_size = 10M


4. Restart web server:

                    sudo systemctl restart php8.4-fpm

                     sudo systemctl restart apache2

No comments:

Post a Comment