How do I change the PHP Max Upload file size?

  Print

In an .htaccess file in the same directory as the script, include this line:

php_value upload_max_filesize

where is the size of the allowable upload. For example, if the desired filesize is 5 meg, the following directive would be placed in the .htaccess:

php_value upload_max_filesize 5M

If you get a 500 Error add this code in your php.ini file and place it in your root folder

upload_max_filesize = 5M
post_max_size = 5M

then add this code in your .htaccess in your root folder

suPHP_ConfigPath /home/username/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>


Did you find this article useful?   0 out of 0 people found this article useful.

  • Comments

Add Comment

Replying to  

  Refresh
Self-Hosted Help Desk Software by SupportPal.

Login

 
Forgot password?
Register now

Language