This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-php.git


The following commit(s) were added to refs/heads/master by this push:
     new 07c689c  Fix required rust version and add runing php-fpm notice in 
docs. (#78)
07c689c is described below

commit 07c689cbbd465f4396d4285f9dccb3c258c3437b
Author: jmjoy <[email protected]>
AuthorDate: Wed Jun 7 11:08:46 2023 +0800

    Fix required rust version and add runing php-fpm notice in docs. (#78)
---
 docs/en/setup/service-agent/php-agent/README.md | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/docs/en/setup/service-agent/php-agent/README.md 
b/docs/en/setup/service-agent/php-agent/README.md
index 3a824cc..b621774 100644
--- a/docs/en/setup/service-agent/php-agent/README.md
+++ b/docs/en/setup/service-agent/php-agent/README.md
@@ -7,7 +7,7 @@
 ## Requirements
 
 - GCC
-- Rustc 1.56+
+- Rustc 1.65+
 - Cargo
 - Libclang 9.0+
 - Make
@@ -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:
 >
@@ -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
@@ -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.

Reply via email to