I've assumed you have already installed git on your local machine. You're going to need it.
Login and create an App
We're going to login and create an app. Then we're going to set up git access for later.
- Login in to Fortrabbit (or create an account)
- Create the app in Fortrabbit
- Give the app a name
- Give the app a description (in the notes section)
- Leave this window open for later.
- Open the .ssh folder with "gitbash"
- Open windows explorer
- Right click on the folder that matches your username (you'll find in under Desktop)
- Select the "gitbash" option.
- If you haven't yet created all the ssh stuff, google "github generating ssh keys"
- In git bash, run this command "clip < ~/.ssh/id_rsa.pub"
- Move the cursor into "Your public SSH Key"
- Paste the previously copied key info into this field (ctrl + v)
- If you want to have login details emailed to you, enter the email address into the field
- Click Save App Settings
- Wait. This takes a little while.
SSH Access to the server (via a key-pair)
SSH access is gold. Unfortunately, for Windows Users it is a pain to set up. Follow this step by step guide, and make sure you have installed Putty and PuttyGen. You don't need PuttyGen if you like to try and remember your password every login. That works for some people.
Or you could set up a key value pair so you never have to remember the username/password combination again.
- This may not work straight away, as the account needs to be verified. Come back in 5 minutes if it didn't.
- Open Putty
- In Saved Sessions, write a memorable name
- Click Save
- I do these two steps first so I always remember about it. You don't have to.
- Put in the hostname (ssh1.eu1.frbit.com)
- In category, expand "Connection" and click on "Data"
- Put your username in the Auto-login username field
- Go back to Session and click save
- Click open
- Type in your password
- You're now connected. If you don't want to use a keygen pair, you're done. If you do, follow these steps
- As we're using Putty, we need to create a keygen there
- Open PuttyGen
- Click Generate
- Move the mouse cursor like a good developer
- When it's generated, save the key
- Right clock on the generated key
- Select "select all"
- Right click and select copy
- Go back to your connected shell
- Type "cd ~/.ssh"
- Then type "vim authorized_keys"
- Press "i" to insert
- Assuming your public key is still in your clipboard, right click and it will be copied into the file
- Press "esc"
- Type ":wq!"
- This is now saved.
- Exit the shell.
- In putty, either create a new session or load the existing one
- Expand "Connection", then "SSH" and click on "Auth".
- Click on browse to select Private Key File
- Select the previously saved file.
- Go back to the session menu and save it
- Open
- You now have ssh access using a key (no more remembering passwords)
Installing Drupal
- http://drupal.org/documentation/install/download has all the instructions you need to install Drupal.
- On Fortrabbit, you need to change the .htaccess file after you have moved and untarred everything.
- Comment out line 14 of the .htaccess (Options +FollowSymLinks)'
- This isn't allowed by the server settings, as it's already set.
- Go to your apps URL and follow the prompts to install Drupal.
Getting mysql to work
- Use MySQL workbench. Download it from Oracle.
- Create a new connection.
- Set the conenction method to "Standard over SSH"
- Use the SSH and MySQL details that FortRabbit supplied to connect.
- If you want to create/edit users, use the Model view. That's not intuitive.
Alright then.
Enjoy the steps and let me know any steps I've missed.