Skip to main content
Support
0
Contact us
Nederlands
Deutsch
Español
Dedicated serversFlexible VPSCloud TechnologyColocationChallenges in ITSectorsCareers
Cloud Compute

With Cloud Compute, you have access anytime and anywhere to a portal through which you can configure your entire IT environment from wherever you are in the world.

Cloud Storage

Reliable access to your files, infrastructure, and applications at all times – with no interruptions or delays. At Worldstream, we offer a variety of storage solutions.

Flexible cloud icon
Flexible cloud
Private cloud icon
Private cloud
Bare metal icon
Bare Metal Compute
Hollow cube icon
Object storage
Hollow cube icon
File storage
Block storage icon
Block storage
Backup storage icon
Backup storage
Need support?

With experienced engineers and an average response time track record on 7 minutes, you can expect a solid technical support solution in next to no time.

All Servers

Choose your Dedicated Server now. Custom or Instant Delivery. Powerhouse servers built for your use case.

Use Cases

Whatever your use case, we’re here to help you find the ideal solution.

Deal servers icon
Deals
AMD servers icon
AMD Processors
AI servers icon
Intel Processors
Hollow cube icon
Virtualisation, Containerisation and Orchestration
Hollow cube icon
Websites and Applications
Hollow cube icon
Gaming and Streaming Infrastructure

24/7/365 support with an average response time of just 7 minutes. Thanks to our own data centers, our engineers can go directly to your server for fast, hands-on assistance. Email or call us anytime.

Smart outsourcing

Some IT creates added value, while other types are supportive. Use that as a starting point for outsourcing.

Cost Efficiency

Complete IT packages may seem like the safe option, but when you consider the costs, other choices often make more sense.

IT flexibility & control

Outsourcing doesn’t mean losing control; it actually provides more flexibility and control.

Cloud repatriation

The cloud is not a final destination: You should continuously evaluate and adjust your cloud environment as needs evolve.

Financial services
Logistics & Transportation
Retail & E-commerce
Media & Entertainment
Tech & Software Development
Security
Managed Service Providers
Need support?

With experienced engineers and an average response time track record on 7 minutes, you can expect a solid technical support solution in next to no time.

Chat with usContact us
About WorldstreamAbout the technologyCasesKnowledge base
About usMeet the teamJobsBecome a resellerCertificationsOur data centersOur networkDDoS ProtectionAMD EPYC serversTechnology PartnersOperating SystemsAll casesEasyTerraDutch Drone CompanyPerfGridArticlesFAQNews and BlogsProducts and Services
Contact us

Call +31 (0) 174 – 712 117

Industriestraat 53, Naaldwijk

Nederlands
Deutsch
Español
0
Dedicated serversFlexible VPSCloud TechnologyColocationChallenges in ITSectorsCareersAbout WorldstreamAbout the technologyCasesKnowledge baseMy Worldstream
Contact
Support
NederlandsDeutschEspañol
  1. HomeHome
  2. Knowledge Base
  3. Dedicated Servers
  4. Common PHP configuration settings and what they do

Common PHP configuration settings and what they do

Applies to Dedicated Servers, VPS running PHP applicationsAudience Developer, sysadminLast reviewed September 2026

Quick answer

A handful of PHP settings cause most of the support questions: memory_limit, upload_max_filesize, post_max_size, max_execution_time, and display_errors. They're typically set in php.ini, and on some setups can be overridden per site or per directory.

On this page
  • Where these settings live
  • The settings that come up most often
  • Two settings that need to move together
  • Production versus development defaults

Where these settings live

PHP reads its configuration from a file called php.ini when it starts. On a typical Linux server there's often more than one copy, for example a separate one for the command-line interface and one for whatever runs PHP for the web server (PHP-FPM or an Apache module), so a change in the wrong file can look like it had no effect. Some hosting setups also allow overriding a subset of these settings per site or per directory, through an .htaccess file, a pool configuration file for PHP-FPM, or settings exposed in a control panel. Which method applies depends on how the server is set up, see Choosing a control panel: cPanel vs. DirectAdmin vs. no panel if a panel is involved. After changing php.ini directly, the web server or PHP-FPM service usually needs a restart before the new value takes effect.

The settings that come up most often

SettingWhat it controlsWhat happens if it's too low
memory_limitThe maximum amount of memory a single PHP script is allowed to use before PHP kills it.A script fails partway through with a fatal "Allowed memory size exhausted" error. This is a common cause of a large operation, such as a big file import or an image-processing job, failing partway rather than at the start.
upload_max_filesizeThe largest single file a script can accept through a file upload.An upload larger than this limit is rejected before the script even gets to process it.
post_max_sizeThe largest total size of an entire HTTP POST request, which includes the uploaded file plus any other form fields sent alongside it.The whole request is rejected, including any files within it, regardless of how upload_max_filesize is set.
max_execution_timeHow long, in seconds, a script is allowed to run before PHP forcibly stops it.A long-running operation, such as an import, export, or report generation, appears to hang and then fails partway through with no useful output.
display_errorsWhether PHP prints error messages, including file paths and stack traces, directly onto the page.Turned on: useful for spotting problems while developing locally. Left on for a public production site: a real information-disclosure risk, since error output can reveal file paths, database details, or other internals to anyone who triggers an error.

Two settings that need to move together

upload_max_filesize and post_max_size are frequently misunderstood as independent settings, but they work together. post_max_size caps the entire request, not just the file within it, so it needs to be equal to or larger than upload_max_filesize for a raised upload limit to actually take effect. Raising upload_max_filesize to allow a 50 MB file while leaving post_max_size at a smaller value simply means the request gets rejected at the post_max_size stage instead, with an error that can look confusingly unrelated to file size.

A typical pairing in php.ini looks like this:

upload_max_filesize = 64M post_max_size = 72M memory_limit = 256M max_execution_time = 300 Setting post_max_size slightly above upload_max_filesize gives a small amount of headroom for the other form fields sent alongside the file, which is a reasonable default when in doubt.

Production versus development defaults

display_errors deserves particular care because the right setting is different depending on the environment. On a local development machine, seeing the full error output on the page is genuinely useful, it's the fastest way to spot what broke. On a public-facing production site, that same behaviour hands anyone who can trigger an error a look at internal file paths, database queries, or other details that shouldn't be public. The usual production approach is to turn display_errors off and instead log errors to a file (via log_errors and error_log), so the information is still available to whoever is debugging the issue, without being shown to visitors.

Related articles

  • Hosting WordPress and WooCommerce on a dedicated server
  • Choosing a control panel: cPanel vs. DirectAdmin vs. no panel
Was this article helpful?

Solid IT. No Surprises

Sparring partner for IT maturity
Eliminating barriers so you can run
Predictable and transparant costs

Contact

  • Industriestraat 53, Naaldwijk
  • Payment Methods
  • Abuse
  • Developers Resources
  • Network Operations Center
  • About us
  • Meet the team
  • Jobs
  • Become a reseller
  • Certifications
  • Our data centers
  • Our network
  • DDoS Protection
  • AMD EPYC servers
  • Technology Partners
  • Operating Systems
  • Overview
  • FAQ
  • Cases
  • News & Blogs
  • Use Cases
Nederlands
Deutsch
Español
Nederlands
Deutsch
Español
  • Legal
  • Disclosure