<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Digital Rewind</title>
    <description>Jeff's thoughts and code for Javascript, CSS, Coldfusion, Lucee, Railo, MariaDB, MySQL and Linux 
</description>
    <link>http://digitalrewind.com/</link>
    <atom:link href="http://digitalrewind.com/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Wed, 07 Dec 2016 19:57:01 +0000</pubDate>
    <lastBuildDate>Wed, 07 Dec 2016 19:57:01 +0000</lastBuildDate>
    <generator>Jekyll v3.3.1</generator>
    
      <item>
        <title>Lucee Locking Down Admin and Allowing CFGRAPH</title>
        <description>&lt;p&gt;I was reading through the &lt;a href=&quot;http://docs.lucee.org/guides/cookbooks/lockdown-guide.html&quot;&gt;Lucee Lockdown&lt;/a&gt; guide for Apache and Lucee.  I locked down the admin fine, but using the following location directive.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-xml&quot; data-lang=&quot;xml&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;Location&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;/lucee&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
  Order Deny,Allow
  Deny from all
  Allow from 999.999.9999.999 888.888.888
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This allows the 999.999.999.999 ip address and ip adresses that start with 888.888.888 to access the admin fine. You can add any number or ip adn partial ip addresses to this line separated by a space. Unfortunately it breaks the graphs &lt;a href=&quot;http://docs.lucee.org/reference/tags/chart.html&quot;&gt;CFCHART&lt;/a&gt; generates.  To fix this issue you need to add following location directive after the above location directive.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-xml&quot; data-lang=&quot;xml&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;location&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;/lucee/graph.cfm&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
  Order Allow,Deny
  Allow from All
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/location&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This enables the graphs and still locks down the admin and can be applied to anything in the folder.&lt;/p&gt;

</description>
        <pubDate>Wed, 07 Dec 2016 13:00:00 +0000</pubDate>
        <link>http://digitalrewind.com/linux/lucee/cfml/fusebox/apache/2016/12/07/lucee-lockdown-graphs.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/linux/lucee/cfml/fusebox/apache/2016/12/07/lucee-lockdown-graphs.html</guid>
        
        
        <category>linux</category>
        
        <category>lucee</category>
        
        <category>cfml</category>
        
        <category>fusebox</category>
        
        <category>apache</category>
        
      </item>
    
      <item>
        <title>Lucee CFFLUSH problem and solution</title>
        <description>&lt;p&gt;Some more notes on switching over from Coldfusion to Lucee server.  I have a custom reporting application that is running on Fusebox that I couldn’t get the &lt;a href=&quot;http://docs.lucee.org/reference/tags/flush.html&quot;&gt;CFFLUSH&lt;/a&gt; code I had to keep the status of the report connection updating.  It allowed updates as the report generated and kept Internet Explorer connections from timing out. At first I thought it was a problem with Lucee on Apache, but the following code worked in a plain old cfml page without Fusebox.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-xml&quot; data-lang=&quot;xml&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;cfflush&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;interval=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;1&quot;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
	This page is running!
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
LuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLucee
		
&lt;span class=&quot;nt&quot;&gt;&amp;lt;cfset&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;sleep(10000)&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;/&amp;gt;&lt;/span&gt;

&lt;span class=&quot;nt&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
	This page Finished!
&lt;span class=&quot;nt&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;( The multitude of “Lucee”s are to fill up the buffer to test the &lt;a href=&quot;http://docs.lucee.org/reference/tags/flush.html&quot;&gt;CFFLUSH&lt;/a&gt; and the sleep() function is to simulate a long running process. There appears to be a minimum you can send back with a flush no matter what the interval is )&lt;/p&gt;

&lt;p&gt;Since this works it’s not a Lucee/Apache issue.  After reviewing the fusebox4.runtime.cfmx.cfm there is a &lt;a href=&quot;http://docs.lucee.org/reference/tags/processingdirective.html&quot;&gt;CFPROCESSINGDIRECTIVE&lt;/a&gt; tag for suppressing white space wrapped around the parsed files included by the framework.  So the following code in Lucee doesn’t &lt;a href=&quot;http://docs.lucee.org/reference/tags/flush.html&quot;&gt;CFFLUSH&lt;/a&gt; as expected. It waits for the entire page to run then processes the &lt;a href=&quot;http://docs.lucee.org/reference/tags/processingdirective.html&quot;&gt;CFPROCESSINGDIRECTIVE&lt;/a&gt; and sends back the data.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-xml&quot; data-lang=&quot;xml&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;cfprocessingdirective&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;suppresswhitespace=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Yes&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;cfflush&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;interval=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;1&quot;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
	This page is running!
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
		LuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLuceeLucee
		
&lt;span class=&quot;nt&quot;&gt;&amp;lt;cfset&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;sleep(10000)&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;/&amp;gt;&lt;/span&gt;

&lt;span class=&quot;nt&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
	This page Finished!
&lt;span class=&quot;nt&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/cfprocessingdirective&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;The above code also in Adobe Coldfusion. So to fix it I just removed the &lt;a href=&quot;http://docs.lucee.org/reference/tags/processingdirective.html&quot;&gt;CFPROCESSINGDIRECTIVE&lt;/a&gt; and everything works as I was expecting. Interestingly enough if you turn on supresswhitespace in the Luceee Administrator and remove the &lt;a href=&quot;http://docs.lucee.org/reference/tags/processingdirective.html&quot;&gt;CFPROCESSINGDIRECTIVE&lt;/a&gt; then the &lt;a href=&quot;http://docs.lucee.org/reference/tags/flush.html&quot;&gt;CFFLUSH&lt;/a&gt; still works.&lt;/p&gt;

</description>
        <pubDate>Tue, 29 Mar 2016 13:00:00 +0000</pubDate>
        <link>http://digitalrewind.com/linux/lucee/cfml/fusebox/2016/03/29/lucee-cfflush.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/linux/lucee/cfml/fusebox/2016/03/29/lucee-cfflush.html</guid>
        
        
        <category>linux</category>
        
        <category>lucee</category>
        
        <category>cfml</category>
        
        <category>fusebox</category>
        
      </item>
    
      <item>
        <title>Setup of Lucee REST Web Services on Apache</title>
        <description>&lt;p&gt;I was pulling my hair out to get Lucee 4.5 to recognize REST CFCs on my Amazon EC2 server running Apache.  I am really writing this up as notes so I can find it later.&lt;/p&gt;

&lt;h3 id=&quot;step-1&quot;&gt;Step 1&lt;/h3&gt;

&lt;p&gt;Go to the /etc/httpd/conf directory on your linux machine and edit the httpd.conf file.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;nano httpd.conf

ctrl-w /rest

remove the # from the begining of  

ProxyPassMatch ^/rest/(.*)$ http://127.0.0.1:8888/rest/$1 

ctrl-x

save changes? Y

service httpd restart&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;step-2&quot;&gt;Step 2&lt;/h3&gt;

&lt;p&gt;Create a folder in your Lucee root for you test.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-xml&quot; data-lang=&quot;xml&quot;&gt;mkdir /var/www/html/api/
cd /var/www/html/api/

nano hello.cfc

&lt;span class=&quot;nt&quot;&gt;&amp;lt;cfcomponent&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;rest=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;restpath=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;/hello&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt; 
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;cffunction&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;myHello&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;access=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;remote&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;returnType=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;String&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;httpMethod=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;get&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;restPath=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;/world&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;nt&quot;&gt;&amp;lt;cfset&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;res=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Hello World!&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;nt&quot;&gt;&amp;lt;cfreturn&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;/cffunction&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;step-3&quot;&gt;Step 3&lt;/h3&gt;

&lt;p&gt;Login to the Lucce admin and click on the Rest option on the side bar.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;For now enable the List services.

Create a new mapping for /test /var/www/html/api/&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;&lt;img src=&quot;/images/lucee-rest/rest-admin.png&quot; style=&quot;&quot; alt=&quot;Lucee Rest Admin Setting&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;step-4&quot;&gt;Step 4&lt;/h3&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;Open a web browser and got to : http://yourserver.com/rest/ and hit enter.

You should see :

Available sevice mappings are:
*/rest/test

Then enter http://yourserver.com/rest/test/hello/world

You Should see:

&quot;Hello World!&quot;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</description>
        <pubDate>Tue, 29 Mar 2016 13:00:00 +0000</pubDate>
        <link>http://digitalrewind.com/linux/lucee/cfml/2016/03/29/lucee-apache-rest-webservices.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/linux/lucee/cfml/2016/03/29/lucee-apache-rest-webservices.html</guid>
        
        
        <category>linux</category>
        
        <category>lucee</category>
        
        <category>cfml</category>
        
      </item>
    
      <item>
        <title>Adding SSL to Apache on EC2 with Amazon Linux</title>
        <description>&lt;p&gt;These notes assume you have Apache installed and working on EC2 with Amazon Linux, but it’s fairly similar for other versions of Linux.&lt;/p&gt;

&lt;h3 id=&quot;install-openssl-and-the-apache-connector&quot;&gt;Install OpenSSL and the Apache Connector&lt;/h3&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;// for Apache 2.2
yum install openssl mod_ssl
// for Apache 2.4
yum install openssl mod24_ssl
// restart Apache
service httpd restart&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;test-ssl&quot;&gt;Test SSL&lt;/h3&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;https://yoursever.com/&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This will bring up the default key that was create when you installed OpenSSL.&lt;/p&gt;

&lt;h3 id=&quot;generate-key&quot;&gt;Generate Key&lt;/h3&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;cd  /etc/pki/tls/private
openssl genrsa -out domain-name.key 2048
chown root.root domain-name.key
chmod 600 domain-name.key&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;generate-request&quot;&gt;Generate Request&lt;/h3&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;mkdir ssl under /ec2-user/domain-name/ssl
cd /ec2-user/domain-name/ssl
sudo openssl req -new -key /etc/pki/tls/private/domain-name.key -out domain-name.pem&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Once the request has been generated and sent to your certificate authority they will send you back two .crt files. One is the domain cert and one is the bundle cert.  You can rename them to domain-name.crt and domain-name-bundle.crt.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;// put crt file on the server with correct permissions
cp domain-name.crt /etc/pki/tls/certs/domain-name.crt
chown root.root /etc/pki/tls/certs/domain-name.crt
chmod 600 /etc/pki/tls/certs/domain-name.crt
  
cp domain-name-bundle.crt /etc/pki/tls/certs/domain-name-bundle.crt
chown root.root /etc/pki/tls/certs/domain-name-bundle.crt
chmod 600 /etc/pki/tls/certs/domain-name-bundle.crt
  &lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;It’s important to change the permissions on the file for Apache and OpenSSL will not work.&lt;/p&gt;

&lt;h3 id=&quot;configure-apache-ssl&quot;&gt;Configure Apache SSL&lt;/h3&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;// backup the conf file
cp /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.bkp
// edit the file
nano /etc/httpd/conf.d/ssl.conf


// search for the .key file line below and change the localhost.key

SSLCertificateKeyFile /etc/pki/tls/private/domain-name.key

// search for the .crt file line below and change the localhost.crt

SSLCertificateFile /etc/pki/tls/certs/domain-name.crt

// search for the bundle.crt file line below and point to the new bundle.crt

SSLCACertificateFile /etc/pki/tls/certs/domain-name-bundle.crt

// restart Apache
service httpd restart&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This allows one SSL Domain on the server. If you want to have more than one SSL domain on the server it’s a bit more setup. I’ll cover that in a different post.&lt;/p&gt;

</description>
        <pubDate>Thu, 03 Mar 2016 13:00:00 +0000</pubDate>
        <link>http://digitalrewind.com/ec2/linux/apache/2016/03/03/ssl-amazon-linux-ec2-apache.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/ec2/linux/apache/2016/03/03/ssl-amazon-linux-ec2-apache.html</guid>
        
        
        <category>ec2</category>
        
        <category>linux</category>
        
        <category>apache</category>
        
      </item>
    
      <item>
        <title>Virtualbox shared folder CSS Files not Updating</title>
        <description>&lt;p&gt;So I was editing a website on my Macbook running Apache2 with Lucee in Virtualbox. For some reason my CSS changes were not updating when I saved them. If I removed all the lines except for the first couple them it worked. Adding more lines would eventually corrupt the file being sent to the browser and no changes were displayed. I found the answer on a &lt;a href=&quot;http://stackoverflow.com/questions/6298933/shared-folder-in-virtualbox-for-apache&quot;&gt;Stack Overflow post&lt;/a&gt;. in the httpd.conf file for Apache has &lt;code class=&quot;highlighter-rouge&quot;&gt;EnableSendfile on&lt;/code&gt; this seems to be incompatible with the Virtualbox file system. Sos switching it to &lt;code class=&quot;highlighter-rouge&quot;&gt;EnaleSendfile off&lt;/code&gt; will fix the problem. Below are the instructions for Centos.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-xml&quot; data-lang=&quot;xml&quot;&gt;nano /etc/httpd/conf/httpd.conf
ctrl-w EnableSendfile # search
# change on to off
ctrl-x # exit
y # to confirm
systemlctl restart httpd&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;&lt;img src=&quot;/images/virtualbox/centos-shared-folders-apache2.png&quot; style=&quot;width:100%;border:1px solid silver;max-width:599px;&quot; /&gt;&lt;/p&gt;

</description>
        <pubDate>Wed, 03 Feb 2016 19:00:00 +0000</pubDate>
        <link>http://digitalrewind.com/notes/linux/virtualbox/css/apache/2016/02/03/css-not-working-apache2-virtualbox.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/notes/linux/virtualbox/css/apache/2016/02/03/css-not-working-apache2-virtualbox.html</guid>
        
        
        <category>notes</category>
        
        <category>linux</category>
        
        <category>virtualbox</category>
        
        <category>css</category>
        
        <category>apache</category>
        
      </item>
    
      <item>
        <title>Installing Jekyll on El Capitain 10.11</title>
        <description>&lt;p&gt;I am currently moving my blog to Github and &lt;a href=&quot;http://jekyllrb.com&quot;&gt;Jekyll&lt;/a&gt;. On my &lt;a href=&quot;http://www.apple.com/imac/&quot;&gt;iMac&lt;/a&gt; there were no issues installing Jekyll, but on my &lt;a href=&quot;http://www.apple.com/macbook-air/&quot;&gt;MacBook Air&lt;/a&gt; it errored trying to install files in &lt;code class=&quot;highlighter-rouge&quot;&gt;/usr/bin/&lt;/code&gt;. There was also a single threading warning on my iMac so I updated the &lt;code class=&quot;highlighter-rouge&quot;&gt;gem&lt;/code&gt; installer first on my second install. This may have caused the MacBook Air issues.  So I am noting this here for my future reference and including a link to the solution at the bottom of this post.&lt;/p&gt;

&lt;p&gt;Update &lt;code class=&quot;highlighter-rouge&quot;&gt;gem&lt;/code&gt;:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;sudo gem update --system&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Install Jekyll to&lt;code class=&quot;highlighter-rouge&quot;&gt; /usr/local/bin&lt;/code&gt;:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;sudo gem install -n /usr/local/bin jekyll&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;There are also &lt;a href=&quot;http://brew.sh&quot;&gt;Homebrew&lt;/a&gt; install instructions, but I really wanted this setup with a “normal”  &lt;code class=&quot;highlighter-rouge&quot;&gt;Mac&lt;/code&gt; install since I don’t use Ruby for anything except &lt;a href=&quot;http://jekyllrb.com&quot;&gt;Jekyll&lt;/a&gt; at the moment.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://jekyllrb.com/docs/troubleshooting/#jekyll-amp-mac-os-x-1011&quot;&gt;Jekyll Install troubleshooting OSX 10.11&lt;/a&gt;&lt;/p&gt;

</description>
        <pubDate>Wed, 27 Jan 2016 11:35:00 +0000</pubDate>
        <link>http://digitalrewind.com/jekyll/install/osx/gem/2016/01/27/el-capitain-10-11-jekyll.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/jekyll/install/osx/gem/2016/01/27/el-capitain-10-11-jekyll.html</guid>
        
        
        <category>jekyll</category>
        
        <category>install</category>
        
        <category>OSX</category>
        
        <category>gem</category>
        
      </item>
    
      <item>
        <title>Lucee Fix on Amazon Linux not Starting on Boot </title>
        <description>&lt;p&gt;After installing &lt;a href=&quot;http://lucee.org&quot;&gt;Lucee 4.5.2.018&lt;/a&gt; with the &lt;a href=&quot;https://www.viviotech.net&quot;&gt;Vivio Technologies&lt;/a&gt; installer on Amazon Linux with Apache it won’t automatically start when rebooting the &lt;code class=&quot;highlighter-rouge&quot;&gt;EC2&lt;/code&gt; instance. Even if you select it to start during the install process.&lt;/p&gt;

&lt;p&gt;Edit the &lt;code class=&quot;highlighter-rouge&quot;&gt;/etc/rc.d/rc.local&lt;/code&gt; file ( It loads after everything else on the machine ) and add the following to the end of the file:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;/opt/lucee/lucee_ctl start&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;I used &lt;code class=&quot;highlighter-rouge&quot;&gt;rc.local&lt;/code&gt; since I have other things in there for my instance’s boot process. The installer should put it in  /etc/init.d/ folder so that you can use &lt;code class=&quot;highlighter-rouge&quot;&gt;chkconfig&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.augustkleimo.com/install-lucee-on-an-aws-linux-ec2-instance/&quot;&gt;Check out August Kleimo’s Post on installing Lucee if you want to do it that way.&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Fri, 15 Jan 2016 11:35:00 +0000</pubDate>
        <link>http://digitalrewind.com/lucee/install/cfml/amazon/linux/ec2/2016/01/15/lucee-amazon-linux-not-starting-on-boot.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/lucee/install/cfml/amazon/linux/ec2/2016/01/15/lucee-amazon-linux-not-starting-on-boot.html</guid>
        
        
        <category>lucee</category>
        
        <category>install</category>
        
        <category>cfml</category>
        
        <category>amazon</category>
        
        <category>linux</category>
        
        <category>ec2</category>
        
      </item>
    
      <item>
        <title>Lucee Fix for Apache mod_cfml on Amazon Linux </title>
        <description>&lt;p&gt;After installing &lt;a href=&quot;http://lucee.org&quot;&gt;Lucee 4.5.2.018&lt;/a&gt; with the &lt;a href=&quot;https://www.viviotech.net&quot;&gt;Vivio Technologies&lt;/a&gt; installer on Amazon Linux with &lt;code class=&quot;highlighter-rouge&quot;&gt;Apache&lt;/code&gt; it wasn’t serving &lt;code class=&quot;highlighter-rouge&quot;&gt;cfml&lt;/code&gt; pages. Since Amazon Linux is a bit different the installer doesn’t install the connector correctly.&lt;/p&gt;

&lt;p&gt;Here is my fix for the issue on the 64bit version of Amazon Linux after running the &lt;a href=&quot;http://lucee.org/downloads.html&quot;&gt;lucee-4.5.2.018-pl0-linux-x64-installer.run&lt;/a&gt; installer:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;#copy the mod_cfml for Apache 2.2 64bit from the lucee directory

cp /opt/lucee/sys/mod_cfml/centos-httpd22-x64/mod_cfml.so /usr/lib64/httpd/modules/

chmod 755 mod_cfml.so 

# Get the Shared Key from  the /opt/lucee/tomcat/conf/server.xml file

&amp;lt;!-- visit modcfml.org for details on mod_cfml configuration options --&amp;gt;
&amp;lt;Valve className=&quot;mod_cfml.core&quot;
    loggingEnabled=&quot;false&quot;
    maxContexts=&quot;200&quot;
    timeBetweenContexts=&quot;2000&quot;
    scanClassPaths=&quot;false&quot;
    sharedKey=&quot;SHARED KEY&quot; /&amp;gt;

# Fill in the SHARED KEY and add the Valve to : /etc/httpd/conf/httpd.conf

DirectoryIndex index.cfm index.cfml index.html index.html.var

# add this to the end of httpd.conf
                
LoadModule modcfml_module modules/mod_cfml.so
CFMLHandlers &quot;.cfm .cfc .cfml&quot;
ModCFML_SharedKey &quot;SHARED KEY FROM ABOVE&quot;
# Optional, all for logging and debugging:
# LogHeaders true
# LogHandlers true
# LogAliases true
# VDirHeader false&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Hopefully this will help out till the installer is modified.&lt;/p&gt;

&lt;p&gt;Links :&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.modcfml.org/index.cfm/install/web-server-components/apache-on-centos/&quot;&gt;mod_cfml&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html&quot;&gt;Tomcat Value&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/utdream/CFML-Installers/issues/74&quot;&gt;Lucee Bug Report&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Sun, 27 Dec 2015 11:35:00 +0000</pubDate>
        <link>http://digitalrewind.com/lucee/install/cfml/amazon/linux/ec2/2015/12/27/lucee-install-amazon-linux-fix.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/lucee/install/cfml/amazon/linux/ec2/2015/12/27/lucee-install-amazon-linux-fix.html</guid>
        
        
        <category>lucee</category>
        
        <category>install</category>
        
        <category>cfml</category>
        
        <category>amazon</category>
        
        <category>linux</category>
        
        <category>ec2</category>
        
      </item>
    
      <item>
        <title>Connecting to EC2 with Transmit for Mac</title>
        <description>&lt;p&gt;This example is for connecting &lt;code class=&quot;highlighter-rouge&quot;&gt;Amazon Linux EC2&lt;/code&gt; from a &lt;code class=&quot;highlighter-rouge&quot;&gt;Mac&lt;/code&gt; so your mileage may vary.&lt;/p&gt;

&lt;p&gt;Click the &lt;code class=&quot;highlighter-rouge&quot;&gt;[+]&lt;/code&gt; to add a new site to &lt;a href=&quot;https://panic.com/transmit/&quot;&gt;Transmit&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/ec2-transmit/transmit-add.jpg&quot; style=&quot;border:1px solid silver;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Then make sure to select &lt;code class=&quot;highlighter-rouge&quot;&gt;sFTP&lt;/code&gt; as your protocol. Enter either your &lt;code class=&quot;highlighter-rouge&quot;&gt;instance name&lt;/code&gt; given to you by &lt;a href=&quot;https://aws.amazon.com&quot;&gt;AWS&lt;/a&gt;, &lt;a href=&quot;http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html&quot;&gt;elastic ip&lt;/a&gt;, or the domain used to access it.  The user will be &lt;code class=&quot;highlighter-rouge&quot;&gt;ec2-user&lt;/code&gt; with no password.  During the &lt;code class=&quot;highlighter-rouge&quot;&gt;EC2&lt;/code&gt; setup you should have saved your &lt;code class=&quot;highlighter-rouge&quot;&gt;PEM key file&lt;/code&gt; to your local machine. This allows using &lt;code class=&quot;highlighter-rouge&quot;&gt;SSH&lt;/code&gt; from the terminal to manage the instance.  I usually put them in &lt;code class=&quot;highlighter-rouge&quot;&gt;~/Documents/ec2-keys/[yourkey].pem&lt;/code&gt;. Then go to the &lt;a href=&quot;https://en.wikipedia.org/wiki/Terminal_(OS_X)&quot;&gt;Terminal&lt;/a&gt; and change directory to the &lt;code class=&quot;highlighter-rouge&quot;&gt;~/Documents/ec2-keys/&lt;/code&gt; folder in this case and run :&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;chmod 700 [yourkey].pem
ssh-add -K [yourkey].pem&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This will permanently add the key to your profile and then &lt;code class=&quot;highlighter-rouge&quot;&gt;Transmit&lt;/code&gt; should connect correctly. If you have a problem make sure you run the &lt;code class=&quot;highlighter-rouge&quot;&gt;chmod&lt;/code&gt; command as the &lt;code class=&quot;highlighter-rouge&quot;&gt;PEM&lt;/code&gt; file needs to have restricted permissions.&lt;/p&gt;

</description>
        <pubDate>Thu, 29 Dec 2011 09:05:00 +0000</pubDate>
        <link>http://digitalrewind.com/transmit/internet/amazon/ec2/osx/2011/12/29/transmit-ftp-amazon-ec2.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/transmit/internet/amazon/ec2/osx/2011/12/29/transmit-ftp-amazon-ec2.html</guid>
        
        
        <category>transmit</category>
        
        <category>internet</category>
        
        <category>amazon</category>
        
        <category>ec2</category>
        
        <category>OSX</category>
        
      </item>
    
      <item>
        <title>Installing Railo on EC2 with Amazon Linux</title>
        <description>&lt;p&gt;After following the comments on Ben’s Blog about running &lt;code class=&quot;highlighter-rouge&quot;&gt;Railo&lt;/code&gt; on &lt;code class=&quot;highlighter-rouge&quot;&gt;EC2&lt;/code&gt;. I decided to post my notes in case they might help someone. This assumes you know how to setup an account and the firewall on Amazon AWS. There is a GUI on the amazon site to do all this. It can be done pretty easily with a little trial and error.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Setup an EC2 account and launch an Amazon Linux AMI instance with the security settings to have ports :20, 21, 22, 80, 3306,8888 open.&lt;/li&gt;
  &lt;li&gt;Once it’s launched ssh to your new instance as ec2-user&lt;/li&gt;
  &lt;li&gt;sudo su - ( logs you in as root )&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Update AMAZON LINUX&lt;/em&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;yum update&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;&lt;em&gt;Install MYSQL&lt;/em&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;yum install mysql mysql-server&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This installs mysql just follow the prompts.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;chkconfig mysqld on&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This sets mysql to run on the start of the instance. ( edit the server settings in /etc/my.cnf with nano )&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;service mysqld start&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This starts MYSQL on your instance for the first time.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;cd /usr/bin/
./mysql_secure_installation&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This file lets you setup the mysql root password and disable other stuff. The default mysql root password is “blank” so you must run this script.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;CREATE USER 'remote_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'remote_user'@'localhost';
CREATE USER 'remote_user'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'remote_user'@'%';&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;% lets your user login from anywhere usually this is a bad idea. Set it to your IP address will be connecting remotely from. Localhost setups up the user so your Railo DSN’s can talk to mysql. Change ‘password’ to a secure password you want to use.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Apache&lt;/em&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;yum install httpd httpd-devel
chkconfig httpd on 
service httpd start&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This is similar to how we did mysql. If you navigate to your instance &lt;code class=&quot;highlighter-rouge&quot;&gt;http://[yourinstancename].compute-1.amazonaws.com/&lt;/code&gt; you should get the apache start screen.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Railo&lt;/em&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;cd /tmp
wget http://railo.viviotech.net/downloader.cfm/id/15/file/railo-3.2.1.000-pl0-linux-x64-installer.run
chmod 777 railo-3.2.1.000-pl0-linux-x64-installer.run
./railo-3.2.1.000-pl0-linux-x64-installer.run&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This runs the installer you’ll need the folders below. On the 64bit version the defaults work. Apache is 2.2 for the connector.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;/etc/rc.d/init.d/httpd
/usr/lib64/httpd/modules
/etc/httpd/conf/httpd.conf
http://[yourinstancename].compute-1.amazonaws.com:8888
http://[yourinstancename].compute-1.amazonaws.com:8888/railo-context/admin/web.cfm
http://[yourinstancename].compute-1.amazonaws.com:8888/railo-context/admin/server.cfm&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Railo will now be running you can get to it by your EC2 name and port 8888 check the server and web admin to make sure the passwords are setup.
Configuring a new site on APACHE and RAILO
The sites need to be setup in railo and apache we’ll setup a test site so you can see what to do.
On you laptop edit your hosts file and add an entry for :&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;999.999.999.999 mytestdomain.com
999.999.999.999 www.mytestdomain.com&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Substitue your EC2 ip for 999.999.999.999&lt;/p&gt;

&lt;p&gt;On your EC2 instance :&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;cd /var/www/
mkdir mytestdomain.com
cd mytestdomain.com
mkdir html
cd html
nano index.cfm
cd ..
cd ..
chmod -R 777 mytestdomain.com
Setup the folder for Apache and Railo. And add a default index.cfm page with hello world in it. This is where your code will go.
nano /opt/railo/tomcat/conf/server.xml&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;At the end of the file near the example add:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-xml&quot; data-lang=&quot;xml&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;Host&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;www.mytestdomain.com&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;appBase=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;webapps&quot;&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;unpackWARs=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;autoDeploy=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;true&quot;&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;xmlValidation=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;false&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;xmlNamespaceAware=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;Context&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;path=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;docBase=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;/var/www/mytestdomain.com/html/&quot;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/Host&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This will add the webroot to railo.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;/opt/railo/railo_ctl restart&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This will reboot railo to see the new web folder.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;nano /etc/httpd/conf/httpd.conf
ctr-w : index.html ( to find the line ) and add index.cfm to the end of the DirectoryIndex index.html index.html.var index.cfm line.
service httpd restart&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Navigate to www.mytestdomain.com and you should be running &lt;code class=&quot;highlighter-rouge&quot;&gt;Railo&lt;/code&gt;. This is just a summary of my notes to get everything running. Obviously your mileage will vary and it will help to know a bit about running &lt;code class=&quot;highlighter-rouge&quot;&gt;Apache&lt;/code&gt;, &lt;code class=&quot;highlighter-rouge&quot;&gt;MySql&lt;/code&gt;, and &lt;code class=&quot;highlighter-rouge&quot;&gt;Railo&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Good Luck.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Notes and stuff&lt;/em&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot; data-lang=&quot;text&quot;&gt;# memory settings for railo
nano /opt/railo/tomcat/bin/setenv.sh 
# restart / start Railo
/opt/railo/railo_ctl restart&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
</description>
        <pubDate>Mon, 25 Apr 2011 13:00:00 +0000</pubDate>
        <link>http://digitalrewind.com/railo/amazon/ec2/linux/cfml/2011/04/25/railo-ec2-amazon-linux.html</link>
        <guid isPermaLink="true">http://digitalrewind.com/railo/amazon/ec2/linux/cfml/2011/04/25/railo-ec2-amazon-linux.html</guid>
        
        
        <category>railo</category>
        
        <category>amazon</category>
        
        <category>ec2</category>
        
        <category>linux</category>
        
        <category>cfml</category>
        
      </item>
    
  </channel>
</rss>
