Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9170779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:04:26+00:00 2026-06-17T16:04:26+00:00

I am installing composer with the following cammand curl -s https://getcomposer.org/installer | php But

  • 0

I am installing composer with the following cammand

curl -s https://getcomposer.org/installer | php

But I am keep getting below error message

Zafars-MacBook-Pro:etc zafarsaleem$ curl -s https://getcomposer.org/installer | php
#!/usr/bin/env php
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 detect_unicode setting must be disabled.
Add the following to the end of your `php.ini`:
detect_unicode = Off

A php.ini file does not exist. You will have to create one.

How can I install composer be removing above error?

EDIT

Zafars-MacBook-Pro:etc zafarsaleem$ php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File:         (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

Latest Edit

After some research I found that php.ini file which is being used is in /etc/php.ini. However, when I checked this file in /etc folder it wasn’t there. /etc folder contained php.ini.default folder which linked to /private/etc/php.ini.default. So I added detect_unicode = Off in /etc/php.ini.default and the renamed this file to php.ini. Now when I execute below command

curl -s https://getcomposer.org/installer | php

OR

sudo curl -s https://getcomposer.org/installer | php

Then I get following errors

Zafars-MacBook-Pro:/ zafarsaleem$ sudo curl -s https://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Download failed: failed to open stream: Permission denied
Downloading...
Download failed: failed to open stream: Permission denied
Downloading...
Download failed: failed to open stream: Permission denied
The download failed repeatedly, aborting.

How can I install composer on my computer and remove above problems? Please help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:04:27+00:00Added an answer on June 17, 2026 at 4:04 pm

    To download / install on MacOSX, you can do the following steps or try the homebrew steps below:

    1. Goto a directory you can write to:

      cd ~

    2. get composer:

      curl -sS https://getcomposer.org/installer | php

    3. move composer into a bin directory in your $PATH var:

      sudo mv composer.phar /usr/local/bin/composer

    4. double check composer works

      composer about

    5. (optional) Update composer:

      sudo composer self-update

    Homebrew

    brew update
    brew tap homebrew/homebrew-php
    brew tap homebrew/dupes
    brew tap homebrew/versions
    brew install php55-intl
    brew install homebrew/php/composer
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When installing Windows SDK v6.1, following the chromium instructions ( http://dev.chromium.org/developers/how-tos/build-instructions-windows ) I run
while trying to install composer.phar through command line , got an error PHP Fatal
installing node-v0.4.8 on mac os x leopard, I get the following error: ../src/node_crypto.cc:2917: error:
After installing Snow Leopard I got the following error when connecting to a remote
Installing mysql2 (0.2.6) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native
After installing OS X Mountain Lion and XCode, I'm getting this error: Jonathans-MacBook-Air:fme jong$
While installing my project using the Controller, I got the following error. Starting transmission...
After installing VMware Server I get the following error when I try to access
Installing egit on indigo im given following options : I've just checked 'Eclipse Egit'
When installing git for windows, a user is asked to select from following 3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.