|
Increase php upload_max_filesize from 2M |
|
|
|
|
Written by Travis Nuske
|
If you feel this tip has saved you time or effort, please consider buying us a cuppa coffee to keep things going!
Use the following tip if you need to increase the upload_max_filesize on your webserver, especially if you are not able to directly access/edit the php.ini file.
Set upload_max_filesize
Log into your webserver, either by FTP or cpanel etc and create a new file in the top (root) folder called php.ini. In that file paste the following code:
upload_max_filesize = 20M
post_max_size = 20M
This will set the upload_max_filesize from 2M to 20M
Save the file.
Set the Path in .htaccess
Open your .htaccess file (or create one if you don't already have one) and paste the following code:
SetEnv PHPRC /home/[cpanel username]/public_html
The path above needs to be to the root of your webserver - this is typically /home/ your cpanel username/public_html, but it may be different depending on your server config
Save the file and test it out!
|
|
Last Updated on Monday, 27 February 2012 13:23 |