Windows XP and Server 2003 based Instructions
These instructions presume that you have downloaded the latest PHP 5.3.x Windows zip package and extracted it to C:\PHP. If you have installed PHP to another location then change all references to "C:\PHP" to the location you installed PHP too.
- Open C:\PHP
- Right Click the php.ini file in this folder and choose "Open with..." selecting your editor of choice.
- Press Ctrl + F and type "post_max_size" (click Find...", where needed)
- Change the value to the number of Mb you want your site to accept as uploads
- Press Ctrl + F and type "upload_max_filesize" (click Find...", where needed)
- Change the value to the number of Mb you want your site to accept as uploads
- Press Ctrl + F and type "max_execution_time" (click Find...", where needed)
- Change the value to 600
- Press Ctrl and S or the save button.
- Exit your editor.
- Restart your webserver to reload PHP with the edited changes.
- For IIS
- Open the Start Menu on your server and select "Run"
- Type "iisreset /RESTART"
- For Apache 2 and Windows XP
- Go to Start > All Programs > Apache > Restart
- For Apache 2 and Windows Server
- The following command will work as long as you have installed Apache 2 as a service on your Windows Server
- Open your Start Menu on your server and select "Run"
- Type "httpd -k restart"
Your new file size limit should now appear in Administration > Security > Site Policies > Maximum uploaded file size
NOTE: These instructions also cover the Xampp Windows installer. Just replace C:\PHP with C:\Moodle\server\php and to restart your Moodle with a normal stop-start.
No comments:
Post a Comment