setting php memory

setting php memory

by Angela Crouch -
Number of replies: 3

Someone please help me!  I am trying to change the php memory limit from 8M to 16M.  I called my hosting company and I do not have access to the .ini file, they told me to put ini_set("memory_limit","20M"); in my php code but I have no idea what file to put it in.  I don't want to put it in the wrong one and mess something up.  Please help!

~Angela

Average of ratings: -
In reply to Angela Crouch

Re: setting php memory

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Put it near the bottom of lib/setup.php
In reply to Martin Dougiamas

Re: setting php memory

by Angela Crouch -

Okay I put that exact line in right above the end comment tag in the lib/setup.php file.  Whenever I went to install moodle, I still go the message that my php memory limit is low.  Is this because of the cookies that have been set, therefore should I proceed, or did I do this incorrectly?

In reply to Martin Dougiamas

Re: setting php memory

by Danilo Curci -
WOW WOW !!!!!!!

it did function big grin

I did as Angela, and now I can eventually use all the modules !

danilo