Install Librenms via Proxy internet access

Hi there,

I am installing Librenms via proxy internet access. For Install PHP dependencies part, I have installed the composer package manually (global installation):

wget https://getcomposer.org/composer-stable.phar
mv composer-stable.phar /usr/bin/composer
chmod +x /usr/bin/composer

After that, I run:
su - librenms
./scripts/composer_wrapper.php install --no-dev

I got error message: Failed to download amenadiel/jpgraph from dist: Unable to use a proxy:malformed HTTP_PROXY url

I have configured proxy on /etc/environment, /etc/apt/apt.conf and /etc/wgetrc. Do you know what i am missing? Please give me an advice.

Jeff D

what is the contents of your HTTP_PROXY ?

echo $HTTP_PROXY
echo $HTTPS_PROXY

Sometimes people incorrectly configure their HTTPS_PROXY as https://my.proxy.server/ which is typically incorrect as the proxy server is a http server that can handle HTTPS however it is not running SSL on the initial connection.

So typically setting HTTPS_PROXY=http://my.proxy.server/ gives better results.

Thanks for your repones. Somehow after I renamed proxy on /etc/environment. The /scripts/composer_wrapper.php installation works.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.