Hello. I hate to be such a dolt but I have searched the discussions and cannot seem to find a straight answer for where the php.ini file is living in my Moodle installation.
When I look in Site Administration/Server/PHP Info it seems to say to me that it lives here:
|Loaded Configuration File||/usr/php/54/etc/php.ini|
But, again being doltish, I cannot find the darn thing. I'm trying to change the max file size for uploads.
Thanks for any help.
Thanks... I read the file, did what it said and then was just online with tech support at Bluehost for 60 minutes as they did everything they could to make it work and still a 30MB file won't upload.
This has to be a simple fix because most every course that has video would be over the basic limit.
Frustrating for sure.
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.
The php.ini location is dependent on your website hosting company. If you are using shared hosting, which is likely the case with BlueHost, perhaps they do not give you full control over your php.ini. They say:
You'll want the "single php.ini" option. Assuming you can set it up that way, you'll then know where the php.ini lives and can edit it as necessary.