How do I increase the PHP Upload Limit?

To raise the PHP Upload Limit for your website simply do the following:

Create a blank text file called php.ini (if one doesn't already exist) or add this to the one that exists.

Put the following line in it:
upload_max_filesize = 10M

(replace 10M for whatever size in Megabytes that you would like the max upload set to)

Then place the file in your public_html folder or deeper in your dir structure (preferably only where you need it) and that's it.

Items that are to be global can be in a php.ini file in your public_html folder, other settings that you only want to apply to a specific application can be in another file inside the application folder. 

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How Do I Change PHP Settings?

How do I change PHP settings?Easy: First create a blank text file called php.ini (assuming one...

Getting a 500 Error

If your site occurs a 500 Internal Server Error the most common are php settings contained in...

What are the paths to commonly used services?

What is the path to my user files? The path is /home/username/public_html What is the local path...

PEAR Modules

PEAR modules are collections of functions that allow you to perform tasks using PEAR finctions....

How do I set PHP include_path?

There are 2 main ways you can set your PHP include_path. 1. Edit your /etc/php.ini file. Inside...