Ubuntu composer to use xampp php instead of default path

Install composer like so:
sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php
After installation, you should then symlink it by running command:
sudo ln -s /opt/lampp/bin/php /usr/local/bin/php
And then if you type composer in your terminal, it will be accessible globally in your system.

Comments

Popular Posts