i got this error when i'm trying to install composer for laravel framework :
"Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl"
i tried much but i don't know what should i do right now ?
i got win 8.1 , wamp 1.7 , php 5.4
open C:\wamp\bin\php\php5.4.12\php.ini & C:\wamp\bin\apache\Apache2.4.4\bin\php.ini
Find the line ;extension=php_openssl.dll and remove the semicolons ';'.
The line should look like extension=php_openssl.dll.
Related
I formatted my system and after that i noticed that my laravel clear code on CMD is no longer working rather each time i try to clear my cache on CMD, i get this error message 'php is not recognized as an internal or external command, operable program or batch file'. Please i need help as this has really been tormenting my laravel project. This is the code i have been using for the clearing C:\xam\htdocs\ib>php artisan cache:clear. I want to understand if am doing something wrong. And this started after i reinstalled my window 8.1 to window 10.
Actually it has nothing to do with cache or artisan. Everything you need to know to fix this is to understand this error.
php is not recognized as an internal or external command
Is is error directly from Windows command line, and not Laravel. You are trying to use "php" command that Windows does not understand because it is not build-it functionality.
You need to have installed PHP on your system and set alias that will point to php executable file (where you installed PHP).
If you already have PHP somewhere installed then you need to just set alias (system variable): How to access PHP with the Command Line on Windows?
But I guess previously you had some all-in-one server solution that will include PHP, Apache/Nginx, Mysql/Mariadb etc, and there ale many ways to do that on Windows:
XAMPP It will install Apache, Mysql, PHP etc.
Laragon Similar to XAMPP but it is more focused on Laravel.
Laradock Pack of Docker images with all software needed.
Laravel Homestand Ready to use environment on virtual machine.
Or just manually install PHP standalone ;)
Using Moc OS
I was using XAMPP 7.0.27 and
Now updated to XAMPP 7.2.28
After Upgrading not able to open PhpMyAdmin Page using
http://localhost/phpmyadmin/
Getting Following Error on Page
PHP 7.1.3+ is required.
Currently installed version is: 7.0.27
What Should be done to open phpMyAdmin ?
It seems something didn't get upgraded properly or there's a conflict, because XAMPP 7.2.28 should come with PHP version 7.2.28.
Have you some other PHP installation, perhaps you at one time tried to install your own PHP outside of XAMPP? I suggest removing any other installations to as to avoid conflicts. Your MacOS probably comes with PHP, which could be the conflict.
You could start with the XAMPP control panel to verify which is installed, which PHP is being used by XAMPP, and checking that everything is working together. The installer should have put all the pieces in the right places, so if after all that it still isn't working, I suggest reinstalling XAMPP.
I've an issue with composer running on a vagrantbox (Centos 7), which started to just suddenly happen.
I've already tried manually running the command/solution mentioned on the link below but to no avail.
(To clarify, i'm using vagrant not docker, but it was the closest question i found to my situation. Most of the information i found are related to composer.json not being valid, but here is packagist.org/packages.json which, is currently valid)
Composer not working in docker container: "https://packagist.org/packages.json" does not contain valid JSON
Here are the details of the issue.
While running composer update on terminal i get:
composer update
[Seld\JsonLint\ParsingException]
"https://repo.packagist.org/packages.json" does not contain valid JSON
Parse error on line 1:
^
Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
And when running composer install also on terminal every package returns this:
Failed to download psr/cache from dist: "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8"
appears broken, and returned an empty 200 response
Now trying to download from source
When running composer config --global repo.packagist composer packagist.org
the results are now
composer update
Loading composer repositories with package information
[Composer\Downloader\TransportException]
Your configuration does not allow connections to http://repo.packagist.org/packages.json. See https://getcomposer.o
rg/doc/06-config.md#secure-http for details.
Any ideas why this started to happen, how can i fix it?
Could also be IPv6 related, if your provider/system is configured for IPv6 but has no valid IPv6 route out to the internet.
This happened to me, and doing
sysctl -w net.ipv6.conf.all.disable_ipv6=1 (as root), then trying composer again fixed the issue.
To permanently apply it, add the rule to /etc/sysctl.conf (or wherever your OS preferred is)
same problem here, since php updated to 7.2.17.
On a centos 7 with php 7.2.16 composer run just fine...
Rollback to 7.2.16 is for now the only solution found...
Edit :
Seems to be a symfony flex issue : https://github.com/symfony/flex/issues/484
I had the same problem. After days of searching, I found a solution. It seems a PHP problem. Try to comment a line of curl extension on php.ini. I am using php version 5.6.
extension=php_curl.dll
Type ; before the extension name, at least it will be like this:
;extension=php_curl.dll
I had the same issue try to install symfony twig bundle. I ran :
set http_proxy=
set https_proxy=
composer require symfony/twig-bundle
and it worked
I ran a composer global require laravel/installer simply upgrading laravel/installer according to Laravel https://laravel.com/docs/9.x/installation#the-laravel-installer and the error was resolved.
Simply Just check out your internet and it well be ok
in the XAMP i have done follwing changes
comment the follwing line
;extension=php_curl.dll
and it worked properly
My solution: connect to a vpn before running the command!
For me basically the problem was because my IP was from Iran. Connected to a vpn and it worked perfectly.
it will works when we run this command in console
composer config disable-tls true
I bypassed the problem by redirecting the output to /dev/null.
composer require symfony/orm-pack > /dev/null
I have installed composer in windows platform. But when am trying to install the composer.phar through this command,
php -r "readfile('https://getcomposer.org/installer');" | php
it's giving me this error-
Warning: readfile(https://getcomposer.org/installer): failed to open
stream: A connection attempt failed because the connected par ty did
not properly respond after a period of time, or established connection
failed because connected host has failed to respond. in Command line
code on line 1.
The internet configuration is OK. Please help. Am going through a hell of time...installing Laravel .
Had also some problem with the installation.
At the end I used the installer:
https://getcomposer.org/Composer-Setup.exe
Installing with installer
That line just pulls and outputs a file that contains a PHP script that will actually install Composer, thats why it is piped to PHP in the end of the line.
If readfile doesn't work, you can simply download the file with your browser by saving the file from https://getcomposer.org/installer then execute it from the folder where you downloaded:
cat ~/installer | php
Assuming that you downloaded it to your home ~ folder with the name installer.
Manual installation
It also worth mentioning that this installer just makes a few checks after it copies the actual composer.phar file, that you can download by yourself from the bottom of the download page, with the link named: Latest Snapshot
Thats all. By downloading that file you technically "installed" Composer. Just go to the folder where you downloaded it and you can start to use it:
php composer.phar
I the solution above didn't work for me. So I found another way for time being to make things moving. So, I used Larapack. I know that's like running away from problems but it worth it for now. As I move on, I will find a way round.
Thanks a lot guys for your help.
Im trying to install Laravel on a windows machine.
I followed this guide up to point 11.
http://www.wikihow.com/Install-Laravel-Framework-in-Windows
I also ran two commands already (which I got from https://stackoverflow.com/a/18852026/2240163)
set http_proxy=<your_http_proxy:proxy_port>
set https_proxy=<your_https_proxy:proxy_port>
But on running composer install i am met with a message
C:\wamp\www\LARAVEL>composer install
Loading composer repositories with package information
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL
: The specified procedure could not be found.
failed to open stream: Cannot connect to HTTPS server through proxy
How can I get past the proxy to install Laravel 4.
.
.
Here in lay the solution
C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******#192.168.20.4:8080
C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******#192.168.20.4:8080
I then ran the install composer command again and presto!
https://stackoverflow.com/a/24958700/2240163
Thanks #mneute
Here in lay the solution
C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******#192.168.20.4:8080
C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******#192.168.20.4:8080
I then ran the install composer command again and presto!
https://stackoverflow.com/a/24958700/2240163
Thanks #mneute
I got this same issue when I ran composer -vvv install. I did it in windows7 computer behind a company firewall. I search and tried every possible answer but didn't work. Then I tried following and it did work
https://www.calazan.com/how-to-set-the-proxy-settings-in-windows-via-command-line/