# A setting in .user.ini has no effect

UrbeStack sysadmin note about PHP. Last updated 30 Nov 2026.

A site's `.user.ini` file has no effect on `memory_limit`, upload size, or time limits. UrbeStack locks those values for the site, and you can change them in the domain's PHP settings.

## Symptoms

After you set `memory_limit = 512M` in `.user.ini`, `ini_get('memory_limit')` still returns `256M`. Calls to `ini_set()` for these settings return `false`.

## Cause

UrbeStack uses `php_admin_value` in the domain's PHP-FPM pool to set `memory_limit`, `upload_max_filesize`, `post_max_size`, `max_execution_time`, `max_input_vars`, and `disable_functions`. PHP ignores these settings in `.user.ini` and rejects changes to them through `ini_set()`.

UrbeStack lets the site change `display_errors` and `date.timezone`. You can set both in `.user.ini`.

PHP rereads a directory's `.user.ini` every 300 seconds, the value of `user_ini.cache_ttl`. A change to the file can take five minutes to take effect.

## Resolution

Set the limit in the domain's PHP settings.

```
urbestack-domain-set --name example.com --php-setting memory_limit=512M
```

Remove the unused setting from `.user.ini` so the file no longer shows a misleading value.

Use `.user.ini` to set `display_errors` or `date.timezone`.

```output
display_errors = On
date.timezone = America/Monterrey
```

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
