﻿---
title: Agent is not instrumenting code
description: If you see a similar entry in the agent log, this indicates an incorrect open_basedir configuration. For more details see the corresponding Limitations...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/troubleshoot/observability/apm/_agent_is_not_instrumenting_code
products:
  - APM Agent
  - APM PHP Agent
applies_to:
  - Serverless Observability projects: Generally available
  - Elastic Stack: Generally available
---

# Agent is not instrumenting code
## `open_basedir` PHP configuration option

If you see a similar entry in the agent log, this indicates an incorrect open_basedir configuration. For more details see [the corresponding Limitations sub-section](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3028/reference/apm/agents/php/set-up-apm-php-agent#limitation-open_basedir).
```
[Elastic APM PHP Tracer] 2023-08-23 14:38:12.223397+02:00 [PID: 268995] [TID: 268995] [WARNING]  [Lifecycle] [lifecycle.cpp:558] [elasticApmModuleInit] Elastic Agent bootstrap file (/home/paplo/sources/apm-agent-php/agent/php/bootstrap_php_part.php) is located outside of paths allowed by open_basedir ini setting. Read more details here https://www.elastic.co/guide/en/apm/agent/php/current/setup.html
```