Increase File Upload Size

Increase php.ini Upload Limit

How can you increase the PHP upload limit?

This can be done with the php.ini file. Here is how you do it:

Create a file under public_html and name it php.ini (if you do not have one yet.) Put the following in it:

upload_max_filesize = 2M

post_max_size = 2M

Replace the 2 with 50 or less. If you are letting other people upload, a size cap protects your storage space from abuse/overuse.

Set the file permissions of the php.ini file to 755

You will then need to add this line to a .htaccess file: (Please replace "yourusername" with your cpanel user name an add to the end of the comand line the folder(s) to the location of the php.ini file - Also there is a space between path and /home)

suPHP_ConfigPath /home/Yourusername/public_html

Now your PHP upload limit should be increase.

  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution