Question

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:

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?

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?

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top