Skip to content

Commit 5bdf00b

Browse files
feat: add local php runtime guide (#45)
1 parent 820263d commit 5bdf00b

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
122 KB
Loading
126 KB
Loading

docs/user_manual/websites/php.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@
99
![img.png](../../img/websites/runtime_list.png)
1010
{: .browser-mockup}
1111

12+
### 1.1.创建 本地 PHP 运行环境
13+
14+
!!! note ""
15+
**点击创建运行环境按钮,选择本地**
16+
17+
- 需要先在服务器上安装 php-fpm。
18+
19+
![img.png](../../img/websites/runtime_local.png)
20+
{: .browser-mockup}
21+
22+
!!! note ""
23+
**1Panel 离线版**
24+
25+
- 可以从其他 1Panel 服务器拷贝 /opt/1panel/runtime/php/[php_name] 目录,并上传到离线版 1Panel 服务器,并使用 docker compose up 命令启动,记住映射的端口
26+
- 创建运行环境网站,选择刚刚创建的 PHP 运行环境,修改端口为刚才启动的端口
27+
28+
![img.png](../../img/websites/runtime_local_website.png)
29+
{: .browser-mockup}
30+
1231
## 2 管理 PHP 扩展
1332

1433
!!! note ""
@@ -32,6 +51,7 @@
3251

3352
适用于 PHP 应用需要额外的常驻进程的场景。
3453

54+
3555
![img.png](../../img/websites/runtime_php_daemon.png)
3656
{: .browser-mockup}
3757

0 commit comments

Comments
 (0)