Postingan lainnya
Gagal Install Laravel
muncul pesan error seperti ini c:\xampp\htdocs>composer create-project --prefer-dist laravel/laravel latihan-cr ud
[Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not availab le. If you can not enable the openssl extension, you can disable this error , at your own risk, by setting the 'disable-tls' option to true.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--r epository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no -custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vc s] [--no-install] [--ignore-platform-reqs] [--] [] [] []
6 Jawaban:
coba ini tulis diterminal, lalu run lg utk install laravelnya :
composer config -g -- disable-tls true
klo ga bsa coba jg cara yg global :
composer global require "laravel/installer"
dokumentasinya : https://laravel.com/docs/5.4/installation
sudah dicoba gan, tapi muncul pesan erorr sepert iini Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Ajung>composer global require "laravel/installer" PHP Warning: Module 'openssl' already loaded in Unknown on line 0
Warning: Module 'openssl' already loaded in Unknown on line 0 Changed current directory to C:/Users/Ajung/AppData/Roaming/Composer You are running Composer with SSL/TLS protection disabled.
Belum pernah alami sih, tapi kemungkinan itu karena SSL nya disable yang seharus nya enable. Coba di cek kembali composer nya atau bisa di re-install kembali
<pre> composer config -g -- disable-tls true </pre>
yg itu fungsinya buat apa ya gan??? kalo kta mau enable lg bagaimana ??
buka file php.ini, lulu un-comment line berikut
<pre> extension=php_openssl.dll </pre>
lalu restart service php dan apachenya
mau tanya kalo muncul seperti ini
[Composer\Downloader\TransportException] The "http://repo.packagist.org/p/symfony/debug%24923ae55fec7c7ab953bf46468ad5df07 168714765b1871c945162f02a3105604.json" file could not be downloaded: failed to op en stream: HTTP request failed!