Composer is not getting installed windows 7 - php

I'm trying to install Composer for on my Window 7 OS but its giving me following error:
Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org
Request to https://getcomposer.org/installer failed with errors:
Failed to open stream: No connection could be made because the target machine actively refused it.
My PHP Configuration is :
PHP Version 5.5.22
Apache 2.2.13
What could be the issue?

Try this
C:\bin>php -r "readfile('https://getcomposer.org/installer');" | php

Related

Problem with laravel 8 installing via composer [duplicate]

This question already has answers here:
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error: 1416F086
(7 answers)
Closed 1 year ago.
When I have tried to install composer for laravel 8 on XAMPP localhost (on Macbook pro- on the path /Applications/XAMPP/xamppfiles/htdocs/the my project folder),
and when I have run first command:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
I have gotten this message in command line (terminal):
-bash: /Applications/MAMP/bin/php/php7.4.16/bin/php: No such file or directory
further to, I have found the following information:
You need to install XAMPP for Windows, MAMP for Mac OS and Apache with PHP 5 on Linux.
on :
https://nmgtechnologies.com/blog/web-application-php-laravel-framework.html
(in requirements for Laravel section)
For that, I have installed localhost MAMP, then I have tried installing composer on MAMP by running 4 commands that existing on https://getcomposer.org/download/.
Commands 1 & 2 were OK, but for command 3, it gave me errors as follow:
*The "https://getcomposer.org/versions" 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
Retrying...
The "https://getcomposer.org/versions" 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
Retrying...
The "https://getcomposer.org/versions" 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
The download failed repeatedly, aborting.
So, I opened php folder (first one) in the following path:
/Applications/MAMP/bin/php/php7.4.16/bin/php
and I found other versions expect required one (php7.4.16),so I installed it, but when I opened its folder, I found its subfolders are different of other versions, and it doesn't contain same folders (bin, php) in the path.
for that, the installing is failed (command 3)
NOW:
Should I use and complete installing with /MAMP, could me to install on XAMPP
also?
how to solve this problem?
Note: I have currently PHP Version 8.0.9, and as show in installing path : php7.4.16, is the problem from here?
Thank you for my helping in advance.
I assume your last php was version 7.* and you installed 8.* now you want to use php version 8.*
for that you can add php installation path to your system environment paths.
MAMP and XAMP are offers a web server, database server, and php pre configured.
but if you dont want to use MAMP or Xamp applications you can download php from follwoing link and follow the documentation instructions for operating system.
https://www.php.net/downloads

Fatal error: Directive 'asp_tags' - Installtion of composer using command prompt PHP in windows 10

I am trying to install composer in command prompt with:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');
My installation instructions: https://getcomposer.org/download/
The above command returns this error:
"Fatal error: Directive 'asp_tags' is no longer available in PHP in Unknown on line 0".
I am using XAMPP with PHP version 7.2.x in my E: drive of desktop.
Please help to me solve this problem.

pecl install IBM_DB2 Installation Fails with 'make' failed: file not found: mac64/libcilkrts.5.dylib for architecture x86_64

I have IBM DB2 Developer Community Edition installed. DB2 itself works. I want to run PHP scripts on DB2 but need the necessary drivers.
When I run pecl install ibm_db2 I get the following error:
ld: file not found: mac64/libcilkrts.5.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ibm_db2.la] Error 1
ERROR: 'make' failed
I tried making a /opt/ibm/dsdriver directory and setting that as the DB2 installation directory but that didn't work. I also tried to point the installation directory at the sqllib directory (which is what you're supposed to do) but that results in a sqllib/lib not found an error. When I googled how to fix the latter, I wound up back at the former error.
Any ideas?

Installation of XDEBUG on OSX 10.11

When I'm trying install XDEBUG sudo pecl install xdebug - the next error occurred:
Build process completed successfully
Installing '/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so'
ERROR: failed to write /usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
(copy(/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so): failed to open stream: Operation not permitted)
Have you got any ideas how to solve that problem?
Thanks in advance.

Install PHP5 Via Macports Always Error

I want to install php5 on my mac using macports. It throws the following error on terminal:
Attempting to fetch php5-5.3.12_0+apache2.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/php5
Error: org.macports.archivefetch for port php5 returned: Failed to verify signature for archive!
Please see the log file for port php5 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php5/php5/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port php5 failed
What should I do?

Categories