Closed JoniJnm closed 1 year ago
Hi,
There isn't enough information here to investigate further, can you please tell me:
What operating system you were running this on, and what version of apache you had installed?
Thanks Richard
Can you also share with me the exact command you ran to get this error?
Yes, it's apache 2.4 on ubuntu 22.04 docker image:
docker run --rm -it ubuntu:22.04 bash
inside:
apt update
apt install -y curl apache2 python3-distro net-tools
curl -sL -o /tmp/apache2buddy.pl https://raw.githubusercontent.com/richardforth/apache2buddy/master/apache2buddy.pl
apachectl -D BACKGROUND
perl /tmp/apache2buddy.pl
Ok ., its not really designed to run in docker but if you must run apache2buddy in docker then the container MUST be run with additional privileges otherwise it cant read the memory usage.
You can read about it here.
https://github.com/richardforth/apache2buddy/wiki/Docker-fun-and-games
Output: