Skip to content

Commit c16cac4

Browse files
petemsclaudejoepeeples
authored
docs: update httpd module installation instructions (#31798)
* docs: update httpd module installation instructions Replace deprecated tar.gz download approach with zip artifact download. The installation script now downloads the latest mod_datadog_artifact.zip from GitHub releases, extracts the module directly to the Apache modules directory, and provides clearer guidance for manual installation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * (docs) adds spacing to httpd script to make more readable Co-authored-by: Joe Peeples <[email protected]> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Joe Peeples <[email protected]>
1 parent 4dedcbb commit c16cac4

File tree

1 file changed

+13
-8
lines changed
  • content/en/tracing/trace_collection/proxy_setup

1 file changed

+13
-8
lines changed

content/en/tracing/trace_collection/proxy_setup/httpd.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,22 @@ To install the module:
3434
1. Run the following script to download the latest version of the module:
3535

3636
```bash
37-
curl -s https://api.github.com/repos/DataDog/httpd-datadog/releases/latest \
38-
| grep "mod_datadog-linux-x86_64.tar.gz" \
39-
| cut -d : -f 2,3 \
40-
| tr -d \" \
41-
| wget -qi -
37+
cd /tmp && \
38+
# Get latest release info using curl and basic text processing
39+
RELEASE_DATA=$(curl -s https://api.github.com/repos/DataDog/httpd-datadog/releases/latest) && \
40+
41+
# Extract download URL for the zip file using grep and sed
42+
DOWNLOAD_URL=$(echo "$RELEASE_DATA" | grep '"browser_download_url".*mod_datadog_artifact.zip' | sed 's/.*"browser_download_url": *"\([^"]*\)".*/\1/') && \
43+
44+
# Download and install
45+
curl -Lf -o mod_datadog_artifact.zip "$DOWNLOAD_URL" && \
46+
unzip -j mod_datadog_artifact.zip -d /usr/lib/apache2/modules/ && \
47+
rm mod_datadog_artifact.zip
4248
```
4349

44-
When unpacking the tarball, the resulting file is `mod_datadog.so`, the shared library that must
45-
be loaded by the server.
50+
This script downloads the latest release artifact zip file, extracts the `mod_datadog.so` shared library directly to the Apache modules directory, and cleans up the temporary files.
4651

47-
1. Place the file in the directory where HTTPd searches for modules, typically `/usr/local/apache2/modules`.
52+
1. If you used a different installation method or need to place the file manually, ensure the `mod_datadog.so` file is in the directory where HTTPd searches for modules, typically `/usr/local/apache2/modules` or `/usr/lib/apache2/modules/`.
4853

4954
1. Load the module by adding the following line in the configuration file:
5055

0 commit comments

Comments
 (0)