<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Cooper's blog: Tag redhat</title>
    <link>http://cooper.ezlibrary.com/articles/tag/redhat</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>&#1055;&#1088;&#1086;&#1075;&#1088;&#1072;&#1084;&#1084;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1080;&#1077;, &#1073;&#1083;&#1086;&#1075;&#1075;&#1080;&#1085;&#1075;, online money making: &#1089;&#1086;&#1073;&#1099;&#1090;&#1080;&#1103;, &#1092;&#1072;&#1082;&#1090;&#1099;, &#1083;&#1080;&#1095;&#1085;&#1099;&#1081; &#1086;&#1087;&#1099;&#1090;</description>
    <item>
      <title>HowTo Install typo on Red Hat EL3</title>
      <description>&lt;p&gt;Here is a typo installation guide based on the folowing: 
&lt;noindex&gt;
&lt;a rel="nofollow" href="http://www.typosphere.org/trac/wiki/TypoOnFreebsd"&gt; 
http://www.typosphere.org/trac/wiki/TypoOnFreebsd&lt;/a&gt;&lt;/noindex&gt;&lt;/p&gt;

&lt;h2&gt;1. Install Ruby 1.8.4&lt;/h2&gt;

&lt;p&gt;Download and install ruby from the stable release 1.8.4
&lt;noindex&gt;&lt;a href="http://www.ruby-lang.org/en/20020102.html"&gt; http://www.ruby-lang.org/en/20020102.html&lt;/a&gt;&lt;/noindex&gt;&lt;/p&gt;

&lt;h2&gt;2. Install gems&lt;/h2&gt;

&lt;pre&gt;
$cd
$wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
$tar xvzf rubygems-0.8.11.tgz
$cd rubygems-0.8.11
$ruby setup.rb
&lt;/pre&gt;

&lt;h2&gt;3. Install Rails&lt;/h2&gt;

&lt;pre&gt;
$gem update
$gem install rails --include-dependencies 
&lt;/pre&gt;

&lt;h2&gt;4. Download and install FastCGI Development Kit&lt;/h2&gt;

&lt;pre&gt;
$ wget fastcgi.com/dist/fcgi-2.4.0.tar.gz | tar xfz -
$ copy fcgi-2.4.0 /usr/local/src/fcgi-2.4.0
$ cd /usr/local/src/fcgi-2.4.0
$ ./configure
$ make
$ sudo make install
&lt;/pre&gt;

&lt;h2&gt;5.  Install FCGI bindings for Ruby&lt;/h2&gt;

&lt;pre&gt;
$ sudo gem install fcgi
&lt;/pre&gt;

&lt;h2&gt;6. Download and Install typo&lt;/h2&gt;

&lt;pre&gt;
# /usr/sbin/adduser typo_user
# passwd typo_user 
$ svn checkout svn://leetsoft.com/typo/trunk typo
$ cp -R typo /home/typo_user/websites/www.mysite.com
&lt;/pre&gt;

&lt;h2&gt;7. Configuring Typo&lt;/h2&gt;

&lt;p&gt;Replace &lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;/usr/bin/env ruby &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;with &lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;/usr/local/bin/ruby &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;in &lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;public/dispatch.fcgi&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; and &lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;public/dispatch.rb&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;.&lt;/p&gt;

&lt;h2&gt;8. Database&lt;/h2&gt;

&lt;h3&gt;8.1 Install Ruby/MySQL&lt;/h3&gt;

&lt;p&gt;&lt;noindex&gt;(http://www.tmtm.org/en/mysql/ruby/)&lt;/noindex&gt;&lt;/p&gt;

&lt;h3&gt;8.2 Create database in MySQL&lt;/h3&gt;

&lt;pre&gt;
mysql -p
create database typo_user_typo CHARACTER SET utf8;
grant all on typo_user_typo.* to 'typo_user'@'localhost' \
identified by 'typo_password';
flush privileges;
use typo_user_typo;
source /home/typo_user/websites/www.mysite.com/db/schema.mysql.sql;
&lt;/pre&gt;

&lt;p&gt;Edit config/database.yml:&lt;/p&gt;

&lt;pre&gt;
login: &amp;login
  adapter: mysql
  host: localhost
  username: typo_user
  password: typo_password
  socket: /var/lib/mysql/mysql.sock
  encoding: utf8

development:
  database: typo_user_typo
  &lt;&lt;: *login

test:
  database: typo_user_typo
  &lt;&lt;: *login

production:
  database: typo_user_typo
  &lt;&lt;: *login
&lt;/pre&gt;

&lt;h3&gt;8.3 Update the database-schema&lt;/h3&gt;

&lt;pre&gt;
$rake migrate
&lt;/pre&gt;

&lt;h2&gt;9. Lighttpd&lt;/h2&gt;

&lt;p&gt;Download from 
&lt;noindex&gt;&lt;a href="http://www.lighttpd.net/download/lighttpd-1.4.11.tar.gz"&gt;
http://www.lighttpd.net/download/lighttpd-1.4.11.tar.gz&lt;/a&gt;&lt;/noindex&gt;
Extract to /usr/local/src/lighttpd-1.4.11&lt;/p&gt;

&lt;pre&gt;
$ cd /usr/local/src/lighttpd-1.4.11
$ ./configure
$ make
$ su -
# make install
# exit
&lt;/pre&gt;

&lt;p&gt;Copy config-file from /home/typo_user/websites/www.mysite.com/config to  /etc/lighttpd/lighttpd.conf and then edit:&lt;/p&gt;

&lt;pre&gt;
server.pid-file             = "/var/run/typo-typo_user.pid"
server.port                 = 3000
server.bind                 = "127.0.0.1"
#server.event-handler        = "freebsd-kqueue"
server.name                 = "www.mysite.com"

server.modules              = ( "mod_rewrite", "mod_fastcgi", "mod_accesslog" )
server.indexfiles           = ( "dispatch.fcgi" )
server.document-root        = "/home/typo_user/websites/www.mysite.com/public"
server.error-handler-404    = "/dispatch.fcgi"
server.errorlog             = "/home/typo_user/websites/www.mysite.com/log/error.log"
accesslog.filename          = "/home/typo_user/websites/www.mysite.com/log/access.log"

url.rewrite = ( "^/$" =&gt; "index.html", "^([^.]+)$" =&gt; "$1.html" )

#### fastcgi module
fastcgi.server =  (
   ".fcgi" =&gt; (
        "typo" =&gt; (
               "min-procs" =&gt; 4,
               "max-procs" =&gt; 4,
               "socket" =&gt; "/home/typo_user/websites/www.mysite.com/tmp/typo-typo_user.socket",
               "bin-path" =&gt; "/home/typo_user/websites/www.mysite.com/public/dispatch.fcgi",
               "bin-environment" =&gt; ("RAILS_ENV" =&gt; "production" ),
               "idle-timeout" =&gt; 120
                )
           )
&lt;/pre&gt;

&lt;p&gt;Copy /usr/local/src/lighttpd-1.4.11/doc/rc.lighttpd.redhat to /etc/rc.d/init.d/lighttpd. 
Replace the line&lt;/p&gt;

&lt;p&gt;lighttpd=&amp;#8221;/usr/sbin/lighttpd&amp;#8221; &lt;/p&gt;

&lt;p&gt;with&lt;/p&gt;

&lt;p&gt;lighttpd=&amp;#8221;/usr/local/sbin/lighttpd&amp;#8221; &lt;/p&gt;

&lt;p&gt;Start lighttpd server  /etc/rc.d/init.d/lighttpd start&lt;/p&gt;</description>
      <pubDate>Tue, 04 Jul 2006 14:52:00 +0400</pubDate>
      <guid isPermaLink="false">urn:uuid:58b61e48-29f9-4b3e-9694-e370616ade2d</guid>
      <author>Cooper</author>
      <link>http://cooper.ezlibrary.com/articles/2006/07/04/typo_on_RHEL3</link>
      <category>Typo</category>
      <category>Ruby</category>
      <category>Linux</category>
      <category>typo</category>
      <category>ruby</category>
      <category>linux</category>
      <category>redhat</category>
    </item>
  </channel>
</rss>

