/full-presentation-incomplete.html
HTML | 331 lines | 243 code | 70 blank | 18 comment | 0 complexity | c7dd6f9ad406364989377968c817c542 MD5 | raw file
- <!DOCTYPE html>
- <head>
- <meta charset="utf-8" />
- <title>CFML in the Cloud</title>
- <link rel="stylesheet" media="all" type="text/css" href="css/layout.css" />
- <link rel="stylesheet" media="all and (width:600px)" type="text/css" href="css/layoutEmbedded.css" />
- <link rel="stylesheet" type="text/css" href="css/text.css" />
- <link rel="stylesheet" media="all and (width:600px)" type="text/css" href="css/textEmbedded.css" />
- <script src="js/speakeasy.js"></script>
- </head>
- <body>
- <section id="presentation">
- <!-- the presentation is a number of sections with the class slide-->
- <section class="slide presentation-title" id="current-slide">
- <!-- each slide is a section of class slide, with different types of slides, including presentation title -->
-
- <h1>CFML in the Cloud</h1>
- <h2>AJ Dyka @ajdyka</h2>
- </section>
-
- <section class="slide bullets-with-title">
- <!-- each slide is a section of class slide -->
- <h1>Summary</h1>
- <ul>
- <li>Setting up a Ninefold micro instance</li>
- <li>Installing Apache, a ColdFusion Engine, mysql, svn</li>
- <li>Configuring apache for multiple sites using VirtualDocumentRoot</li>
- <li>Scripted site deployments from svn</li>
- <li>Questions</li>
- </ul>
- </section>
-
- <section class="slide section-title">
- <!-- each slide is a section of class slide -->
- <h1>Setting up a Ninefold micro instance</h1>
- </section>
- <section class="slide bullets-without-title">
- <!-- each slide is a section of class slide -->
- <h1>Setting up Ninefold</h1>
- <ul>
- <li>Create a new instance</li>
- <ul>
- <li>XEN Basic Ubuntu 10.04 Server x64 PV r2.0</li>
- <li>Compute Micro</li>
- </ul>
- <li>Allocate a public IP</li>
- <ul>
- <li>Enable static NAT</li>
- <li>forward TCP ports 22, 80, 3306, 8080</li>
- </ul>
- <li><br/><strong>ssh into the server!</strong></li>
- </ul>
- </section>
-
- <section class="slide section-title">
- <!-- each slide is a section of class slide -->
- <h1>Installing Apache, a Coldfusion Engine, mysql, svn</h1>
- </section>
- <section class="slide code-with-title">
- <!-- each slide is a section of class slide -->
- <h1>Package Installation</h1>
- <h2>apache</h2>
- <section class="code">
- # update package install locations
- sudo apt-get update
- # install apache
- sudo apt-get install apache2
- # test apache
- # http://my.vm.ip/
- </section>
- </section>
- <section class="slide code-with-title">
- <!-- each slide is a section of class slide -->
- <h1>Package Installation</h1>
- <h2>more apache</h2>
- <section class="code">
- # create an entry in your local hosts file
- mate /etc/hosts
- my.vm.ip www.apug.railo
- # back to the server
- # fix group permissions for tomcat
- sudo usermod -g ubuntu tomcat6
- # create the new webroot
- sudo mkdir /wwwroot
- sudo chown ubuntu:ubuntu -R /wwwroot
- mkdir /wwwroot/apug.railo
- mkdir /wwwroot/apug.railo/www
- touch /wwwroot/apug.railo/www/index.cfm
- # enable proxy support
- sudo a2enmod proxy
- sudo a2enmod proxy_ajp
- sudo a2enmod proxy_http
- sudo a2enmod vhost_alias
- sudo /etc/init.d/apache2 restart
- sudo pico /etc/apache2/httpd.conf
- <IfModule mod_jk.c>
- JkMount /*.cfm ajp13
- JkMount /*.cfc ajp13
- JkMount /*.do ajp13
- JkMount /*.jsp ajp13
- JkMount /*.cfchart ajp13
- JkMount /*.cfres ajp13
- JkMountCopy all
- JkLogFile /var/log/apache2/mod_jk.log
- </IfModule>
- <Directory "/wwwroot">
- Options Indexes FollowSymLinks
- AllowOverride All
- Order allow,deny
- Allow from all
- </Directory>
- <VirtualHost *:80>
- VirtualDocumentRoot /wwwroot/%2+/%1
- DirectoryIndex index.php index.html index.htm index.cfm
- #Proxy .cfm requests to railo
- <IfModule mod_proxy_ajp.c>
- <Proxy *>
- Order deny,allow
- Allow from all
- </Proxy>
- ProxyPassMatch ^/(.*\.cfm)$ ajp://localhost:8009/$1
- ProxyPassMatch ^/(.*\.cfm\*)$ ajp://localhost:8009/$2
- ProxyPassReverse / ajp://localhost:8009/
- </IfModule>
- </VirtualHost>
- </section>
- </section>
- <section class="slide code-with-title">
- <!-- each slide is a section of class slide -->
- <h1>Package Installation - continued ...</h1>
- <h2>tomcat</h2>
- <section class="code">
- # update package install locations
- sudo apt-get install tomcat 6
- # test tomcat
- # http://my.vm.ip:8080/
- </section>
- </section>
- <section class="slide code-with-title">
- <!-- each slide is a section of class slide -->
- <h1>Package Installation - continued ...</h1>
- <h2>mysql</h2>
- <section class="code">
- # update package install locations
- sudo apt-get install mysql-server mysql-client
- # test mysql
- # connect using your favourite mysql UI
- </section>
- </section>
- <section class="slide code-with-title">
- <!-- each slide is a section of class slide -->
- <h1>Package Installation - continued ...</h1>
- <h2>Railo</h2>
- <section class="code">
- # download railo
- cd /opt
- 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
- 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
- sudo tar vxzf railo.tar.gz
- sudo chown tomcat6:tomcat6 -R railo-3.2.3.000-jars/
- cd railo-3.2.3.000-jars
- # install railo into tomcat
- cd ../tomcat6
- sudo pico web.xml
- # add inside the <web-app> node
- <servlet>
- <servlet-name>CFMLServlet</servlet-name>
- <servlet-class>railo.loader.servlet.CFMLServlet</servlet-class>
- <init-param>
- <param-name>configuration</param-name>
- <param-value>{web-root-directory}/WEB-INF/railo/</param-value>
- <description>Configuraton directory</description>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>CFMLServlet</servlet-name>
- <url-pattern>*.cfm</url-pattern>
- <url-pattern>*.cfml</url-pattern>
- <url-pattern>*.cfc</url-pattern>
- </servlet-mapping>
- <welcome-file-list>
- ...
- <welcome-file>index.cfm</welcome-file>
- <welcome-file>index.cfml</welcome-file>
- </welcome-file-list>
- sudo pico catalina.properties
- # to load the railo jars
- shared.loader=...,/opt/railo-3.2.3.000-jars/*.jar
- # restart tomcat
- sudo /etc/init.d/tomcat6 restart
- </section>
- </section>
- <section class="slide code-with-title">
- <!-- each slide is a section of class slide -->
- <h1>Package Installation - continued ...</h1>
- <h2>svn</h2>
- <section class="code">
- # install svn
- sudo apt-get install subversion libapache2-svn
- # prapare apache for svn
- sudo pico /etc/apache2/mods-available/dav_svn.conf
- <Location /svn/>
- DAV svn
- SVNPath /home/svn
- SVNListParentPath On
- AuthType Basic
- AuthName "Subversion Repository"
- AuthUserFile /etc/subversion/passwd
- Require valid-user
- </Location>
- sudo chown -R www-data:www-data /home/svn
- sudo htpasswd -c /etc/subversion/passwd ajdyka
- # restart apache to activate changes
- sudo /etc/init.d/apache2 restart
- # create a repository
- sudo svnadmin create /home/svn/cfml
- # test apache
- # http://my.vm.ip/svn
- </section>
- </section>
- <section class="slide section-title">
- <!-- each slide is a section of class slide -->
- <h1>Scripted site deployments from svn</h1>
- </section>
- <section class="slide section-title">
- <!-- each slide is a section of class slide -->
- <h1>Questions?</h1>
- </section>
- <section class="slide section-title">
- <!-- each slide is a section of class slide -->
- <h1>still time to go?</h1>
- </section>
- <section class="slide code-with-title">
- <!-- each slide is a section of class slide -->
- <h1>Code example</h1>
- <section class="code">
- lorum ipsum
- </section>
- </section>
- <section class="slide code-without-title">
- <!-- each slide is a section of class slide -->
- <section class="code">
- ipsum lorum
- </section>
- </section>
- <section class="slide presentation-title">
- <!-- each slide is a section of class slide, with different types of slides, including presentation title -->
- <h1>Thank you</h1>
- <h3>CFML in the Cloud</h3>
- <h3>AJ Dyka @ajdyka</h3>
- <h3>https://github.com/ajdyka/cfml-in-the-cloud</h3>
- </section>
- </section> <!-- presentation -->
- <footer id="controls">
- <ul>
- <li><input type="number" min="1" step="1" value="1"></li>
- <li><a href="#" rel="last">⏯</a></li>
- <li><a href="#" rel="next">▶</a></li>
- <li><a href="#" rel="previous">◀</a></li>
- <li><a href="#" rel="home">⏮</a></li>
- </ul>
- </footer>
- </body>
- </html>