php.ini
.For Debian-base OS:
sudo apt install gcc make llvm-dev libclang-dev clang protobuf-compiler
Refer to https://forge.rust-lang.org/infra/other-installation-methods.html#standalone-installers.
For linux x86_64 user:
wget https://static.rust-lang.org/dist/rust-1.65.0-x86_64-unknown-linux-gnu.tar.gz tar zxvf rust-1.65.0-x86_64-unknown-linux-gnu.tar.gz cd rust-1.65.0-x86_64-unknown-linux-gnu ./install.sh
pecl install skywalking_agent
git clone --recursive https://github.com/apache/skywalking-php.git cd skywalking-php phpize ./configure make make install
[skywalking_agent] extension=skywalking_agent.so ; Enable skywalking_agent extension or not. skywalking_agent.enable = On ; Log file path. skywalking_agent.log_file = /tmp/skywalking-agent.log ; Log level: one of `OFF`, `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`. skywalking_agent.log_level = INFO ; Address of skywalking oap server. skywalking_agent.server_addr = http://0.0.0.0:11800 ; Application service name. skywalking_agent.service_name = hello-skywalking ; Skywalking version. skywalking_agent.skywalking_version = 8 ; Skywalking authentication token, let it empty if the backend isn't enabled. ; skywalking_agent.authentication = ; Skywalking worker threads, 0 will auto set as the cpu core size, default is 0. ; skywalking_agent.worker_threads = 3 ; Skywalking agent runtime directory, default is /tmp/skywalking-agent. ; skywalking_agent.runtime_dir = /tmp/skywalking-agent