Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer installation fails : SSL handshake timeout

What's causing these errors? It has been like 10 times of these errors occur everytime I tried to install the composer

enter image description here

Note : environment variable is set up perfectly & laravel is the lastest version. (version 5 !?) , Window 7 32 bit

Thanks.

Some information gathered via phpinfo() about SSL

enter image description here

enter image description here

enter image description here

enter image description here

like image 802
Plain_Dude_Sleeping_Alone Avatar asked Jun 28 '15 14:06

Plain_Dude_Sleeping_Alone


People also ask

How do I fix the composer installer error?

Make sure you have no problems with your setup by running the installer's checks via curl -sS https://getcomposer.org/installer | php — –check . Try clearing Composer's cache by running composer clear-cache . Ensure you're installing vendors straight from your composer.

How do I know if my composer is working?

You can check your installed composer version using a command composer -v at the current path. Such as: composer -v.


1 Answers

Try to change default_socket_timeout in your php.ini to 360.

It´s weird but, in my case it was set default_socket_timeout = -1 and after i changed to default_socket_timeout = 360 worked just fine.

like image 119
brunohdaniel Avatar answered Sep 28 '22 00:09

brunohdaniel