Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: neufra on May 26, 2015, 08:26:06 AM

Title: Install Plugin composer?!
Post by: neufra on May 26, 2015, 08:26:06 AM
Hello out there,
my webspace is hosted by an ISP and I always had installed roundcube as webmail client. Now I wanted to get the plugin installer, downloaded all parts, editet composer.json as described and asked my ISP to run the script

Code: [Select]
php composer.phar install
He told me that they are not doing so. What other way do I now have to get this script running?

I don't have a console on my webspace, so what?

Hoping to answers

Regards
Franz-Georg
Title: Re: Install Plugin composer?!
Post by: SKaero on May 27, 2015, 12:14:09 PM
http://stackoverflow.com/questions/17219436/run-composer-with-a-php-script-in-browser
Title: Re: Install Plugin composer?!
Post by: neufra on May 27, 2015, 03:47:50 PM
Thanks for the link, I'll give it at try.

Just to be up-to-date my webhoster tried to install it from his console but he got the following error messages:

 
Code: [Select]
[Seld\JsonLint\ParsingException]               

  "./composer.json" does not contain valid JSON 

  Parse error on line 40:                       

  ...rk/utf8": "1.2.x" "johndoh/contextmenu... 

  ---------------------^                         

  Expected one of: 'EOF', '}', ':', ',', ']'     

I now have to check what I did wrong by filling out the composer.json. therefore I attached it and hope that someone could explain what I did wrong.



Title: Re: Install Plugin composer?!
Post by: SKaero on May 27, 2015, 07:07:40 PM
Look at the list:
Code: [Select]
        "php": ">=5.3.7",
        "roundcube/plugin-installer": ">=0.1.5",
        "pear/mail_mime": ">=1.8.9",
        "pear/mail_mime-decode": "~1.5.5",
        "pear/net_smtp": "dev-master",
        "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.2",
        "patchwork/utf8": "1.2.x"
"johndoh/contextmenu": "dev-release-2.1"
"johndoh/markasjunk2": "dev-release-1.9"
"stwa/google-addressbook": "dev-master"
"roundcube/chbox": "dev-master"
"johndoh/sauserprefs": "dev-release-1.14"
"kolab/calendar": "dev-master"
"kolab/libcalendaring": "dev-master"
"kolab/tasklist": "dev-master"
"roundcube/filters": "dev-master"
"elm/identity_smtp": "dev-master"
"roundcube/virtual_user_mapping": "dev-master"
"flanpy/drop_drag_contact": "dev-master"
"roundcube/ude_login": "dev-master"
"marneu/custom_logo": "dev-master"
"roundcube/customizr": "dev-master"
You need a comma after each line except the last line.
Title: Re: Install Plugin composer?!
Post by: neufra on May 28, 2015, 01:29:45 AM
@SKaero,
thanks a lot, I just didn't take care when adding the plugins.

kind regards
Franz-Georg
Title: Re: Install Plugin composer?!
Post by: neufra on May 29, 2015, 01:35:44 AM
@SKaero,

hello again, I changed the file and asked my ISP to run the script again, but he told me that there is another error:

Code: [Select]
php composer.phar install

Loading composer repositories with package information

Initializing PEAR repository http://pear.php.net

 

 

                                                                                                                                                     

  [RuntimeException]                                                                                                                                 

  Failed to execute git clone --mirror 'git://git.kolab.org/git/pear/Net_LDAP3' '/root/.composer/cache/vcs/git---git.kolab.org-git-pear-Net-LDAP3/' 

  fatal: unable to connect to git.kolab.org:                                                                                                         

  git.kolab.org[0: 95.128.36.55]: errno=Connection timed out                                                                                         

                                                                                                                                                     

 

 

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]

Hope you can give me a hint.

Best regards
Franz-Georg
Title: Re: Install Plugin composer?!
Post by: alec on May 29, 2015, 02:27:03 AM
https://github.com/roundcube/roundcubemail/commit/50caf4b02478d6688c12890e12f93ef83df69c98