Changed PHP Limit But Not Showing Up

Operating system: Ubuntu
OS version: 20.04

I had updated PHP Limit from 128 to 512 from PHP Configuration, but when i check from phpinfo file it still shows 128, and my NextCloud server still says i have php memory limit of 128.

Any idea what is wrong here?

Will this thread help? Max File Upload Size not being correctly reported in phpmyadmin on Virtual Servers - #3 by Whoops