Fixing the "uploaded file may exceed the post_max_size directive in php.ini" error in Moodle
When you are running a Moodle website, there may be times when you have to change your URL. For example, you may have sold the website, or maybe you purchased a shorter domain name, and want to replace the old one. In this tutorial we will show you how to change your URL in Moodle. We are going to use the replace script, that is included with Moodle. It essentially searches the database for the old URL, and replaces it with the new one. After changing your URL in Moodle, you may still need to move the files to a new location, based on your setup.
Note: Any time you are modifying a database, we recommend performing a backup first.
$CFG->wwwroot = 'http://example.com';To this:
$CFG->wwwroot = 'http://newdomain.example.com';Here is a screenshot of the updated line:
Congratulations, now you know how to change your URL in Moodle!
‹Section 3: Fixing the "uploaded file may exceed the post_max_size directive in php.ini" error in Moodle
›Section 5: How to install Moodle 2.3.2 manually
We value your feedback!
new! - Enter your name and email address above and we will post your feedback in the comments on this page!
|1.||How to Import & Export Role Definitions in Moodle|
|2.||Displaying Additional Name Fields in Moodle|
|3.||Fixing the "uploaded file may exceed the post_max_size directive in php.ini" error in Moodle|
|4.||How to change your URL in Moodle|
|5.||How to install Moodle 2.3.2 manually|
|6.||How to install Moodle using Fantastico|
|7.||Moodle Requires PHP 5.3.2 - Work Around|
|8.||Editing the lib.php file in Moodle|
|9.||Adding a Remote RSS Feed block in Moodle|
|10.||Moodle vs Blackboard|
|11.||Installing PoodLL plugins for Moodle|
2014-08-07 9:43 am
What is the purpose of that "Shorten result if necessary" checkbox? What does it do?
2014-08-07 10:17 am
Thank you for your question. When you run a query, depending n on your website, it can return a massive list of results.
The Shorten result if necessary option, makes the list less extensive. For example, if 2,000 lines of code were modified, it would shorten the results. It does not affect the functionality of your query. Unfortunately, I do not know the exact cut-off criteria.
If you have any further questions, feel free to post them below.
2014-11-14 5:27 pm
Just wanted to note, in my case I also had to change this line in the config.php file:
$CFG->dataroot = 'example.com';