Error on Installing Laravel or Lumen - laravel

Whenever i install laravel i get this error. Is there a problem with my system or there is any firewell issue which is blocking the installation.
I am using ubuntu with PHP 5.6.30-7+deb.sury.org~trusty+1 (cli).
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed

Composer have to use a proxy.
Linke here: PHP Composer behind http proxy and Composer cannot download files
It will be like :
export HTTP_PROXY="http://my-corp-proxy.mcdonalds"
And then :
php composer.phar install

Related

How do I install Laravel 6.x UI Components?

Laravel 6.x does come with UI components installed.
The commands I tried were:
composer require laravel/ui --dev
php artisan ui vue --auth
but when I tried the first command, the following error occurred:
Installation failed, reverting ./composer.json to its original content.
[Composer\Downloader\TransportException]
The "http://repo.packagist.org/p/dnoegel/php-xdg-base-dir%2413f0252465cdc3c
27cde69055504a5a15fac72d5202de71c218bb397117734c7.json" file could not be d
ownloaded: php_network_getaddresses: getaddrinfo failed: nodename nor servn
ame provided, or not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: nodena
me nor servname provided, or not known
What is the correct command(s) in order to install Laravel 6.x UI components?
composer require laravel/ui
php artisan ui:auth
for more info you can see here https://laravel-news.com/running-make-auth-in-laravel-6
I faced the same issue; the following command solved the problem for me for laravel "6.*"
composer require laravel/ui "^1.0" --dev

CERTIFICATE_VERIFY_FAILED while installing cairocffi with pip

When I run:
pip install cairocffi==0.9.0
I get:
...
Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852) -- Some packages may not be found!
...
The error occurs due to some SSL certificates missing. To solve this I ran:
pip install certifi==2017.4.17

Installing Laravel gives Error

I try to install Laravel 5.4 in windows 10 but during the installation it gives this error :
The "https://getcomposer.org/versions" file could not be downloaded:
php_network_getaddresses: getaddrinfo failed: Hôte inconnu. failed to
open stream: php_network_getaddresses: getaddrinfo failed: Hôte
inconnu.
open the terminal (Win + R) and run composer check if it works or not ?
if it works then you have to refresh the web server by running this command .
sudo /etc/init.d/apache2 restart OR sudo /etc/init.d/apache restart
else install the composer once again . Watch here
then run this command for installing laravel
composer create-project --prefer-dist laravel/laravel blog "5.4.*"

laravel scout full text search installation error

while installing the laravel/scout in my laravel 5 app, am getting error.
I have run the following command in putty
composer require laravel/scout
And I got the following error message:
php artisan clear-compiled
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
Any idea why am getting this error message.

OS X Laravel Installation fail on XAMPP using Composer

I have installed composer as Laravel docs instruct. I then ran the following command to instal Laravel: composer create-project laravel/laravel your-project-name --prefer-dist
I get the following:
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Installing laravel/laravel (v5.1.4)
- Installing laravel/laravel (v5.1.4)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/901a45fd96a7479e77f63ea5f8d1147a2766cafa" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing laravel/laravel (v5.1.4)
Cloning 901a45fd96a7479e77f63ea5f8d1147a2766cafa
Created project in your-project-name
> php -r "copy('.env.example', '.env');"
Loading composer repositories with package information
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Installing dependencies (including require-dev)
- Installing vlucas/phpdotenv (v1.1.1)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download vlucas/phpdotenv from dist: The "https://api.github.com/repos/vlucas/phpdotenv/zipball/0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing vlucas/phpdotenv (v1.1.1)
Cloning 0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa
- Installing symfony/var-dumper (v2.7.3)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download symfony/var-dumper from dist: The "https://api.github.com/repos/symfony/var-dumper/zipball/e8903ebba5eb019f5886ffce739ea9e3b7519579" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing symfony/var-dumper (v2.7.3)
Cloning e8903ebba5eb019f5886ffce739ea9e3b7519579
- Installing symfony/translation (v2.7.3)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download symfony/translation from dist: The "https://api.github.com/repos/symfony/Translation/zipball/c8dc34cc936152c609cdd722af317e4239d10dd6" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing symfony/translation (v2.7.3)
Cloning c8dc34cc936152c609cdd722af317e4239d10dd6
- Installing symfony/routing (v2.7.3)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download symfony/routing from dist: The "https://api.github.com/repos/symfony/Routing/zipball/ea9134f277162b02e5f80ac058b75a77637b0d26" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing symfony/routing (v2.7.3)
Cloning ea9134f277162b02e5f80ac058b75a77637b0d26
So first it says that it failed to do blah but then it says installing, cloning etc. I check the folder your-project-name and it has like 190MB of stuff. So did it work or not? If not how can I fix this issue?
I am running OS X Mavericks and PHP 5.6+
I looked at other answers but none seem to work for my system.
I install openssl via homebrew:
brew install openssl
This installs the openssl certificates to /usr/local/etc/openssl/cert.pem, so we can now use the new PHP 5.6 INI setting openssl.cafile to tell PHP where to find the certificates:
Adding
openssl.cafile=/usr/local/etc/openssl/cert.pem
Try this
composer create-project laravel/laravel c:/xampp/htdocs/laravel
-Here the path is(c:/xampp/htdocs/laravel) so change it to yours.
-If not work,than you have to reinstall ca-cert package and it will
fixed the problem!

Resources