UnderHosts Posted February 27, 2008 Share Posted February 27, 2008 How do i change the upload limit so it isn't 2M? 0 Quote Link to comment Share on other sites More sharing options...
railto Posted February 27, 2008 Share Posted February 27, 2008 need to either change ur server php.ini file (not a good idea) or create a new php.ini file and drop it in the root of whmcs with a line like upload_max_filesize = 32M 0 Quote Link to comment Share on other sites More sharing options...
UnderHosts Posted February 27, 2008 Author Share Posted February 27, 2008 where can i find my php.ini file? i think ill just create a new php.ini and upload it to the root but would still like to know where to find php.ini thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted February 27, 2008 WHMCS Developer Share Posted February 27, 2008 If you look in your phpinfo (utilities menu) one of the first rows is the php.ini that has been loaded and it's location 0 Quote Link to comment Share on other sites More sharing options...
UnderHosts Posted February 27, 2008 Author Share Posted February 27, 2008 i tried making a new php.ini file but that wouldn't work, is there any other to change the upload limit, i just went on the phpinfo but there is no way to edit. thanks. 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted February 27, 2008 Share Posted February 27, 2008 It's in your web servers php folder for your server. You will have to edit the file in there. If your on a shared host then you will need to ask your host to increase it - but they might not increase it that much. 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted February 27, 2008 Share Posted February 27, 2008 i tried making a new php.ini file but that wouldn't work, is there any other to change the upload limit, i just went on the phpinfo but there is no way to edit. thanks. Is your server running as Apache or cgi? If Apache it needs to be in .htaccess. 0 Quote Link to comment Share on other sites More sharing options...
UnderHosts Posted February 27, 2008 Author Share Posted February 27, 2008 my server is running on apache. 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted February 27, 2008 Share Posted February 27, 2008 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 20 meg, the following directive would be placed in the .htaccess: php_value upload_max_filesize 20M Remember with .htaccess, this would enable it in the directory you place the .htaccess and every subfolder from that point. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted February 28, 2008 Share Posted February 28, 2008 Howdy, If you have root access and the current PHP upload limit is at 2MB run this bash script at your own risk. php -i | grep php.ini | awk {'print $6'} >> phpPath.txt; for i in $(cat phpPath.txt);do replace "upload_max_filesize = 2M" "upload_max_filesize = 32M" -- $i; done; rm -rf phpPath.txt Thanks, Adam 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.