instalando falhas do compositor. Não é possível acessar http: //

1

Estou tentando instalar o compositor com o comando:

curl -s https://getcomposer.org/installer | php

E estou recebendo este erro:

PHP Warning:  Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
#!/usr/bin/env php
Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:

Your PHP (5.3.2-1ubuntu4.18) is quite old, upgrading to PHP 5.3.4 or higher is recommended.
Composer works with 5.3.2+ for most people, but there might be edge case issues.

Downloading...
Download failed: Unable to access https://getcomposer.org/composer.phar
Downloading...
Download failed: Unable to access https://getcomposer.org/composer.phar
Downloading...
Download failed: Unable to access https://getcomposer.org/composer.phar
The download failed repeatedly, aborting.

Alguma ideia?

    
por Langusten Gustel 16.01.2013 / 18:41

2 respostas

0

Resolvido: desativar o safe_mode resolveu o problema!

    
por 11.09.2013 / 15:07
1

Eu apenas tentei no meu:

[alexus@wcmisdlin02 ~]$ curl -s https://getcomposer.org/installer | php
#!/usr/bin/env php
Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:

Your PHP (5.3.3) is quite old, upgrading to PHP 5.3.4 or higher is recommended.
Composer works with 5.3.2+ for most people, but there might be edge case issues.

Downloading...

Composer successfully installed to: /home/alexus/composer.phar
Use it: php composer.phar
[alexus@wcmisdlin02 ~]$ php -v
PHP 5.3.3 (cli) (built: Jun 27 2012 14:13:03) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[alexus@wcmisdlin02 ~]$ 

Tente atualizar seu pacote PHP primeiro e tente novamente.

parece que algumas extensões do php estão faltando no seu final, aqui está o que eu instalei no meu final:

[alexus@wcmisdlin02 ~]$ rpm -qa | grep ^php
php-mysql-5.3.3-14.el6_3.x86_64
php-pear-1.9.4-4.el6.noarch
php-pecl-xhprof-0.9.2-5.el6.x86_64
php-gd-5.3.3-14.el6_3.x86_64
php-pear-Console-Color-1.0.3-1.el6.noarch
php-mbstring-5.3.3-14.el6_3.x86_64
php-pdo-5.3.3-14.el6_3.x86_64
php-common-5.3.3-14.el6_3.x86_64
php-soap-5.3.3-14.el6_3.x86_64
phpMyAdmin-3.5.4-1.el6.noarch
php-php-gettext-1.0.11-3.el6.noarch
php-xml-5.3.3-14.el6_3.x86_64
php-pecl-apc-3.1.9-2.el6.x86_64
php-pear-Console-Table-1.1.4-1.el6.2.noarch
php-mcrypt-5.3.3-1.el6.x86_64
php-cli-5.3.3-14.el6_3.x86_64
php-5.3.3-14.el6_3.x86_64
[alexus@wcmisdlin02 ~]$ 
    
por 16.01.2013 / 18:44