Last Updated: February 25, 2016
·
8.329K
· edgetor

Composer on Arch

Assumption: You have your LAMP setup based on the Arch Wiki

Step 1 - Download & Install Composer (www.getcomposer.com)

 curl -sS https://getcomposer.org/installer | php
(sudo) mv composer.phar /usr/local/bin/composer

Step 2 - Editing your php.ini

  1. Un-comment extension=phar.so
  2. Un-comment extension=openssl.so
  3. Go to open_basedir declaration (line 309 for me) - Add ":/user/local/bin" to the end

Step 3 - Restart Httpd Server

sudo systemctl restart httpd

Step 4 - Update Composer (Recommended)

(sudo) composer self-update