<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Development 2.0: Web Design, CakePHP, Javascript &#187; Fast CGI</title>
	<atom:link href="http://www.webdevelopment2.com/category/fast-cgi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevelopment2.com</link>
	<description>Quick and Dirty Web Development for Web 2.0: CakePHP, Prototype, JQuery, and lots more.</description>
	<lastBuildDate>Sat, 26 Dec 2009 07:11:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Yahoo Using FastCGI for Moveable Type</title>
		<link>http://www.webdevelopment2.com/yahoo-using-fastcgi-for-moveable-type/</link>
		<comments>http://www.webdevelopment2.com/yahoo-using-fastcgi-for-moveable-type/#comments</comments>
		<pubDate>Wed, 21 Dec 2005 02:19:00 +0000</pubDate>
		<dc:creator>Kevin Lloyd</dc:creator>
				<category><![CDATA[Fast CGI]]></category>

		<guid isPermaLink="false">http://www.webdevelopment2.com/2005/12/20/yahoo-using-fastcgi-for-moveable-type.htm</guid>
		<description><![CDATA[Yahoo recently introduced a new service to their Yahoo! Web Hosting.  It&#8217;s the popular blogging package, Movable Type.  One of the features listed for Movable Types is:
Speed &#8212; Use of FastCGI makes the Movable Type experience on Yahoo! Web hosting services the fastest on the web
With the speed of development of PHP, ASP, [...]]]></description>
			<content:encoded><![CDATA[<p>Yahoo recently introduced a new service to their Yahoo! Web Hosting.  It&#8217;s the popular blogging package, Movable Type.  One of the features listed for Movable Types is:</p>
<blockquote><p>Speed &#8212; Use of <strong>FastCGI</strong> makes the Movable Type experience on Yahoo! Web hosting services the fastest on the web</p></blockquote>
<p>With the speed of development of PHP, ASP, and other server side technology, it was interesting to see a company, the likes of Yahoo!, using FastCGI.  Maybe this will spark other companies and developers to use FastCGI.</p>
Similar Posts:<ul><li><a href="http://www.webdevelopment2.com/webtty-terminal-emulator/" rel="bookmark" title="October 26, 2006">WebTTY &#8211; Terminal Emulator</a></li>

<li><a href="http://www.webdevelopment2.com/microsoft-yahoo-and-zimbra-releaseing-new-ajax-powered-webmail/" rel="bookmark" title="November 24, 2005">Microsoft, Yahoo, and Zimbra Releaseing New Ajax Powered Webmail</a></li>

<li><a href="http://www.webdevelopment2.com/ajax-and-fast-cgi/" rel="bookmark" title="November 12, 2005">AJAX and Fast CGI</a></li>

<li><a href="http://www.webdevelopment2.com/fast-cgi-installation/" rel="bookmark" title="November 18, 2005">Fast CGI Installation</a></li>

<li><a href="http://www.webdevelopment2.com/google-leading-web-20/" rel="bookmark" title="November 25, 2005">Google Leading Web 2.0</a></li>
</ul><!-- Similar Posts took 2.697 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.webdevelopment2.com/yahoo-using-fastcgi-for-moveable-type/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ajax Server Initiated Server Calls</title>
		<link>http://www.webdevelopment2.com/ajax-server-initiated-server-calls/</link>
		<comments>http://www.webdevelopment2.com/ajax-server-initiated-server-calls/#comments</comments>
		<pubDate>Sun, 04 Dec 2005 21:00:06 +0000</pubDate>
		<dc:creator>Kevin Lloyd</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Fast CGI]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=41</guid>
		<description><![CDATA[I believe that I now need to rethink the Ajax sequence on the project I am working on for work.  As it stands, I had to do some interesting tinkering to make things work and emulate the console side properly.  A normal sequence of GETs and POSTs would have been sufficient, except I [...]]]></description>
			<content:encoded><![CDATA[<p>I believe that I now need to rethink the Ajax sequence on the project I am working on for work.  As it stands, I had to do some interesting tinkering to make things work and emulate the console side properly.  A normal sequence of GETs and POSTs would have been sufficient, except I needed something to handle server pushes.  In the console application, there are some instances like popup boxes.  Eg.  After the client sends a request to the server, the server sends back a simple popup box, <em>sorting</em>.  After it is done sorting, the server sends back the information to the browser.  And this is the problem.  Normally, Ajax does not handle this.  This is where I had to implement a modified <a href="http://ajaxpatterns.org/Periodic_Refresh">polling </a>technique.</p>
<p>Basically, the client makes constant requests to the server.  Yes, yes, I know that this is very inefficient, but this is a rough draft.  Well, rough working draft.  The server sends back a NULL flag, which the browser reads and ignores,  or it sends back the requested data.  This works, but is very inefficient.  Normally, server initiated Ajax routines use a polling technique.  This involves the client basically pinging the server on regular intervals to request data.  I&#8217;m doing the same thing but without the time delay.</p>
<p>Everyone seems to be implementing this using some polling technique.  <a href="http://www.meebo.com">Meebo</a>, the now popular Ajax based Web Messenger, uses a polling technique.  <a href="http://anyterm.org/">Anyterm</a>, a terminal emulator, also uses polling.</p>
<p>Polling would work for me, however, it wouldn&#8217;t be much different from what I&#8217;m already doing.  There is an alternative though, <a href="http://ajaxpatterns.org/HTTP_Streaming">HTTP Streaming</a>, which I need to look into.  From the little I&#8217;ve read, though, it is riddled with complications.</p>
Similar Posts:<ul><li><a href="http://www.webdevelopment2.com/ajax-client-engine-ace-problems/" rel="bookmark" title="December 12, 2005">AJAX Client Engine (ACE) &#8211; Problems</a></li>

<li><a href="http://www.webdevelopment2.com/6-places-to-use-ajax/" rel="bookmark" title="December 2, 2005">6 Places to Use Ajax</a></li>

<li><a href="http://www.webdevelopment2.com/should-ajax-be-independent-of-the-server/" rel="bookmark" title="November 29, 2005">Should Ajax Be Independent of the Server?</a></li>

<li><a href="http://www.webdevelopment2.com/ajax-and-fast-cgi/" rel="bookmark" title="November 12, 2005">AJAX and Fast CGI</a></li>

<li><a href="http://www.webdevelopment2.com/ahah-asynchronous-html-and-http-or-aja/" rel="bookmark" title="November 26, 2005">AHAH: Asynchronous HTML and HTTP or AJA?</a></li>
</ul><!-- Similar Posts took 3.641 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.webdevelopment2.com/ajax-server-initiated-server-calls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fast CGI Installation</title>
		<link>http://www.webdevelopment2.com/fast-cgi-installation/</link>
		<comments>http://www.webdevelopment2.com/fast-cgi-installation/#comments</comments>
		<pubDate>Fri, 18 Nov 2005 22:32:30 +0000</pubDate>
		<dc:creator>Kevin Lloyd</dc:creator>
				<category><![CDATA[Fast CGI]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=9</guid>
		<description><![CDATA[After days of configuring and reconfiguring, I have finally gotten the sequence down for a Fast CGI installation.  Please note, these instructions are specifically for a fresh install of Fedora Core 4.  This is what I&#8217;ve been working with, for distribution purposes.  You may generalize the instructions where applicable of course.  [...]]]></description>
			<content:encoded><![CDATA[<p>After days of configuring and reconfiguring, I have finally gotten the sequence down for a Fast CGI installation.  Please note, these instructions are specifically for a fresh install of Fedora Core 4.  This is what I&#8217;ve been working with, for distribution purposes.  You may generalize the instructions where applicable of course.  And as always, proceed at you own risk.  Here we go (<em>Italics</em> indicate my personal settings):</p>
<ol>
<li>Run the following command at the prompt:<br />
<code>yum -y install httpd-devel</code><br />
You may also download the RPM, or if you&#8217;re really adventurous, build it from the source.  This installs the httpd-devel package, which is needed for this installation.  Most systems may already have this installed, but a fresh default install of Fedora Core 4 does not.</li>
<li>Download the &#8220;mod_fastcgi&#8221; package from <a href="http://www.FastCGI.com">FastCGI.com</a> and unzip it to some directory of your choice.</li>
<li>Perform the following commands:<br />
<code>cd <em>mod_fastcgi.</em>..<br />
cp Makefile.AP2 Makefile<br />
make top_dir=<em>/etc/httpd</em><br />
make top_dir=<em>/etc/httpd install</em><br />
chown -R apache <em>/etc/httpd</em></code></p>
<p>The FastCGI Apache module has now been built.
</li>
<li>Add following lines to <em>/etc/httpd/conf/httpd.conf</em>:<br />
<code>LoadModule fastcgi_module modules/mod_fastcgi.so<br />
Alias <em>/fcgi-bin/ /var/www/fcgi-bin/</em><br />
&lt;directory <em>/var/www/fcgi-bin/</em>&gt;<br />
	SetHandler fastcgi-script<br />
	Options +ExecCGI<br />
&lt;/directory&gt;<br />
<em>FastCgiConfig</em> .... (if needed)<br />
</code></li>
<p>Now more commands:<br />
<code>mkdir <em>/var/www/fcgi-bin</em><br />
chmod -R 777 <em>/var/www/fcgi-bin/</em><br />
</code>
</ol>
<p>Now if you dump your FastCGI scripts to /var/www/fcgi-bin/ you should be able to access them by going to http://www.yourserver.com/fcgi-bin/script.fcgi.  Now anything in italics up above you should be able to freely change without screwing up too much.  Anything you don&#8217;t understand consult the FastCGI documentation and the Apache Configuration documentation.</p>
<p>Good luck guys.</p>
Similar Posts:<ul><li><a href="http://www.webdevelopment2.com/installing-a-lamp-web-server-system-with-fedora-core-6/" rel="bookmark" title="October 31, 2006">Installing A LAMP Web Server System With Fedora Core 6</a></li>

<li><a href="http://www.webdevelopment2.com/linkmania-november-17-2006/" rel="bookmark" title="November 19, 2006">LinkMania November, 17 2006</a></li>

<li><a href="http://www.webdevelopment2.com/xampp-lite-on-usb-disk-benchmark-php-and-mysql-by-slowing-down-your-server/" rel="bookmark" title="August 29, 2007">XAMPP Lite on USB Disk &#8211; Benchmark PHP and MySQL by Slowing Down Your Server</a></li>

<li><a href="http://www.webdevelopment2.com/ajax-and-fast-cgi/" rel="bookmark" title="November 12, 2005">AJAX and Fast CGI</a></li>

<li><a href="http://www.webdevelopment2.com/yahoo-using-fastcgi-for-moveable-type/" rel="bookmark" title="December 20, 2005">Yahoo Using FastCGI for Moveable Type</a></li>
</ul><!-- Similar Posts took 2.658 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.webdevelopment2.com/fast-cgi-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AJAX and Fast CGI</title>
		<link>http://www.webdevelopment2.com/ajax-and-fast-cgi/</link>
		<comments>http://www.webdevelopment2.com/ajax-and-fast-cgi/#comments</comments>
		<pubDate>Sun, 13 Nov 2005 04:34:41 +0000</pubDate>
		<dc:creator>Kevin Lloyd</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Fast CGI]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.webdevelopment2.com/2005/11/17/ajax-and-fast-cgi.htm</guid>
		<description><![CDATA[Here&#8217;s a little intro what I&#8217;ve been working on at my Job for the past couple months.
AJAX stands for Asynchronous JavaScript And XML for web development.  Basically you use a some JavaScript to get down below the browser level and control HTTP &#8220;GET&#8221;s and &#8220;POST&#8221;s and stuff like that.  It&#8217;s used by stuff [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little intro what I&#8217;ve been working on at my Job for the past couple months.</p>
<p>AJAX stands for Asynchronous JavaScript And XML for web development.  Basically you use a some JavaScript to get down below the browser level and control HTTP &#8220;GET&#8221;s and &#8220;POST&#8221;s and stuff like that.  It&#8217;s used by stuff like Google Maps and Google Suggest and GMail.  What it enables is basically background activity without the user&#8217;s knowledge.  This means that you don&#8217;t have to do anything really for things to happen.  No need for clicks or form submissions and most importantly, no need to reload the entire page when processing data.  You can read more about it <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">here</a>.</p>
<p>Now how does this tie in with my job?  For the past couple months I&#8217;ve been working at a company which runs a legacy program written in ANSI C.  The task I&#8217;ve been assigned is to enable web access to this program from a normal web browser.  On the server end we&#8217;re running FASTCGI.  This enables a process (the program) to be constantly running while being accessed from the web.  Normal CGI programs and PHP scripts are run only one time and then die.  FASTCGI avoids that problem.</p>
<p>Now where does AJAX fit in?  Communication between the two, of course.  So basically, that&#8217;s what I&#8217;m working on.  We made a slight breakthrough today.  We got the AJAX script to make repeated accesses to the server and the server to make repeated replies to the client.  One thing I&#8217;m not quite sure about yet is with speed.  It seems to be running rather slowly.  I know that this computer that I&#8217;m working on needs some work, so I hope that this is where the problem is originating from.</p>
<p>But fear not, all the bugs will be ironed out.  Just one quick note.  I have found absolutely no documentation of anyone trying to do exactly what we&#8217;re trying to do.  Yes, people use all this technology on other things or individually, but no one (I&#8217;ve found) uses both Fast CGI and AJAX together in the way we&#8217;re doing.  Is that a good thing?  Well, it means that we&#8217;re doing some revolutionary and unprecedented and that is always cool.  But on the other hand, there is very little documentation on this so we have nothing to fall back on or to work from, so we&#8217;re kind out flying blind.</p>
<p>But, keep posted for more.  It&#8217;s going to be a fun ride.</p>
Similar Posts:<ul><li><a href="http://www.webdevelopment2.com/fast-cgi-installation/" rel="bookmark" title="November 18, 2005">Fast CGI Installation</a></li>

<li><a href="http://www.webdevelopment2.com/ajax-server-initiated-server-calls/" rel="bookmark" title="December 4, 2005">Ajax Server Initiated Server Calls</a></li>

<li><a href="http://www.webdevelopment2.com/yahoo-using-fastcgi-for-moveable-type/" rel="bookmark" title="December 20, 2005">Yahoo Using FastCGI for Moveable Type</a></li>

<li><a href="http://www.webdevelopment2.com/job-update-part-1/" rel="bookmark" title="February 14, 2007">Job Update &#8211; Part 1</a></li>

<li><a href="http://www.webdevelopment2.com/picking-a-cms-3-wordpress-as-a-cms/" rel="bookmark" title="December 1, 2009">Reader Input: Picking A CMS – Part 3</a></li>
</ul><!-- Similar Posts took 2.982 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.webdevelopment2.com/ajax-and-fast-cgi/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
