- Download getcomposer.org/composer.phar to your account's home directory —
/home/username. - Edit
.bashrcfile in same directory by addingalias composer='/usr/local/php56/bin/php-cli ~/composer.phar'line. Updatephp56part to current relevant version, if necessary. - Restart SSH session or run
source ~/.bashrcto reload config. - Use
composercommand!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ### System Setup ### | |
| DIRS="/var/www/shop/public_html" | |
| BACKUP=/tmp/backup.$$ | |
| NOW=$(date +"%d-%m-%Y") | |
| DELDATE=$(date -d "-7 days" +"%d-%m-%Y") | |
| ### MySQL Setup ### | |
| MUSER="xxx" |