citykings / netsound

0 stars 0 forks source link

Installing composer with AApanel's PHP #31

Open citykings opened 3 weeks ago

citykings commented 3 weeks ago

specify the PHP path from AA Panel to ensure it uses the correct PHP version. For example: curl -sS https://getcomposer.org/installer | www/server/php/81/bin/php

move Composer to a global path and set it to use AA Panel’s PHP by default: sudo mv composer.phar /usr/local/bin/composer alias composer='www/server/php/81/bin/php /usr/local/bin/composer' avoid installing unnecessary PHP versions and ensure Composer runs correctly with the PHP version provided by AA Panel.