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] extension=skywalking_agent.so # Enable skywalking 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 worker threads, 0 will auto set as the cpu core size. # skywalking_agent.worker_threads = 3