Composer - Installation keeps on failing - php

I am having a problem in installing Composer. Would you help me solve this?
Here is my scenario:
Before, I am using Composer. I can install packages in my project with no problems. My life was easy. But all of a sudden, something went wrong and I don't what it is. I do not change any configuration in my computer. If I do composer update, there is an error.
something like:
zlib_decode() data error.
I cannot post the screenshot of the error because I already uninstalled Composer hoping that If I reinstall it the problem would be solved.
So I have uninstalled composer, and tried to reinstall it. But now I cannot install Composer using both the windows cmd, and the composer-setup.exe. In the windows cmd, It says, "Installer is corrupted", In the composer-setup.exe the message is : (Failed to decode zlib stream)
Here is what I have tried so far:
I have disabled ESET antivirus. and IPV6 (composer.org degraded mode)
I have disable the firewall.
I have uninstalled composer. but now I cannot install it again.
Here are the other details hope it would help:
I am using Windows 10 64bit
I am using CodeIgniter
I am using XAMPP for Windows
I am running PHP 7.1
I don't know if it is relevant but we have a company domain. and maybe firewall
If there is anything you need to know I will provide it. Hope you can help me with this. Hope I explained my self well. Thanks!
Here is the screenshot:
Screenshot when installed using windows cmd

Related

"symbol not found in flat namespace '_PHP_MD5Init' " Error encountered in loading redis dynamic library

Tried upgrading to PHP 8.1.8 and then made changes to php.ini file for "extension_dir" but it's giving me the above error.
I do not understand how to resolve this. can Anyone help me out here?
Okay, so I'm new to PHP and had to figure out understanding the error for quite a longer time than required.
The problem was basically I had uninstalled redis extension (through pecl) and simply installed redis again using brew.
So then, I installed redis extension through pecl using arch -arm64 sudo pecl install redis and was good to go.

Path issue shows with composer installing via MAMP on macOS

When I have tried to install composer for laravel 8 on localhost MAMP
I have gotten this message in command line (terminal): -bash:
/Applications/MAMP/bin/php/php7.4.16/bin/php: No such file or directory
notice php7.4.16 shows in path, although I'm using ver 8, further to, this version is no longer supported and not in use at all.
I had searched for solving my problem in google, until I found the following treatment for solving path issue, but it doesn't benefit me:
https://craftcms.com/knowledge-base/mamp-with-composer-and-mysql-on-the-command-line
it has replaced the php ver path I have actually, but the problem is still.
why this version shows in my installation path although it's old & dead version?
what I should do?
kindly, anybody could help me to solve this problem?
Also, could me to install composer on XAMPP instead of MAMP, because I have a copy of it on my MacBook computer already?
Thank you for my helping in advance.

phpmyadmin only showing source code

I am trying to develop my own website on a ubuntu 16.04 machine with php7.
I have got everything working including php7, apache2, mysql but when I got to the installation of phpmyadmin, I hit a roadbump and was doing alot of googling and tried tons of suggestions I found but I still failed to get the installation complete.
After I did apt-get install phpmyadmin, the package got installed but when I went to 127.0.0.1/phpmyadmin/ I only see the source code.
I made sure I had all the extensions I needed and I also made sure php is running correctly on apache by doing a classic php.info()
P.S. I am installing from scratch and not doing and upgrade from an old system.
Many thanks!
source code for phpmyadmin

How to enable fastcgi on Yosemite with PHP 5.5.14

I'm using PHPStorm 9 on Mac OSX Yosemite 10.10 and when I try to open the project in the browser it returns a "502 Bad Gateway" error.
In PHPStorm it says php-cgi not found
Please ensure that configured PHP interpreter built as CGI program (--enable-fastcgi was specified)
I followed the answer by GotchaRob in this question, but it didn't help.
Unfortunately I can't post comments yet, so I've created a new question.
I would really appreciate if someone could provide some help.
Thank you.
i fix this problem with this solution
http://barratmp.blogspot.ru/2014/10/the-core-yosemite-php-version-is-5.html
but i install only php5.6
brew install homebrew/php/php56
after installation pointed the way to php6.5 in phpstorm
I couldn't make it work with p.Omelchenko's solution, so I tried what is suggested in this website by aswin_0348 and it worked like a charm!
Just sudo apt-get install php7.3-cgi

Many DLLs missing when installing composer (windows)

I'm trying to install composer on my computer but I get many errors about missing some DLLs. I've downloaded some of them but I cannot find any website, where to download libsybcomn64.dll. However, I don't think downloading each DLL from internet is a good solution.
I'm using Windows 7 x64 and have Apache 2 and PHP 5.6.9 installed - simple PHP works.
I've solved it myself.
And I'm really stupid. Problem was that when installing PHP I uncommented all extensions in php.ini - I thought the more there is, better. So I reset that whole file and uncommented only the necessary - php_pdo_mysql.dll and php_openssl.dll. Now it works.
Hope this will be helpful for someone...

Categories