There is plenty of debate these days regarding the ideal load balanced architecture. This is the architecture I recommend for a small multi-server setup.

  • Linux
  • Apache
  • Postgresql Replication
  • PHP
  • Subversion codebase deployment

HOW TO SETUP DREAMWEAVER WITH SVN+SSH (WINDOWS XP)

Assumptions:

a. You already have a working SVN repository setup on the server
b. You already have SSH access to your linux server
c. You do NOT already have the following existing file on the server: ~/.ssh/authorized_keys
(if you do, any existing public keys will be overwritten)

Instructions:

1. install dreamweaver 8 or CS3

2. install WinSCP - http://winscp.net/eng/download.php

3. install SVN4DW dreamweaver extension - http://ezcto.com/downloads/SVN4DW.zip

4. install TortoiseSVN - http://tortoisesvn.net/downloads

5. download putty binaries - http://the.earth.li/~sgtatham/putty/latest/x86/putty.zip
extract them to c:\Program Files\PuTTY

6. run c:\Program Files\PuTTY\putty.exe

7. enter the hostname (or ip address) of your server
enter a name for the saved session (make this different than the hostname) i.e. MySession
click save
click open

8. log in to your linux shell account with your username and password and type the following commands:
[~]$ ssh-keygen -t rsa
– press the enter key at each prompt –
[~]$ chmod 700 .ssh
[~]$ cd .ssh
[~]$ cp id_rsa.pub authorized_keys
[~]$ chmod 600 authorized_keys
[~]$ chmod 711 ~
[~]$ exit

9. open WinSCP (it should be on your Start Menu > All Programs > WinSCP)

10. enter the hostname (or ip address)
enter your username
enter your password
select ‘SCP’ as the file protocol
click login

11. in the .ssh folder, there is a file called ‘id_rsa’.
download this file to c:\Program Files\PuTTY\keys

12. run c:\Program Files\PuTTY\puttygen.exe
on the conversions menu, click import key
select c:\Program Files\PuTTY\keys\id_rsa
click open
make sure SSH-2 RSA is selected
click save private key
click yes when prompted to save without a passphrase
save the file with the same name as your putty session, i.e. MySession.ppk

13. run c:\Program Files\PuTTY\putty.exe

14. click your saved session
click load
click Connection > SSH > Auth
click browse
select the ppk file you created (from step 12)
scroll up and click session
click save
click open

15. type your username when prompted

16. it should say “Authenticating with public key…”. if not you did something wrong. start over.

17. go to ‘my computer’ and open your hard drive ‘c:\’

18. right click inside the my computer window and choose SVN Checkout…

19. the URL of repository should look like this:
svn+ssh://username@MySession/home/repo
(where ‘/home/repo’ is the path to the repository on your server)

20. select a Checkout directory. this is going to be your ‘local site’ folder in dreamweaver.

21. click ok and wait for all files to be downloaded

22. open dreamweaver

23. create a new site (Site > Manage Sites > New)
for the local root folder, select the checkout directory from step 20
click ok

24. now let’s setup a keyboard shortcut to make it easier to commit.
on the edit menu, select Keyboard Shortcuts…

25. click the duplicate set button
choose Menu Commands
click SVN > Commit
click the + button next to shortcuts
click in the text field next to ‘Press key’
press the desired shortcut keys, i.e. Ctrl + Shift + S
click change
click ok

26. open tortoise settings
click ‘dialogs 1′
in the ‘progress’ section, set ‘auto-close if no errors’

27. whew! now you’re all set up!!!