With the rise of cloud computing and the death of the Xserve, learn how you can deploy your WebObjects applications on a Linode private virtual server.
19. Preliminary Setup
• Set Timezone
• dpkg-reconfigure tzdata
• Create admin user
• adduser admin
20. Preliminary Setup
• Add admin user to /etc/sudoers
• visudo
• add “admin ALL=(ALL) ALL” to User priveleges
• Test ssh login with admin
• Test sudo with admin
21. Secure SSH
• On Linode (as admin)
• cd ~
• mkdir .ssh
• On local machine
• ssh-keygen -t dsa
• ssh admin@demo.domain.com "echo `cat ~/.ssh/id_dsa.pub`
>> ~/.ssh/authorized_keys"
22. Secure SSH
• Test login
• sudo nano /etc/ssh/sshd_config
• Change port: Port 22022
• Disable root login: PermitRootLogin no
• Allow only admin user: AllowUsers admin
• Disable password auth: PasswordAuthentication no
23. Secure SSH
• Restart: sudo /etc/init.d/ssh restart
• Do not close terminal!
• Test login
32. Build Apache Adaptor
• Curl Wonder source from webobjects.mdimension.com
• cd Wonder/Utilities/Adaptors/
• nano make.config and change ADAPTOR_OS
• remove srandomdev() call as per wiki
• make and install as per wiki
40. WO App Installation
• Curl the app.woa from the build server
• Untar and mv to /opt/Local/Library/WebObjects/Applications/
• Curl the WSR app.woa from the build server
• Untar and mv to /srv/www/xxx.com/public_html/WebObjects/
• Fix permissions
41. Linode Performance Tuning
• Choose the correct size Linode for the job
• Tune config for the service
• Apache
• MySQL
• Linode Library as lots of tips
42. Linode Backup
• Linode offers a file system level backup service
• Enabled per Linode ($5 - $40/mo)
• 4 Snapshots (today, 1 weekly, 2 week, user triggered)
• DB export may be required for full coverage