General help

Version 2.5.2 - PHP.INI Location

 
 
Picture of Robert Lavala
Version 2.5.2 - PHP.INI Location
 

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.

Robert


 
Average of ratings: -
Picture of Robert Lavala
Re: Version 2.5.2 - PHP.INI Location
 

So I found and edited my php.ini file but the scorm .zip file (30MB) still gives the message that it is too big. 

I contacted my host and they were less than helpful.


 
Average of ratings: -
Picture of S. kavita
Re: Version 2.5.2 - PHP.INI Location
Group Particularly helpful Moodlers

Hi Robert,

You can check out this link http://docs.moodle.org/23/en/File_upload_size

 

 
Average of ratings: -
Picture of Robert Lavala
Re: Version 2.5.2 - PHP.INI Location
 

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.

 
Average of ratings: -
Gmads
Re: Version 2.5.2 - PHP.INI Location
 

Hi Robert,

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).

http://docs.moodle.org/25/en/File_upload_size#.htaccess_with_hosted_server

http://docs.moodle.org/25/en/File_upload_size#Modifying_the_.htaccess_file

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).

http://docs.moodle.org/25/en/File_upload_size#php.ini_with_hosted_server

To avoid wasted time, the best course of action is to ask you hosting provider about the allowed options.

 
Average of ratings: -
Picture of S. kavita
Re: Version 2.5.2 - PHP.INI Location
Group Particularly helpful Moodlers

Hi Robert,

You can find the php.ini file in your server file system the "etc" folder. Inside etc folder you will find the php.ini file.

Hope this will help you...smile

 
Average of ratings: -
Picture of Bret Miller
Re: Version 2.5.2 - PHP.INI Location
Group Particularly helpful Moodlers

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:

https://my.bluehost.com/cgi/help/128

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.

 
Average of ratings: -
Picture of Shantanu Sikdar
Re: Version 2.5.2 - PHP.INI Location
 
Hello Robert, Hope you’re doing well. I had a look at your post and got some information handy for you. See, if this works for you! You’ve to change the settings in PHP.ini file. You can find the php.ini file in your server. For example, if you're using WAMPP server, just go to WAMPP->PHP->php.ini files.  Open the file php.ini with TextEdit (or another plain text editor)  Search for the post_max_size setting and increase this from 128M (the default) to more; 500M is the maximum  Do the same for upload_max_filesize (make the numbers same).  Restart the server. I’ve tried my best to provide you a solution. It’ll be great if you keep me posted. Warm Regards Shan
 
Average of ratings: -