Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix required rust version and add runing php-fpm notice in docs. #78

Merged
merged 2 commits into from
Jun 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 18 additions & 6 deletions docs/en/setup/service-agent/php-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Requirements

- GCC
- Rustc 1.56+
- Rustc 1.65+
- Cargo
- Libclang 9.0+
- Make
Expand Down Expand Up @@ -56,9 +56,9 @@ way:

## Install

> If you compile `skywalking_agent` in Alpine Linux, you have to disable `crt-static`, otherwise
> the problem will be throw: "the libclang shared library at /usr/lib/libclang.so.15.0.7 could not
> be opened: Dynamic loading not supported".
> **Notice:** If you compile `skywalking_agent` in Alpine Linux, you have to disable `crt-static`,
> otherwise the problem will be throw: "the libclang shared library at
> /usr/lib/libclang.so.15.0.7 could not be opened: Dynamic loading not supported".
>
> You can disable `crt-static` by environment variable:
>
Expand Down Expand Up @@ -90,10 +90,10 @@ Configure skywalking agent in your `php.ini`.

```ini
[skywalking_agent]
extension=skywalking_agent.so
extension = skywalking_agent.so

; Enable skywalking_agent extension or not.
skywalking_agent.enable = On
skywalking_agent.enable = Off

; Log file path.
skywalking_agent.log_file = /tmp/skywalking-agent.log
Expand All @@ -109,3 +109,15 @@ skywalking_agent.service_name = hello-skywalking
```

Refer to the Configuration section for more configuration items.

## Run

Start `php-fpm` server:

```shell
php-fpm -F -d "skywalking_agent.enable=On"
```

> **Notice:** It is necessary to keep the `php-fpm` process running in the foreground
> (by specifying the > `-F` parameter, etc.), running `php-fpm` as a daemon will cause the
> `skywalking-agent` reporter process immediately exit.