<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://www.stress-free.co.nz"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>stressfree - apache</title>
 <link>https://www.stress-free.co.nz/tech/apache</link>
 <description></description>
 <language>en</language>
<item>
 <title>A great example of Windows&#039; evolutionary drawbacks</title>
 <link>https://www.stress-free.co.nz/a_great_example_of_windows_evolutionary_drawbacks</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;p&gt;If you have ever tried working through an &lt;a href=&quot;http://www.nsa.gov/snac/downloads_miis.cfm?MenuID=scg10.3.1.4&quot;&gt;NSA guide&lt;/a&gt; on securing Microsoft IIS you will appreciate how many internal systems exists under the hood of Windows and their many deficiencies. For those that have been fortunate to not go through the experience &lt;a href=&quot;http://blogs.zdnet.com/threatchaos/?p=311&quot;&gt;Richard Stiennon uses some compelling visuals&lt;/a&gt; by &lt;a href=&quot;http://www.sanasecurity.com/&quot;&gt;Sana Security&lt;/a&gt; to explain why Windows is less secure than Linux because of its long evolutionary history. This history has seen one set of functionality bolted in place over another with little or no thought to the clarity of the overarching  system architecture. Consequently whilst Windows works what goes on under the hood is not pretty and very difficult to secure.&lt;/p&gt;&lt;div style=&quot;text-align: center&quot;&gt;&lt;a href=&quot;http://blogs.zdnet.com/threatchaos/?p=311&quot;&gt;&lt;img src=&quot;/sites/default/files/u63/iis_apache_systemcalls.png&quot; alt=&quot;&quot; width=&quot;580&quot; height=&quot;242&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;!--break--&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/apache&quot;&gt;apache&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/windows&quot;&gt;windows&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/iis&quot;&gt;iis&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Sat, 03 Feb 2007 01:11:28 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">395 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Setting up Awstats in an OpenSUSE 10 Apache vhost</title>
 <link>https://www.stress-free.co.nz/setting_up_awstats_in_an_opensuse_10_apache_vhost</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;p&gt;Installing awstats is easy in OpenSUSE through Yast. Unfortunately only half the job is done if you wish to activate it for a certain virtual host.&lt;/p&gt;  &lt;p&gt;Firstly in the vhost configuration file add the following parameters:&lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;Alias /awstatsicons /srv/www/icons/awstats    &lt;br /&gt;ScriptAlias /usage /srv/www/cgi-bin    &lt;br /&gt;&amp;lt;Directory &quot;/srv/www/cgi-bin&quot;&amp;gt;    &lt;br /&gt;        AllowOverride None    &lt;br /&gt;        Options +ExecCGI -Includes       &lt;br /&gt;        Order allow,deny    &lt;br /&gt;        Allow from all    &lt;br /&gt;&amp;lt;/Directory&amp;gt;    &lt;br /&gt;&amp;lt;Directory &quot;/srv/www/icons/awstats&quot;&amp;gt;    &lt;br /&gt;        AllowOverride None    &lt;br /&gt;        Options None    &lt;br /&gt;        Order allow,deny    &lt;br /&gt;        Allow from all    &lt;br /&gt;&amp;lt;/Directory&amp;gt;&lt;/p&gt;  &lt;p&gt;This will create an alias from http://your-domain-name/usage to the awstats cgi script and an alias to the awstats icon directory (awstatsicons). Once this configuration is changed restart the Apache server.    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Once this is done create a domain configuration file in /etc/awstats. Make sure the domain file is named in the following manner: awstats.your-domain-name.conf &lt;/p&gt;  &lt;p&gt;There is an example configuration file in the /etc/awstats to build on, otherwise see below for a fairly standard configuration file.    &lt;br /&gt;During the Yast install process a cron job will have been setup to scan Apache log files so once the awstats configuration file is in place your server will begin scanning the Apache logs when the cron job next runs.    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;You should now be able to browse to http://your-domain-name/usage and get a rundown of webserver usage. Note: mod_cgi must be enabled in Apache for live viewing of awstats data to work.  &lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;LogFile=&quot;/var/log/apache2/your-domain-name-access_log&quot;    &lt;br /&gt;LogFormat=1    &lt;br /&gt;LogSeparator=&quot; &quot;    &lt;br /&gt;SiteDomain=&quot;your-domain-name&quot;    &lt;br /&gt;HostAliases=&quot;localhost 127.0.0.1&quot;    &lt;br /&gt;DNSLookup=1    &lt;br /&gt;DirData=&quot;/var/cache/awstats&quot;    &lt;br /&gt;DirCgi=&quot;/cgi-bin&quot;    &lt;br /&gt;DirIcons=&quot;/awstatsicons&quot;    &lt;br /&gt;AllowToUpdateStatsFromBrowser=0    &lt;br /&gt;EnableLockForUpdate=0    &lt;br /&gt;DNSStaticCacheFile=&quot;dnscache.txt&quot;    &lt;br /&gt;DNSLastUpdateCacheFile=&quot;dnscachelastupdate.txt&quot;    &lt;br /&gt;SkipDNSLookupFor=&quot;&quot;    &lt;br /&gt;AllowAccessFromWebToAuthenticatedUsersOnly=0    &lt;br /&gt;AllowAccessFromWebToFollowingAuthenticatedUsers=&quot;&quot;    &lt;br /&gt;AllowAccessFromWebToFollowingIPAddresses=&quot;&quot;    &lt;br /&gt;CreateDirDataIfNotExists=0    &lt;br /&gt;SaveDatabaseFilesWithPermissionsForEveryone=0    &lt;br /&gt;PurgeLogFile=0    &lt;br /&gt;ArchiveLogRecords=0    &lt;br /&gt;KeepBackupOfHistoricFiles=0    &lt;br /&gt;DefaultFile=&quot;index.html&quot;    &lt;br /&gt;SkipHosts=&quot;&quot;    &lt;br /&gt;SkipUserAgents=&quot;&quot;    &lt;br /&gt;SkipFiles=&quot;&quot;    &lt;br /&gt;OnlyHosts=&quot;&quot;    &lt;br /&gt;OnlyFiles=&quot;&quot;    &lt;br /&gt;NotPageList=&quot;css js class gif jpg jpeg png bmp&quot;    &lt;br /&gt;ValidHTTPCodes=&quot;200 304&quot;    &lt;br /&gt;ValidSMTPCodes=&quot;1&quot;    &lt;br /&gt;AuthenticatedUsersNotCaseSensitive=0    &lt;br /&gt;URLNotCaseSensitive=0    &lt;br /&gt;URLWithAnchor=0    &lt;br /&gt;URLQuerySeparators=&quot;?;&quot;    &lt;br /&gt;URLWithQuery=0    &lt;br /&gt;URLWithQueryWithoutFollowingParameters=&quot;&quot;    &lt;br /&gt;URLReferrerWithQuery=0    &lt;br /&gt;WarningMessages=1    &lt;br /&gt;ErrorMessages=&quot;&quot;    &lt;br /&gt;DebugMessages=1    &lt;br /&gt;NbOfLinesForCorruptedLog=50    &lt;br /&gt;WrapperScript=&quot;&quot;    &lt;br /&gt;DecodeUA=0    &lt;br /&gt;MiscTrackerUrl=&quot;/js/awstats_misc_tracker.js&quot;    &lt;br /&gt;&lt;br /&gt;LevelForRobotsDetection=2            # 0 will increase AWStats speed by 1%.    &lt;br /&gt;LevelForBrowsersDetection=2            # 0 disables Browsers detection. No speed gain.    &lt;br /&gt;LevelForOSDetection=2                # 0 disables OS detection. No speed gain.    &lt;br /&gt;LevelForRefererAnalyze=2            # 0 will increase AWStats speed by 5%.    &lt;br /&gt;&lt;br /&gt;UseFramesWhenCGI=0    &lt;br /&gt;DetailedReportsOnNewWindows=1    &lt;br /&gt;Expires=0    &lt;br /&gt;MaxRowsInHTMLOutput=1000    &lt;br /&gt;Lang=&quot;auto&quot;    &lt;br /&gt;DirLang=&quot;/var/lib/awstats/lang&quot;    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ShowMenu=1                       &lt;br /&gt;# Show monthly chart    &lt;br /&gt;# Default: UVPHB, Possible codes: UVPHB    &lt;br /&gt;ShowMonthStats=UVPHB    &lt;br /&gt;# Show days of month chart    &lt;br /&gt;# Default: VPHB, Possible codes: VPHB    &lt;br /&gt;ShowDaysOfMonthStats=VPHB    &lt;br /&gt;# Show days of week chart    &lt;br /&gt;# Default: PHB, Possible codes: PHB    &lt;br /&gt;ShowDaysOfWeekStats=PHB    &lt;br /&gt;# Show hourly chart    &lt;br /&gt;# Default: PHB, Possible codes: PHB    &lt;br /&gt;ShowHoursStats=PHB    &lt;br /&gt;# Show domains/country chart    &lt;br /&gt;# Default: PHB, Possible codes: PHB    &lt;br /&gt;ShowDomainsStats=PHB    &lt;br /&gt;# Show hosts chart    &lt;br /&gt;# Default: PHBL, Possible codes: PHBL    &lt;br /&gt;ShowHostsStats=PHBL    &lt;br /&gt;# Show authenticated users chart    &lt;br /&gt;# Default: 0, Possible codes: PHBL    &lt;br /&gt;ShowAuthenticatedUsers=0    &lt;br /&gt;# Show robots chart    &lt;br /&gt;# Default: HBL, Possible codes: HBL    &lt;br /&gt;ShowRobotsStats=HBL    &lt;br /&gt;# Show email senders chart (For use when analyzing mail log files)    &lt;br /&gt;# Default: 0, Possible codes: HBML    &lt;br /&gt;ShowEMailSenders=0    &lt;br /&gt;# Show email receivers chart (For use when analyzing mail log files)    &lt;br /&gt;# Default: 0, Possible codes: HBML    &lt;br /&gt;ShowEMailReceivers=0    &lt;br /&gt;# Show session chart    &lt;br /&gt;# Default: 1, Possible codes: None    &lt;br /&gt;ShowSessionsStats=1    &lt;br /&gt;# Show pages-url chart.    &lt;br /&gt;# Default: PBEX, Possible codes: PBEX    &lt;br /&gt;ShowPagesStats=PBEX    &lt;br /&gt;# Show file types chart.    &lt;br /&gt;# Default: HB, Possible codes: HBC    &lt;br /&gt;ShowFileTypesStats=HB    &lt;br /&gt;# Show file size chart (Not yet available)    &lt;br /&gt;# Default: 1, Possible codes: None    &lt;br /&gt;ShowFileSizesStats=0           &lt;br /&gt;# Show operating systems chart    &lt;br /&gt;# Default: 1, Possible codes: None    &lt;br /&gt;ShowOSStats=1    &lt;br /&gt;# Show browsers chart    &lt;br /&gt;# Default: 1, Possible codes: None    &lt;br /&gt;ShowBrowsersStats=1    &lt;br /&gt;# Show screen size chart    &lt;br /&gt;# Default: 0 (See also MiscTrackerUrl if set to 1), Possible codes: None    &lt;br /&gt;ShowScreenSizeStats=0    &lt;br /&gt;# Show origin chart    &lt;br /&gt;# Default: PH, Possible codes: PH    &lt;br /&gt;ShowOriginStats=PH    &lt;br /&gt;# Show keyphrases chart    &lt;br /&gt;# Default: 1, Possible codes: None    &lt;br /&gt;ShowKeyphrasesStats=1    &lt;br /&gt;# Show keywords chart    &lt;br /&gt;# Default: 1, Possible codes: None    &lt;br /&gt;ShowKeywordsStats=1    &lt;br /&gt;# Show misc chart    &lt;br /&gt;# Default: ajdfrqwp (See also MiscTrackerUrl parameter), Possible codes: ajdfrqwp    &lt;br /&gt;ShowMiscStats=ajdfrqwp    &lt;br /&gt;# Show http errors chart    &lt;br /&gt;# Default: 1, Possible codes: None    &lt;br /&gt;ShowHTTPErrorsStats=1    &lt;br /&gt;# Show smtp errors chart (For use when analyzing mail log files)    &lt;br /&gt;# Default: 0, Possible codes: None    &lt;br /&gt;ShowSMTPErrorsStats=0    &lt;br /&gt;&lt;br /&gt;# Data array values for the ShowMonthStats report    &lt;br /&gt;AddDataArrayMonthStats=1    &lt;br /&gt;# Data array values for the ShowDaysOfMonthStats report    &lt;br /&gt;AddDataArrayShowDaysOfMonthStats=1    &lt;br /&gt;# Data array values for the ShowDaysOfWeekStats report    &lt;br /&gt;AddDataArrayShowDaysOfWeekStats=1    &lt;br /&gt;# Data array values for the ShowHoursStats report    &lt;br /&gt;AddDataArrayShowHoursStats=1    &lt;br /&gt;&lt;br /&gt;# Stats by domains    &lt;br /&gt;MaxNbOfDomain = 10    &lt;br /&gt;MinHitDomain  = 1    &lt;br /&gt;# Stats by hosts    &lt;br /&gt;MaxNbOfHostsShown = 10    &lt;br /&gt;MinHitHost    = 1    &lt;br /&gt;# Stats by authenticated users    &lt;br /&gt;MaxNbOfLoginShown = 10    &lt;br /&gt;MinHitLogin   = 1    &lt;br /&gt;# Stats by robots    &lt;br /&gt;MaxNbOfRobotShown = 10    &lt;br /&gt;MinHitRobot   = 1    &lt;br /&gt;# Stats by pages    &lt;br /&gt;MaxNbOfPageShown = 10    &lt;br /&gt;MinHitFile    = 1    &lt;br /&gt;# Stats by OS    &lt;br /&gt;MaxNbOfOsShown = 10    &lt;br /&gt;MinHitOs      = 1    &lt;br /&gt;# Stats by browsers    &lt;br /&gt;MaxNbOfBrowsersShown = 10    &lt;br /&gt;MinHitBrowser = 1    &lt;br /&gt;# Stats by screen size    &lt;br /&gt;MaxNbOfScreenSizesShown = 5    &lt;br /&gt;MinHitScreenSize = 1    &lt;br /&gt;# Stats by referers    &lt;br /&gt;MaxNbOfRefererShown = 10    &lt;br /&gt;MinHitRefer   = 1    &lt;br /&gt;# Stats for keyphrases    &lt;br /&gt;MaxNbOfKeyphrasesShown = 10    &lt;br /&gt;MinHitKeyphrase = 1    &lt;br /&gt;# Stats for keywords    &lt;br /&gt;MaxNbOfKeywordsShown = 10    &lt;br /&gt;MinHitKeyword = 1    &lt;br /&gt;# Stats for emails    &lt;br /&gt;MaxNbOfEMailsShown = 20    &lt;br /&gt;MinHitEMail   = 1    &lt;br /&gt;FirstDayOfWeek=1    &lt;br /&gt;ShowFlagLinks=&quot;de en es fr nl&quot;    &lt;br /&gt;ShowLinksOnUrl=1    &lt;br /&gt;&lt;br /&gt;UseHTTPSLinkForUrl=&quot;&quot;    &lt;br /&gt;MaxLengthOfURL=72    &lt;br /&gt;ShowLinksToWhoIs=0    &lt;br /&gt;LinksToWhoIs=&quot;http://www.whois.net/search.cgi2?str=&quot;    &lt;br /&gt;LinksToIPWhoIs=&quot;http://ws.arin.net/cgi-bin/whois.pl?queryinput=&quot;    &lt;br /&gt;HTMLHeadSection=&quot;&quot;    &lt;br /&gt;HTMLEndSection=&quot;&quot;    &lt;br /&gt;&lt;br /&gt;Logo=&quot;awstats_logo1.png&quot;    &lt;br /&gt;LogoLink=&quot;http://awstats.sourceforge.net&quot;    &lt;br /&gt;BarWidth   = 260    &lt;br /&gt;BarHeight  = 90    &lt;br /&gt;StyleSheet=&quot;&quot;    &lt;br /&gt;color_Background=&quot;FFFFFF&quot;        # Background color for main page (Default = &quot;FFFFFF&quot;)    &lt;br /&gt;color_TableBGTitle=&quot;CCCCDD&quot;        # Background color for table title (Default = &quot;CCCCDD&quot;)    &lt;br /&gt;color_TableTitle=&quot;000000&quot;        # Table title font color (Default = &quot;000000&quot;)    &lt;br /&gt;color_TableBG=&quot;CCCCDD&quot;            # Background color for table (Default = &quot;CCCCDD&quot;)    &lt;br /&gt;color_TableRowTitle=&quot;FFFFFF&quot;    # Table row title font color (Default = &quot;FFFFFF&quot;)    &lt;br /&gt;color_TableBGRowTitle=&quot;ECECEC&quot;    # Background color for row title (Default = &quot;ECECEC&quot;)    &lt;br /&gt;color_TableBorder=&quot;ECECEC&quot;        # Table border color (Default = &quot;ECECEC&quot;)    &lt;br /&gt;color_text=&quot;000000&quot;                # Color of text (Default = &quot;000000&quot;)    &lt;br /&gt;color_textpercent=&quot;606060&quot;        # Color of text for percent values (Default = &quot;606060&quot;)    &lt;br /&gt;color_titletext=&quot;000000&quot;        # Color of text title within colored Title Rows (Default = &quot;000000&quot;)    &lt;br /&gt;color_weekend=&quot;EAEAEA&quot;            # Color for week-end days (Default = &quot;EAEAEA&quot;)    &lt;br /&gt;color_link=&quot;0011BB&quot;                # Color of HTML links (Default = &quot;0011BB&quot;)    &lt;br /&gt;color_hover=&quot;605040&quot;            # Color of HTML on-mouseover links (Default = &quot;605040&quot;)    &lt;br /&gt;color_u=&quot;FFB055&quot;                # Background color for number of unique visitors (Default = &quot;FFB055&quot;)    &lt;br /&gt;color_v=&quot;F8E880&quot;                # Background color for number of visites (Default = &quot;F8E880&quot;)    &lt;br /&gt;color_p=&quot;4477DD&quot;                # Background color for number of pages (Default = &quot;4477DD&quot;)    &lt;br /&gt;color_h=&quot;66F0FF&quot;                # Background color for number of hits (Default = &quot;66F0FF&quot;)    &lt;br /&gt;color_k=&quot;2EA495&quot;                # Background color for number of bytes (Default = &quot;2EA495&quot;)    &lt;br /&gt;color_s=&quot;8888DD&quot;                # Background color for number of search (Default = &quot;8888DD&quot;)    &lt;br /&gt;color_e=&quot;CEC2E8&quot;                # Background color for number of entry pages (Default = &quot;CEC2E8&quot;)    &lt;br /&gt;color_x=&quot;C1B2E2&quot;                # Background color for number of exit pages (Default = &quot;C1B2E2&quot;)    &lt;br /&gt;&lt;br /&gt;LoadPlugin=&quot;tooltips&quot;    &lt;br /&gt;LoadPlugin=&quot;userinfo&quot;  &lt;/p&gt;    &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/suse&quot;&gt;suse&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tutorials&quot;&gt;software tutorials&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/apache&quot;&gt;apache&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Tue, 09 May 2006 03:18:51 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">266 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Getting Rails up and Running with Apache2 on SUSE</title>
 <link>https://www.stress-free.co.nz/getting_rails_up_and_running_with_apache2_on_suse</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;p&gt;After some Googl&#039;ing, reading and playing about I have got Ruby on Rails running on my SuSE 9.2 server. The process was made difficult by the need to compile quite a few different pieces of software from source and configure mod_fastcgi (which has not been worked on for a while). If you are stuck on this subject take a look at the tutorial here:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.stress-free.co.nz/node/163/59/&quot;&gt;https://www.stress-free.co.nz/node/163/59/&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.stress-free.co.nz/node/163/59/&quot;&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/suse&quot;&gt;suse&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/ruby&quot;&gt;ruby&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/apache&quot;&gt;apache&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Wed, 09 Nov 2005 05:23:04 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">164 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Rails, Apache2 and SUSE</title>
 <link>https://www.stress-free.co.nz/rails_apache2_and_suse</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
      &lt;p&gt;Getting Rails up and running on Apache2 on SUSE is takes a little work as at the moment Rails is not part of the the SUSE software updates network. This means you must build Rails (and Ruby if using SuSE &amp;lt; 9.3) and the FastCGI development kit from source.&lt;/p&gt;  &lt;p&gt;1. First off it you need Ruby 1.8.2 (or greater) to run Rails. If you have a version less than this you will need to compile and install Ruby from source.    &lt;br /&gt;Install GCC, make, the C devel, zlib and zlib-devel packages using Yast.    &lt;br /&gt;Download the latest version of Ruby from http://www.ruby-lang.org/    &lt;br /&gt;Untar the source file to /usr/local/src, compile and install (as root or sudo): &lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;tar -xzf ruby-1.8.3.tar.gz    &lt;br /&gt;cd ruby-1.8.3    &lt;br /&gt;./configure    &lt;br /&gt;make    &lt;br /&gt;make test    &lt;br /&gt;make install &lt;/p&gt; Once completed this will set Ruby up on your system (by default into /usr/local/bin). Create a link in /usr/bin to ruby.  &lt;p class=&quot;codesnippet&quot;&gt;ln -s /usr/local/bin/ruby /usr/bin/ruby &lt;/p&gt; 2. Install gems (a ruby package manager). Download gems from http://rubyforge.org/projects/rubygems/  &lt;br /&gt;Untar the source code into /usr/local/src, compile and install (as root or sudo):  &lt;p class=&quot;codesnippet&quot;&gt;tar -xzf rubygems-0.8.11.tgz    &lt;br /&gt;cd rubygems-0.8.11    &lt;br /&gt;./configure    &lt;br /&gt;make    &lt;br /&gt;make install &lt;/p&gt; This will install gems into /usr/local/bin. Create a link in /usr/bin  &lt;p class=&quot;codesnippet&quot;&gt;ln -s /usr/local/bin/gem /usr/bin/gem &lt;/p&gt; 3. With ruby and gems installed install Rails:  &lt;p class=&quot;codesnippet&quot;&gt;gem install rails --include-dependencies &lt;/p&gt; &lt;p&gt;4. With Rails installed create a test project and test the Rails WebBrick server.&lt;/p&gt; &lt;p&gt;5. Using Yast install the mod_fastcgi package for integrating Rails into Apache2. &lt;/p&gt;  &lt;p&gt;6. From http://www.fastcgi.com/ download the FastCGI development package. Untar the source into /usr/local/src and compile: &lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;tar -xzf fcgi-2.4.0.tar.gz    &lt;br /&gt;cd fcgi-2.4.0    &lt;br /&gt;./configure    &lt;br /&gt;make install &lt;/p&gt; 7. Now install the fcgi component for ruby using gem.  &lt;p class=&quot;codesnippet&quot;&gt;gem install fcgi -- --with-fcgi-dir=/usr/local/ &lt;/p&gt; 8. Edit /etc/sysconfig/apache2 and in the modules section add fastcgi to the list of modules loaded by Apache when it starts.  &lt;br /&gt;&lt;br /&gt;9. Create a new virtualhost in Apache for your Rails application. Use the following template as an example:  &lt;p class=&quot;codesnippet&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;    &lt;br /&gt;        ServerName rails.test.domain    &lt;br /&gt;        AddHandler fastcgi-script .fcgi    &lt;br /&gt;        AddHandler cgi-script .cgi    &lt;br /&gt;        DocumentRoot /srv/www/rails/RailsTestProject/public    &lt;br /&gt;        &amp;lt;Directory /srv/www/rails/RailsTestProject/public&amp;gt;    &lt;br /&gt;                RewriteEngine On    &lt;br /&gt;                RewriteRule ^$ index.html [QSA]    &lt;br /&gt;                RewriteRule ^([^.]+)$ $1.html [QSA]    &lt;br /&gt;                RewriteCond %{REQUEST_FILENAME} !-f    &lt;br /&gt;                RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]    &lt;br /&gt;                ErrorDocument 500 &quot;&amp;lt;h2&amp;gt;Application error&amp;lt;/h2&amp;gt;Rails application failed to start properly&quot;    &lt;br /&gt;                Options ExecCGI FollowSymLinks    &lt;br /&gt;                AllowOverride all    &lt;br /&gt;                Allow from all    &lt;br /&gt;           Order allow,deny    &lt;br /&gt;        &amp;lt;/Directory&amp;gt;    &lt;br /&gt;&amp;lt;/VirtualHost&amp;gt; &lt;/p&gt; 10. Restart Apache and test the virtual host. Hopefully fastcgi should be working with Rails to display your new application.  &lt;p&gt; &lt;/p&gt;  &lt;p&gt; &lt;/p&gt;   &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/suse&quot;&gt;suse&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tutorials&quot;&gt;software tutorials&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/ruby&quot;&gt;ruby&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/apache&quot;&gt;apache&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/rails&quot;&gt;rails&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Wed, 09 Nov 2005 05:14:43 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">163 at https://www.stress-free.co.nz</guid>
</item>
</channel>
</rss>
