How to increase your PHP memory or upload limit
Seeing "upload exceeds the maximum" or "allowed memory size exhausted"? Sites start with memory_limit 128M, upload_max_filesize 2M and post_max_size 8M. Those limits are not yet self-service in CHPanel, but you can raise them yourself with a small .user.ini file — or ask us to do it.
Add a .user.ini file
- Sign in at chpanel.bphost.biz with your hosting account email address and CHPanel password, then open Files → File Manager and go into public_html (or the folder of the addon domain or subdomain concerned).
- Click + File and name it exactly .user.ini, with the leading dot.
- Click Edit on the new file and add these lines, one per line:
- upload_max_filesize = 64M
- post_max_size = 64M
- memory_limit = 256M
Save the file. PHP re-reads it every five minutes, so wait a moment before trying your upload or page again.
What the settings mean
- upload_max_filesize and post_max_size — the biggest file you can upload through a form. Keep post_max_size at least as large as upload_max_filesize.
- memory_limit — how much memory one script may use. 256M suits most WordPress sites.
Adjust the numbers to what you need; 64M and 256M are sensible starting points.
Trouble?
Limits are still capped by the server, so very large values will not be honoured. If the error is still there after a few minutes, or you would rather we set it for you, open a support ticket saying which site and which value you need.
