<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Install AppDynamics in the context of an alpine container for a PHP application in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741333#M11809</link>
    <description>&lt;P&gt;Hi Have you set the permissions? How is your php application configured, does it run under a specific user/group? Please ensure to set the permissions recursively to allow the php user to access the Appdynamics php agent directory and the copied files within the php directory&lt;/P&gt;</description>
    <pubDate>Mon, 10 Mar 2025 15:13:42 GMT</pubDate>
    <dc:creator>Morelz</dc:creator>
    <dc:date>2025-03-10T15:13:42Z</dc:date>
    <item>
      <title>Install AppDynamics in the context of an alpine container for a PHP application</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741330#M11808</link>
      <description>&lt;P&gt;My goal is to run AppDynamics in the context of a PHP application using an Alpine container. I am using the official image php:8.2-fpm-alpine which can be seen here&lt;/P&gt;&lt;P&gt;&lt;A href="https://hub.docker.com/layers/library/php/8.2-fpm-alpine/images/sha256-fbe14883e5e295fb5ce3b28376fafc8830bb9d29077340000121003550b84748" target="_blank" rel="noopener"&gt;https://hub.docker.com/layers/library/php/8.2-fpm-alpine/images/sha256-fbe14883e5e295fb5ce3b28376fafc8830bb9d29077340000121003550b84748&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the appdynamics side, I am using the archive above which was the latest to be found in the download area&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;appdynamics-php-agent-x64-linux-24.11.0.1340.tar.bz2&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;I was able to successfully install the PHP agent thanks to the install script from the archive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;appdynamics-php-agent-linux_x64/install.sh&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when running command "php -m", I get this message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Warning: PHP Startup: Unable to load dynamic library 'appdynamics_agent.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/appdynamics_agent.so (Error loading shared library libstdc++.so.6: No such file or directory (needed by /usr/local/lib/php/extensions/no-debug-non-zts-20220829/appdynamics_agent.so)), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/appdynamics_agent.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20220829/appdynamics_agent.so.so: No such file or directory)) in Unknown on line 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried various ways to install but then run into other problems&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RUN apk add --no-cache \
    gcompat \
    libstdc++&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which leads to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Warning: PHP Startup: Unable to load dynamic library 'appdynamics_agent.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/appdynamics_agent.so (Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20220829/appdynamics_agent.so: __vsnprintf_chk: symbol not found), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/appdynamics_agent.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20220829/appdynamics_agent.so.so: No such file or directory)) in Unknown on line 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be wrong? I don't see much help in the documentation regarding appdynamic in the context of an alpine container.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 15:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741330#M11808</guid>
      <dc:creator>fab1en</dc:creator>
      <dc:date>2025-03-10T15:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Install AppDynamics in the context of an alpine container for a PHP application</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741333#M11809</link>
      <description>&lt;P&gt;Hi Have you set the permissions? How is your php application configured, does it run under a specific user/group? Please ensure to set the permissions recursively to allow the php user to access the Appdynamics php agent directory and the copied files within the php directory&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 15:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741333#M11809</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2025-03-10T15:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Install AppDynamics in the context of an alpine container for a PHP application</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741384#M11810</link>
      <description>&lt;P&gt;I have made a demo Dockerfile to reproduce the problem&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/fabarea/appdynamics-php-alpine-example.git" target="_blank"&gt;https://github.com/fabarea/appdynamics-php-alpine-example.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Notice: I have not included the appdynamics php agent file in the repo (appdynamics-php-agent-x64-linux-24.11.0.1340.tar.bz2). I am not sure it is allowed. It can be downloaded from appdynamics however&lt;/P&gt;&lt;P&gt;To answer your questions:&lt;/P&gt;&lt;P&gt;The container is run as root for now, so there is no permission issue. I am limiting the example to the PHP CLI for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 08:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741384#M11810</guid>
      <dc:creator>fab1en</dc:creator>
      <dc:date>2025-03-11T08:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Install AppDynamics in the context of an alpine container for a PHP application</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741693#M11820</link>
      <description>&lt;P&gt;You most likely didn't install the full glibc package or needed libraries with those 2 commands&lt;/P&gt;&lt;P&gt;We used it for something else(Not AppDynamics) on alpine before and worked great&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sgerrand/alpine-pkg-glibc" target="_blank" rel="noopener"&gt;https://github.com/sgerrand/alpine-pkg-glibc&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;i will try the solution as well shortly from my side but should resolve the issue with&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 12:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741693#M11820</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2025-03-13T12:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Install AppDynamics in the context of an alpine container for a PHP application</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741987#M11822</link>
      <description>&lt;P&gt;Hi Morelz,&lt;/P&gt;&lt;P&gt;Thanks for digging&lt;/P&gt;&lt;P&gt;Actually I already tried the suggested approach but got the same result / error. I double checked that and can confirm (the error). You can see the change I made&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/fabarea/appdynamics-php-alpine-example/pull/1" target="_blank" rel="noopener"&gt;https://github.com/fabarea/appdynamics-php-alpine-example/pull/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also if that is the way to go, the docs must be updated as it is stated to go with version &amp;gt;= 2.5&amp;nbsp; - and here we deal with an inferior version (2.35)&lt;/P&gt;&lt;P&gt;&amp;gt; "Any Linux distribution based on glibc 2.5+ and the&amp;nbsp;x86 32-bit or x86 64-bit architecture"&lt;/P&gt;&lt;P&gt;Link to the docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/appd/21.x/21.1/en/application-monitoring/install-app-server-agents/php-agent/php-supported-environments" target="_blank" rel="noopener"&gt;https://docs.appdynamics.com/appd/21.x/21.1/en/application-monitoring/install-app-server-agents/php-agent/php-supported-environments&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 14:59:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/741987#M11822</guid>
      <dc:creator>fab1en</dc:creator>
      <dc:date>2025-03-17T14:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Install AppDynamics in the context of an alpine container for a PHP application</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/742783#M11843</link>
      <description>&lt;P&gt;Hi Morelz,&lt;/P&gt;&lt;P&gt;Any news / progress on this?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 09:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Install-AppDynamics-in-the-context-of-an-alpine-container-for-a/m-p/742783#M11843</guid>
      <dc:creator>fab1en</dc:creator>
      <dc:date>2025-03-27T09:24:15Z</dc:date>
    </item>
  </channel>
</rss>

