# My PHP app is timing out and throwing 5xx errors Running out of time to execute a request is the most common cause of timeouts and `5xx` errors in [PHP apps on App Platform](https://docs.digitalocean.com/products/app-platform/reference/buildpacks/php/index.html.md). By default, App Platform allows your app `30` seconds to execute a request before timing out. You can increase this time by editing your app’s `.user.ini` file and setting the `max_execution_time` value to a higher number. `user.ini` files allow you to configure and override PHP settings on a per directory basis. To increase your app’s maximum execution time, add a [`.user.ini` file](https://www.php.net/manual/en/configuration.file.per-user.php) to the root of your app with the following contents: `.user.ini` ```text max_execution_time=your_preferred_execution_time ``` You can set the execution time to a maximum of `100` seconds. ## Related Topics [How do I fix the error "Record is managed by an App on this account, and cannot be deleted"?](https://docs.digitalocean.com/support/how-do-i-fix-the-error-record-is-managed-by-an-app-on-this-account-and-cannot-be-deleted/index.html.md): Use the app’s Settings tab to remove domains associated with App Platform apps. [Why do I get the error “JavaScript heap out of memory” during deployment?](https://docs.digitalocean.com/support/why-do-i-get-the-error-javascript-heap-out-of-memory-during-deployment/index.html.md): Increase the heap memory by setting the environment variable NODE\_OPTIONS=–max-old-space-size=4096. [How do I fix a "permission denied for schema public" error in my dev database?](https://docs.digitalocean.com/support/how-do-i-fix-a-permission-denied-for-schema-public-error-in-my-dev-database/index.html.md): Delete the existing dev database and create a new one. Then make sure that the app deployment completes successfully.