You don't mention much about where was the the PHP php.ini configuration file, or anything else.
Anyway, after editing the file, one needs to restart the web server, otherwise the changes will not be picked up by the web server.
When one doesn't have access to the web server, the usual way to do modifications, is to add a .htaccess (dot htaccess) file at the directory where the application is installed (e.g. moodle). This, of course, needs to be allowed by the hoster (some do, some don't).
When .htaccess files are not allowed, sometimes custom php.ini files are allowed. Just as with .htaccess files, custom php.ini files must be created at the directory of the web application (e.g. moodle).
To avoid wasted time, the best course of action is to ask you hosting provider about the allowed options.