How to install OpenTelemetry PHP Extension in VirtualMin
Login to ssh to your virtualmin server using root user. Run following commands cd /usr/local/src sudo git clone https://github.com/open-telemetry/opentelemetry-php-instrumentation.git cd opentelemetry-php-instrumentation/ext Build using PHP 8.2's tools phpize8.2 ./configure --with-php-config=/usr/bin/php-config8.2 make sudo make install Enable the extension in PHP 8.2 echo "extension=opentelemetry.so" | sudo tee /etc/php/8.2/mods-available/opentelemetry.ini sudo phpenmod -v 8.2 opentelemetry sudo systemctl restart php8.2-fpm Confirm successful installation php8.2 -m | grep opentelemetry

Login to ssh to your virtualmin server using root user.
Run following commands
cd /usr/local/src
sudo git clone https://github.com/open-telemetry/opentelemetry-php-instrumentation.git
cd opentelemetry-php-instrumentation/ext
Build using PHP 8.2's tools
phpize8.2
./configure --with-php-config=/usr/bin/php-config8.2
make
sudo make install
Enable the extension in PHP 8.2
echo "extension=opentelemetry.so" | sudo tee /etc/php/8.2/mods-available/opentelemetry.ini
sudo phpenmod -v 8.2 opentelemetry
sudo systemctl restart php8.2-fpm
Confirm successful installation
php8.2 -m | grep opentelemetry