PEAR是否可以使用HTTP身份验证?

时间:2022-08-29 07:14:35

I installed my own PEAR server with pirum. As I don't want anybody downloading my packages I configured a HTTP-Authentication via a .htaccessfile. Unfortunatley after that I can't discover any channels, nor can I install any packes. It says:

我用pirum安装了自己的PEAR服务器。由于我不希望任何人下载我的软件包,因此我通过.htaccess文件配置了HTTP身份验证。不幸之后,我发现任何渠道,我也无法安装任何包装。它说:

File http://my-pear-channel.com:80/rest/c/categories.xml not valid (received: HTTP/1.1 401 Authorization Required)

I already googled but I couldn't find anything helpful. Is there a way that PEAR can handle HTTP Authentication? Like giving it a username and password in any way?

我已经谷歌搜索,但我找不到任何有用的东西。 PEAR有没有办法处理HTTP身份验证?喜欢以任何方式给它一个用户名和密码?

If it is not possible, how can I secure my PEAR repository so that no one can see it or download any packages from it?

如果不可能,我如何保护我的PEAR存储库,以便没有人可以看到它或从中下载任何包?

1 个解决方案

#1


0  

It is possible to use password-protected channels; see the documentation.

可以使用受密码保护的频道;看文档。

$ pear config-set -c pear.company.com username johndoe
config-set succeeded
$ pear config-set -c pear.company.com password secret
config-set succeeded

#1


0  

It is possible to use password-protected channels; see the documentation.

可以使用受密码保护的频道;看文档。

$ pear config-set -c pear.company.com username johndoe
config-set succeeded
$ pear config-set -c pear.company.com password secret
config-set succeeded