As root, type this command
curl -s https://getcomposer.org/installer | /opt/lampp/bin/php
If it’s succesfull, you should see something like this
[root@localhost ferry]# curl -s https://getcomposer.org/installer | /opt/lampp/bin/php #!/usr/bin/env phpAll settings correct for using ComposerDownloading...Composer successfully installed to: /home/ferry/composer.phar Use it: php composer.phar
When you run Composer with XAMPP(Linux) in terminal, use PHP that comes with XAMPP. Ex., instead of typing
For easier access, just create bash alias for it.