Author Topic: [SOLVED] PEAR repository from http://pear.php.net could not be loaded  (Read 7822 times)

Offline ychaouche

  • Newbie
  • *
  • Posts: 6
    • technical memo
Hello guys,
I am following the INSTALL file that comes with roundcubemail-1.1.4 and at the composer stage I get the warning below :

Code: [Select]
root@messagerie-secours[10.10.10.20] /var/www/roundcubemail-1.1.4 # php composer.phar install --no-dev
Loading composer repositories with package information
Initializing PEAR repository http://pear.php.net
PEAR repository from http://pear.php.net could not be loaded. Your configuration does not allow connection to http://http://pear.php.net. See https://getcomposer.org/doc/06-config.md#secure-http for details.

The given link https://getcomposer.org/doc/06-config.md#secure-http suggests to add a secure-http option in the composer.json file, which I did, but I don't know if I put it in the right place. Here's my composer.json fie :

Code: [Select]
{
    "name": "roundcube/roundcubemail",
    "description": "The Roundcube Webmail suite",
    "license": "GPL-3.0+",
    "repositories": [
        {
            "type": "pear",
            "url": "http://pear.php.net/"
        },
        {
            "type": "composer",
            "url": "https://plugins.roundcube.net/"
        },
        {
            "type": "vcs",
            "url": "https://git.kolab.org/diffusion/PNL/php-net_ldap.git"
        }
    ],
    "require": {
        "php": ">=5.3.7",
        "roundcube/plugin-installer": "~0.1.6",
        "pear-pear.php.net/auth_sasl": "~1.0.6",
        "pear-pear.php.net/net_idna2": "~0.1.1",
        "pear-pear.php.net/net_sieve": "~1.3.4",
        "pear-pear.php.net/mail_mime": "~1.9.0",
        "pear-pear.php.net/net_smtp": "~1.7.1",
        "patchwork/utf8": "~1.2.3"
    },
    "require-dev": {
        "pear-pear.php.net/crypt_gpg": "*",
        "phpunit/phpunit": "*"
    },
    "suggest": {
        "pear-pear.php.net/net_ldap2": "~2.1.0 required for connecting to LDAP address books",
        "kolab/Net_LDAP3": "dev-master required for connecting to LDAP address books"
    },
    "minimum-stability": "dev",
    "secure-http" : false
}

Any help appreciated.
« Last Edit: March 15, 2016, 11:38:39 AM by ychaouche »

Offline ychaouche

  • Newbie
  • *
  • Posts: 6
    • technical memo
Re: PEAR repository from http://pear.php.net could not be loaded
« Reply #1 on: March 15, 2016, 11:38:03 AM »
The page doesn't mention to put it in a "config" object... So the right solution was to :

Code: [Select]
    "config":{
        "secure-http" : false
    }

Source