how to change max file upload size WordPress 4.9.8 [closed]

php.ini should be in the /wp-admin/ folder, not the root. Also, I’ve had success using a combination of the following in my /wp-admin/php.ini file AND a directive to increase the memory in my wp-config.php file, increased memory is needed when uploading larger files.

Put something like this in your php.ini file (change values as you need to):

    memory=512MB
    post_max_size=20MB
    upload_max_filesize=50MB

Then in your wp-config.php file, add something like this:

    define('WP_MEMORY_LIMIT', '512M');

The upper memory limit doesn’t need to be the same in both, but I find it works best when it is the same.

tech