How to increase PHP limits

May 18, 2009 – 09:20 by Support Staff

 

In your .htaccess file under your public_html folder, add the following:

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

 

Note: Make sure to change the user text above to your account username.

 

Then create a php.ini file under your public_html folder and add any of the following that are needed:

upload_max_filesize = 12M
post_max_size = 16M
memory_limit = 32M
max_execution_time = 60
upload_tmp_dir = /tmp

 

Information below will not work at DS-Hosting Solutions, use the above method instead because we are running suPHP.

 

For servers running normal PHP you can increase the PHP max upload size for your account by adding the following to your .htaccess file:

php_value upload_max_filesize "12M"
php_value post_max_size "16M"
php_value max_input_time "60"

   

Sorry, comments for this entry are closed at this time.