![]() |
|
Increasing PHP Upload Limits - Printable Version +- MyBBHacks.com Plugins for MyBB (https://www.mybbhacks.com) +-- Forum: ezGallery Pro for MyBB (https://www.mybbhacks.com/forumdisplay.php?fid=8) +--- Forum: Support (https://www.mybbhacks.com/forumdisplay.php?fid=10) +--- Thread: Increasing PHP Upload Limits (/showthread.php?tid=2671) |
Increasing PHP Upload Limits - MyBBHacks - 03-09-2014 Increasing Upload Limits PHP By default php sets the max upload filesize to 2mb To view your current php settings create the following file Code: <?php
phpinfo();
?>The two important variables are upload_max_filesize And post_max_size Next step is to change those settings. Look for "Configuration File (php.ini) Path " and "Loaded Configuration File" on the phpinfo page to find your php settings are stored. Edit that file and increase upload_max_filesize and post_max_size to the size of the largest file you wish to be allowed uploaded. Then after your save those changes be sure to restart your webserver for the changes to take affect. If you do not have access to the php.ini you can still override it in most cases on apache by creating a .htaccess file and place it in the root directory of your forum. If the file already exists just append these files to it. Example .htaccess file Code: php_value upload_max_filesize 20M
php_value post_max_size 20MAlso if you are using Fast CGI mod_fcgi with apache you need to increase the MaxRequestLen - variable in the fastcgi settings |