<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE object PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<object>
<left_navigation />
<body>&lt;!--StartFragment--&gt;FrontPage users follow the instructions for a &lt;a href="/id0900b40a800d5b3c"&gt;FrontPage-specific&lt;/a&gt; counter.&#13;
&lt;p class="bodyText"&gt;A counter may be added to your page to record and display the number of people who have viewed your home page.&amp;nbsp;A typical counter display:&lt;/p&gt;&#13;
&lt;blockquote class="bodyText"&gt;&lt;strong&gt;You are visitor number:&lt;/strong&gt; &lt;img height="21" width="16" alt="Zero" src="http://www.mtsu.edu/%7Eoit/images/0.gif" /&gt;&lt;img height="21" width="16" alt="one" src="http://www.mtsu.edu/%7Eoit/images/1.gif" /&gt; &lt;img height="21" width="16" alt="three" src="http://www.mtsu.edu/%7Eoit/images/3.gif" /&gt;&lt;img height="21" width="16" alt="five" src="http://www.mtsu.edu/%7Eoit/images/5.gif" /&gt;&lt;/blockquote&gt;&#13;
&lt;p class="bodyText"&gt;Before creating the counter, ITD recommends that you understand the following:&lt;/p&gt;&#13;
&lt;ul class="list"&gt;&#13;
    &lt;li&gt;&lt;a href="/id0900b40a800d9e70"&gt;Telnet&lt;/a&gt;&lt;/li&gt;&#13;
    &lt;li&gt;&lt;a href="/id0900b40a800d9f01"&gt;Pico&lt;/a&gt;, a text editor on frank&lt;/li&gt;&#13;
    &lt;li&gt;Paths to your directories on frank&lt;/li&gt;&#13;
    &lt;li&gt;UNIX file &lt;a href="/id0900b40a800d5b5d"&gt;permissions&lt;/a&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Counter &lt;a href="/id0900b40a800d5b7f"&gt;options and configuration&lt;/a&gt;. This shows what you will be creating and modifying&lt;/li&gt;&#13;
&lt;/ul&gt;&#13;
&lt;p class="bodyText"&gt;To create this counter, you will do the following:&lt;/p&gt;&#13;
&lt;ul class="list"&gt;&#13;
    &lt;li&gt;Create the counter directory within public_html&lt;/li&gt;&#13;
    &lt;li&gt;Create a file to store the number of visits to your page&lt;/li&gt;&#13;
    &lt;li&gt;Create a configuration file that sets all of the options for the counter&lt;/li&gt;&#13;
    &lt;li&gt;Change the permissions of these files and the directory so that they can be read from the web&lt;/li&gt;&#13;
    &lt;li&gt;Insert the appropriate IMG tag in your HTML document&lt;/li&gt;&#13;
&lt;/ul&gt;&#13;
&lt;h3 class="bodyText"&gt;Instructions&lt;/h3&gt;&#13;
&lt;h4 class="bodyText"&gt;Create the Counter Directory within &amp;quot;public_html&amp;quot;&lt;/h4&gt;&#13;
&lt;ol class="oList"&gt;&#13;
    &lt;li&gt;At the frank prompt, change to your &amp;quot;public_html&amp;quot; directory.&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp;cd public_html&lt;/code&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Create a directory for the counter, naming it &amp;quot;counter.&amp;quot;&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp;mkdir counter&lt;/code&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Change the group for &amp;quot;counter&amp;quot; to that of the web server.&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp;chgrp httpd counter&lt;/code&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Change the permissions for &amp;quot;counter&amp;quot; to make the directory accessible on the web.&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp;chmod 775 counter&lt;/code&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Open &amp;quot;counter.&amp;quot;&lt;br /&gt; &lt;code&gt;frank $ cd counter&lt;/code&gt;&lt;/li&gt;&#13;
&lt;/ol&gt;&#13;
&lt;h4 class="bodyText"&gt;Create a File to Store the Number of Visits to Your Page&lt;/h4&gt;&#13;
&lt;ol class="oList"&gt;&#13;
    &lt;li&gt;Use &lt;a href="/id0900b40a800d9f01"&gt;Pico&lt;/a&gt; (a text editor on frank) to create a file that will store the number of visits to your page.&lt;br clear="all" /&gt; Name the file &amp;quot;home.count.&amp;quot;&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp;pico home.count&lt;/code&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Type the number you want the counter to start at (e.g. 1 or 10).&lt;/li&gt;&#13;
    &lt;li&gt;Exit Pico, answering &lt;em&gt;Yes&lt;/em&gt; to save the file.&lt;br clear="all" /&gt; &lt;kbd&gt;Ctrl-X&lt;/kbd&gt; (exit)&lt;br clear="all" /&gt; &lt;kbd&gt;Y&lt;/kbd&gt; (Yes to save)&lt;br clear="all" /&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Change the group for &amp;quot;home.count&amp;quot; to that of the web server.&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp;chgrp httpd home.count&lt;/code&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Change the permissions for &amp;quot;home.count&amp;quot; to make it accessible on the web&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp;chmod 775 home.count&lt;/code&gt;&lt;/li&gt;&#13;
&lt;/ol&gt;&#13;
&lt;h4 class="bodyText"&gt;Create a Configuration File that Sets All the Options for the Counter&lt;/h4&gt;&#13;
&lt;ol class="oList"&gt;&#13;
    &lt;li&gt;Use Pico to create the configuration file that will set all your options for the counter.&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp; pico home.config&lt;/code&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Type in the desired options and required directory path names. (Read Configuration &lt;a href="/id0900b40a800d5b7f"&gt;options&amp;nbsp;and samples&lt;/a&gt;.)&lt;/li&gt;&#13;
    &lt;li&gt;&#13;
The following line is required in &amp;quot;home.config&amp;quot;:&lt;br clear="all" /&gt;&#13;
        &lt;blockquote&gt;&lt;code&gt;CountFile=/&lt;/code&gt;&lt;var&gt;path to your home directory&lt;/var&gt;&lt;code&gt;/public_html/counter/home.count&lt;/code&gt;&lt;/blockquote&gt;&#13;
        &lt;blockquote&gt;&lt;code&gt;frank $ pwd&lt;/code&gt; will tell you where you are currently working; the &amp;quot;path to your home directory&amp;quot;&lt;br clear="all" /&gt; is from the first slash to your username: &lt;var&gt;/users/your group/username/...&lt;/var&gt;&lt;/blockquote&gt;&#13;
    &lt;/li&gt;&#13;
    &lt;li&gt;Exit Pico, answering &lt;em&gt;Yes&lt;/em&gt; to save the file.&lt;br clear="all" /&gt; &lt;kbd&gt;Ctrl-X&lt;/kbd&gt;&lt;br clear="all" /&gt; &lt;kbd&gt;Y&lt;/kbd&gt;&lt;/li&gt;&#13;
    &lt;li&gt;Change the permissions for home.config.&lt;br /&gt; &lt;code&gt;frank $ &amp;nbsp;chmod a+r home.config&lt;/code&gt;&lt;/li&gt;&#13;
&lt;/ol&gt;&#13;
&lt;h4 class="bodyText"&gt;Add the Text and HTML Tags to Your Web Document&lt;/h4&gt;&#13;
&lt;ol class="oList"&gt;&#13;
    &lt;li&gt;Add the following text and tags to your html document:&lt;/li&gt;&#13;
&lt;/ol&gt;&#13;
&lt;blockquote class="bodyText"&gt;You are visitor number:&lt;br clear="all" /&gt; &lt;code&gt;&amp;lt;img src=&amp;quot;/cgi-bin/counter.pl?&lt;/code&gt;&lt;var&gt;path to your home directory&lt;/var&gt;&lt;code&gt;/counter/home.config&amp;quot;&amp;gt;&lt;/code&gt;&lt;/blockquote&gt;&#13;
</body>
<Dept_Branding />
<Sub_Right_Col1 />
<MTSU_AccessabilityTabs />
<MTSU_MainTabs />
<header>Add a Counter</header>
<Sub_Right_Col3 />
<MTSU_MainFooter />
<title />
<Sub_Right_Col2 />
<search />
</object>
