Start for free – your first 3 months are freeSee the offer

Databases and PHP

PHP limits: memory, upload size and run time

See memory_limit, upload_max_filesize, run time and the number of PHP processes on Sitewig web hosting, and what to do when your website hits a limit.

3 min readUpdated

On this page
  1. The limits
  2. Can I change php.ini?
  3. When you hit a limit
  4. What does "Allowed memory size of … bytes exhausted" mean?
  5. I can't upload a large file in WordPress. What do I do?
  6. My script stops after 5 minutes. Can it run for longer?
  7. The site is slow when there are lots of visitors. Will a bigger plan help?
  8. Can I choose the time zone myself?

Each web hosting account has its own PHP setup with fixed limits, so that one website can't use up the whole server. Most websites never notice the limits. Here you can see the values, and what to do if you run into them.

Memory 512 MB, upload 128 MB, run time 300 seconds and PHP processes per plan
The PHP limits on a Sitewig web hosting account

The limits

PHP settings on all web hosting accounts

memory_limit
512M (per PHP process, fixed)
upload_max_filesize
128M
post_max_size
128M
max_execution_time
300 seconds (hard limit)
max_input_vars
3000
date.timezone
Europe/Copenhagen
display_errors
Off (errors are written to logs/php/error.log)

The number of PHP processes that can run at the same time depends on your plan. More processes mean that more visitors can get a response at once – this matters especially for online shops and busy WordPress sites.

PlanPHP processes at the same timeMemory per process
Starter8512 MB
Pro16512 MB
Business32512 MB
Max32512 MB

Can I change php.ini?

Not at the moment. There is no php.ini editor in the control panel, and the limits above are set for the whole web hosting. Some values (e.g. memory, disabled functions and which folders PHP may read) are locked for security reasons and can never be overridden.

When you hit a limit

What does "Allowed memory size of … bytes exhausted" mean?

A script has used more than 512 MB of memory. This is almost always caused by a plugin or an import that loads too much at once. Update or replace the plugin, or split the import up. A bigger plan gives you more PHP processes, but not more memory per process.

I can't upload a large file in WordPress. What do I do?

Uploading through the browser is limited to 128 MB per file. Larger files, e.g. videos or backup archives, you upload with SFTP under Web hosting → SSH/SFTP, where the 128 MB per file limit doesn't apply.

My script stops after 5 minutes. Can it run for longer?

No. A single request can run for 300 seconds at most. Split the work into smaller chunks, e.g. with an import that continues from where it left off.

The site is slow when there are lots of visitors. Will a bigger plan help?

Yes, if all PHP processes are busy at the same time. Pro has twice as many as Starter, and Business and Max have four times as many. Also consider a caching plugin, so that fewer pages have to be built by PHP each time.

Can I choose the time zone myself?

The server's time zone is Europe/Copenhagen. In WordPress you can choose a different time zone under Settings → General, and in your own scripts you can set it with date_default_timezone_set().

Read about web hosting

Didn't find the answer?

Reply within 1 working day · Mon–Fri 8:00–17:00 CET