Skip to content

[BUG] 手动安装 PHP 扩展无效是 BUG 还是我的操作有问题? #4366

@benzBrake

Description

@benzBrake

联系方式

896149631

1Panel 版本

v1.10.2-lts

问题描述

我是按照 https://bbs.fit2cloud.com/t/topic/2073 这个文档手动安装 SourceGuardian 扩展
装上以后跑源码还是提示安装扩展

PHP script '/www/sites/my.domain/[打码]' is protected by SourceGuardian and requires a SourceGuardian loader 'ixed.7.4.lin' to be installed.

1) Click here to download the required 'ixed.7.4.lin' loader from the SourceGuardian site
2) Install the loader to /usr/local/lib/php/extensions/no-debug-non-zts-20190902
3) Edit /usr/local/etc/php/php.ini and add 'extension=ixed.7.4.lin' directive
4) Restart the web server

重现步骤

1.应用管理里打开数据存储目录,上传 ixed.7.4.lin
2.打开容器的终端,检查

/www # cd /php/extensions/
/php/extensions # ls
ixed.7.4.lin

3.修改网站的 php.ini,最后加入

extension = /php/extensions/ixed.7.4.lin

搜狗截图20240331233656

4.保存并重启容器

期待的正确结果

No response

相关日志输出

2400:cb00:22:1024::a29e:77a7 - - [31/Mar/2024:23:10:50 +0800] "GET /action/plugins-edit?[打码] HTTP/2.0" 200 426 "https://my.domain/admin/plugins.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
2400:cb00:22:1024::a29e:77a7 - - [31/Mar/2024:23:13:02 +0800] "GET /action/plugins-edit?[打码] HTTP/2.0" 200 426 "https://my.domain/admin/plugins.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
2400:cb00:22:1024::a29e:77a7 - - [31/Mar/2024:23:13:04 +0800] "GET /action/plugins-edit?[打码] HTTP/2.0" 200 426 "https://my.domain/admin/plugins.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
2400:cb00:22:1024::a29e:77c0 - - [31/Mar/2024:23:15:46 +0800] "GET /action/plugins-edit?[打码] HTTP/2.0" 200 426 "https://my.domain/admin/plugins.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"

附加信息

我同时测试了 PHP8.2 和 PHP7.4 都不行,并且按照文档构建 php 镜像的时候扩展填 sg11、sg14或者sourceguardian都不行

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions