PageRenderTime 54ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/full-presentation-incomplete.html

https://github.com/ajdyka/cfml-in-the-cloud
HTML | 331 lines | 243 code | 70 blank | 18 comment | 0 complexity | c7dd6f9ad406364989377968c817c542 MD5 | raw file
  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="utf-8" />
  4. <title>CFML in the Cloud</title>
  5. <link rel="stylesheet" media="all" type="text/css" href="css/layout.css" />
  6. <link rel="stylesheet" media="all and (width:600px)" type="text/css" href="css/layoutEmbedded.css" />
  7. <link rel="stylesheet" type="text/css" href="css/text.css" />
  8. <link rel="stylesheet" media="all and (width:600px)" type="text/css" href="css/textEmbedded.css" />
  9. <script src="js/speakeasy.js"></script>
  10. </head>
  11. <body>
  12. <section id="presentation">
  13. <!-- the presentation is a number of sections with the class slide-->
  14. <section class="slide presentation-title" id="current-slide">
  15. <!-- each slide is a section of class slide, with different types of slides, including presentation title -->
  16. <h1>CFML in the Cloud</h1>
  17. <h2>AJ Dyka @ajdyka</h2>
  18. </section>
  19. <section class="slide bullets-with-title">
  20. <!-- each slide is a section of class slide -->
  21. <h1>Summary</h1>
  22. <ul>
  23. <li>Setting up a Ninefold micro instance</li>
  24. <li>Installing Apache, a ColdFusion Engine, mysql, svn</li>
  25. <li>Configuring apache for multiple sites using VirtualDocumentRoot</li>
  26. <li>Scripted site deployments from svn</li>
  27. <li>Questions</li>
  28. </ul>
  29. </section>
  30. <section class="slide section-title">
  31. <!-- each slide is a section of class slide -->
  32. <h1>Setting up a Ninefold micro instance</h1>
  33. </section>
  34. <section class="slide bullets-without-title">
  35. <!-- each slide is a section of class slide -->
  36. <h1>Setting up Ninefold</h1>
  37. <ul>
  38. <li>Create a new instance</li>
  39. <ul>
  40. <li>XEN Basic Ubuntu 10.04 Server x64 PV r2.0</li>
  41. <li>Compute Micro</li>
  42. </ul>
  43. <li>Allocate a public IP</li>
  44. <ul>
  45. <li>Enable static NAT</li>
  46. <li>forward TCP ports 22, 80, 3306, 8080</li>
  47. </ul>
  48. <li><br/><strong>ssh into the server!</strong></li>
  49. </ul>
  50. </section>
  51. <section class="slide section-title">
  52. <!-- each slide is a section of class slide -->
  53. <h1>Installing Apache, a Coldfusion Engine, mysql, svn</h1>
  54. </section>
  55. <section class="slide code-with-title">
  56. <!-- each slide is a section of class slide -->
  57. <h1>Package Installation</h1>
  58. <h2>apache</h2>
  59. <section class="code">
  60. # update package install locations
  61. sudo apt-get update
  62. # install apache
  63. sudo apt-get install apache2
  64. # test apache
  65. # http://my.vm.ip/
  66. </section>
  67. </section>
  68. <section class="slide code-with-title">
  69. <!-- each slide is a section of class slide -->
  70. <h1>Package Installation</h1>
  71. <h2>more apache</h2>
  72. <section class="code">
  73. # create an entry in your local hosts file
  74. mate /etc/hosts
  75. my.vm.ip www.apug.railo
  76. # back to the server
  77. # fix group permissions for tomcat
  78. sudo usermod -g ubuntu tomcat6
  79. # create the new webroot
  80. sudo mkdir /wwwroot
  81. sudo chown ubuntu:ubuntu -R /wwwroot
  82. mkdir /wwwroot/apug.railo
  83. mkdir /wwwroot/apug.railo/www
  84. touch /wwwroot/apug.railo/www/index.cfm
  85. # enable proxy support
  86. sudo a2enmod proxy
  87. sudo a2enmod proxy_ajp
  88. sudo a2enmod proxy_http
  89. sudo a2enmod vhost_alias
  90. sudo /etc/init.d/apache2 restart
  91. sudo pico /etc/apache2/httpd.conf
  92. &lt;IfModule mod_jk.c&gt;
  93. JkMount /*.cfm ajp13
  94. JkMount /*.cfc ajp13
  95. JkMount /*.do ajp13
  96. JkMount /*.jsp ajp13
  97. JkMount /*.cfchart ajp13
  98. JkMount /*.cfres ajp13
  99. JkMountCopy all
  100. JkLogFile /var/log/apache2/mod_jk.log
  101. &lt;/IfModule&gt;
  102. &lt;Directory "/wwwroot"&gt;
  103. Options Indexes FollowSymLinks
  104. AllowOverride All
  105. Order allow,deny
  106. Allow from all
  107. &lt;/Directory&gt;
  108. &lt;VirtualHost *:80&gt;
  109. VirtualDocumentRoot /wwwroot/%2+/%1
  110. DirectoryIndex index.php index.html index.htm index.cfm
  111. #Proxy .cfm requests to railo
  112. &lt;IfModule mod_proxy_ajp.c&gt;
  113. &lt;Proxy *&gt;
  114. Order deny,allow
  115. Allow from all
  116. &lt;/Proxy&gt;
  117. ProxyPassMatch ^/(.*\.cfm)$ ajp://localhost:8009/$1
  118. ProxyPassMatch ^/(.*\.cfm\*)$ ajp://localhost:8009/$2
  119. ProxyPassReverse / ajp://localhost:8009/
  120. &lt;/IfModule&gt;
  121. &lt;/VirtualHost&gt;
  122. </section>
  123. </section>
  124. <section class="slide code-with-title">
  125. <!-- each slide is a section of class slide -->
  126. <h1>Package Installation - continued ...</h1>
  127. <h2>tomcat</h2>
  128. <section class="code">
  129. # update package install locations
  130. sudo apt-get install tomcat 6
  131. # test tomcat
  132. # http://my.vm.ip:8080/
  133. </section>
  134. </section>
  135. <section class="slide code-with-title">
  136. <!-- each slide is a section of class slide -->
  137. <h1>Package Installation - continued ...</h1>
  138. <h2>mysql</h2>
  139. <section class="code">
  140. # update package install locations
  141. sudo apt-get install mysql-server mysql-client
  142. # test mysql
  143. # connect using your favourite mysql UI
  144. </section>
  145. </section>
  146. <section class="slide code-with-title">
  147. <!-- each slide is a section of class slide -->
  148. <h1>Package Installation - continued ...</h1>
  149. <h2>Railo</h2>
  150. <section class="code">
  151. # download railo
  152. cd /opt
  153. sudo wget http://www.getrailo.org/down.cfm?item=/railo/remote/download/3.2.3.000/custom/all/railo-3.2.3.000-jars.tar.gz
  154. sudo mv down.cfm\?item\=%2Frailo%2Fremote%2Fdownload%2F3.2.3.000%2Fcustom%2Fall%2Frailo-3.2.3.000-jars.tar.gz railo.tar.gz
  155. sudo tar vxzf railo.tar.gz
  156. sudo chown tomcat6:tomcat6 -R railo-3.2.3.000-jars/
  157. cd railo-3.2.3.000-jars
  158. # install railo into tomcat
  159. cd ../tomcat6
  160. sudo pico web.xml
  161. # add inside the &lt;web-app> node
  162. &lt;servlet>
  163. &lt;servlet-name>CFMLServlet&lt;/servlet-name>
  164. &lt;servlet-class>railo.loader.servlet.CFMLServlet&lt;/servlet-class>
  165. &lt;init-param>
  166. &lt;param-name>configuration&lt;/param-name>
  167. &lt;param-value>{web-root-directory}/WEB-INF/railo/&lt;/param-value>
  168. &lt;description>Configuraton directory&lt;/description>
  169. &lt;/init-param>
  170. &lt;load-on-startup>1&lt;/load-on-startup>
  171. &lt;/servlet>
  172. &lt;servlet-mapping>
  173. &lt;servlet-name>CFMLServlet&lt;/servlet-name>
  174. &lt;url-pattern>*.cfm&lt;/url-pattern>
  175. &lt;url-pattern>*.cfml&lt;/url-pattern>
  176. &lt;url-pattern>*.cfc&lt;/url-pattern>
  177. &lt;/servlet-mapping>
  178. &lt;welcome-file-list&gt;
  179. ...
  180. &lt;welcome-file&gt;index.cfm&lt;/welcome-file&gt;
  181. &lt;welcome-file&gt;index.cfml&lt;/welcome-file&gt;
  182. &lt;/welcome-file-list&gt;
  183. sudo pico catalina.properties
  184. # to load the railo jars
  185. shared.loader=...,/opt/railo-3.2.3.000-jars/*.jar
  186. # restart tomcat
  187. sudo /etc/init.d/tomcat6 restart
  188. </section>
  189. </section>
  190. <section class="slide code-with-title">
  191. <!-- each slide is a section of class slide -->
  192. <h1>Package Installation - continued ...</h1>
  193. <h2>svn</h2>
  194. <section class="code">
  195. # install svn
  196. sudo apt-get install subversion libapache2-svn
  197. # prapare apache for svn
  198. sudo pico /etc/apache2/mods-available/dav_svn.conf
  199. &lt;Location /svn/>
  200. DAV svn
  201. SVNPath /home/svn
  202. SVNListParentPath On
  203. AuthType Basic
  204. AuthName "Subversion Repository"
  205. AuthUserFile /etc/subversion/passwd
  206. Require valid-user
  207. &lt;/Location>
  208. sudo chown -R www-data:www-data /home/svn
  209. sudo htpasswd -c /etc/subversion/passwd ajdyka
  210. # restart apache to activate changes
  211. sudo /etc/init.d/apache2 restart
  212. # create a repository
  213. sudo svnadmin create /home/svn/cfml
  214. # test apache
  215. # http://my.vm.ip/svn
  216. </section>
  217. </section>
  218. <section class="slide section-title">
  219. <!-- each slide is a section of class slide -->
  220. <h1>Scripted site deployments from svn</h1>
  221. </section>
  222. <section class="slide section-title">
  223. <!-- each slide is a section of class slide -->
  224. <h1>Questions?</h1>
  225. </section>
  226. <section class="slide section-title">
  227. <!-- each slide is a section of class slide -->
  228. <h1>still time to go?</h1>
  229. </section>
  230. <section class="slide code-with-title">
  231. <!-- each slide is a section of class slide -->
  232. <h1>Code example</h1>
  233. <section class="code">
  234. lorum ipsum
  235. </section>
  236. </section>
  237. <section class="slide code-without-title">
  238. <!-- each slide is a section of class slide -->
  239. <section class="code">
  240. ipsum lorum
  241. </section>
  242. </section>
  243. <section class="slide presentation-title">
  244. <!-- each slide is a section of class slide, with different types of slides, including presentation title -->
  245. <h1>Thank you</h1>
  246. <h3>CFML in the Cloud</h3>
  247. <h3>AJ Dyka @ajdyka</h3>
  248. <h3>https://github.com/ajdyka/cfml-in-the-cloud</h3>
  249. </section>
  250. </section> <!-- presentation -->
  251. <footer id="controls">
  252. <ul>
  253. <li><input type="number" min="1" step="1" value="1"></li>
  254. <li><a href="#" rel="last">&#9199;</a></li>
  255. <li><a href="#" rel="next">&#9654;</a></li>
  256. <li><a href="#" rel="previous">&#9664;</a></li>
  257. <li><a href="#" rel="home">&#9198;</a></li>
  258. </ul>
  259. </footer>
  260. </body>
  261. </html>