Tuned for Performance

Created: 22 February, 2026 | Updated: 22 February, 2026


MyServer is tailed to run at peak performance, making it versatile for modern devs, with settings similar to a live VPS.

The following are the standard settings for MyServer.

memory_limit
Setting the maximum amount of memory in bytes that a script is allowed to allocate.

memory_limit = 1056M

realpath_cache_size

The size of the cache for real path names. This cache stores the resolved absolute path of files, reducing the need for repeated disk operations to resolve paths.

realpath_cache_size = 1M

realpath_cache_ttl

The number of seconds which will be stored for the real path cache.

realpath_cache_ttl = 3600

max_execution_time

The maximum time in seconds a script is allowed to run before it is terminated by the parser

max_execution_time = 180

max_input_time

The maximum time in seconds a script is allowed to parse input data, like POST and GET requests.If you deal with very large file uploads or complex POST requests, increasing this is necessary to prevent timeouts.

max_input_time = 180

max_input_vars

How many input variables ($_GET, $_POST, $_COOKIE, etc.) may be accepted. This is a security measure to protect against certain types of denial-of-service attacks.

max_input_vars = 2000

upload_max_filesize

The maximum size of an uploaded file, which directly affects the largest files your application can accept via HTTP uploads.

upload_max_filesize = 100M

post_max_size

This sets the maximum size of post data that will be accepted. This must be larger than `upload_max_filesize` because it also accounts for other POST data besides the file.

post_max_size = 150M


Opcode Caching (Crucial for Performance)

opcache.enable

opcache.enable=1

opcache.enable_cli

Enables OPcache for the CLI version of PHP. Useful if you run cron jobs or other PHP scripts from the command line that benefit from caching.

opcache.enable_cli=1

opcache.memory_consumption

The amount of shared memory (in MB) that the OPcache buffer will use. Too small and OPcache won't store all your scripts, reducing its effectiveness. Too large and you might be allocating more memory than needed.

opcache.memory_consumption=128

opcache.interned_strings_buffer

The size of the buffer (in MB) to store interned strings in. Interned strings are identical string literals that are stored only once in memory. This can help reduce memory usage and improve performance if your code uses many repeated strings.

opcache.interned_strings_buffer=8

opcache.max_accelerated_files

The maximum number of distinct keys (files) in the cache. If this is too low, OPcache will start dropping files from the cache, even if memory is available.

opcache.max_accelerated_files=25000

opcache.revalidate_freq

How often (in seconds) to check for updated script files. A value of `0` means OPcache will revalidate files on every request.`0` is great for development (seeing changes immediately) but terrible for production performance. A high value means changes might not appear immediately in production.

opcache.revalidate_freq=0

opcache.validate_timestamps

If enabled, OPcache will revalidate script timestamps on every request. If disabled, it will only revalidate based on `opcache.revalidate_freq`. Setting this to `0` (disabled) offers the best performance in production but requires a server restart or a cache clear to see file changes.

opcache.validate_timestamps=1