anavdesign
9/22/2016 - 6:40 PM

A2 Hosting Setup

A2 Hosting Setup

# A2 Hosting Setup

# New Account
1. Create Cpanel Password

# PHP Version
Update PHP Version 5.6

## A2 Hosting .bash_profile
export PS1='a2:[\W] > '
alias ls='ls -laxo -G'
alias bashpro='nano ~/.bash_profile'
alias sbash='source ~/.bash_profile'

## SSH Key
1. Generate SSH Keys

2. Add Public Key to A2Hosting
	- Authorize

3. Add New Key to SSH Config
	# A2 Hosting
	Host 123456.a2hosting.com
		Hostname 123456.a2hosting.com
		PreferredAuthentications publickey
		IdentityFile ~/.ssh/lvmcc-group/id_rsa
		IdentitiesOnly yes

4. Add alias to .bash_profile
	- alias namessh='ssh -p 7822 user@123456.a2hosting.com'

# Composer
Install Composer

	1. $curl -sS https://getcomposer.org/installer | php
	2. $mkdir common && mv composer.phar common

# Drush
Install Drush with Composer on A2 Hosting
$ composer global require drush/drush:8.*

# Drush Alias
1. Enable rsync on a2 Hosting
https://www.a2hosting.com/kb/developer-corner/linux/using-rsync