<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Thinking in XiaoQiang
    世人皆有悲哀,只有你不明白
    posts - 56,comments - 150,trackbacks - 0

    轉(zhuǎn)自:http://www.urbanpuddle.com/articles/2006/06/10/install-ruby-rails-on-ubuntu-dapper-drake

    This is a small guide I wrote up to installing Ruby on Rails on Dapper Drake. It covers getting lighttpd running to support both rails and php which will be useful to anyone who likes to use phpmyadmin along with ruby on rails. It's similar to the article I wrote earlier for Arch Linux except modified for Ubuntu's Dapper Drake release.

    1. Make sure the universe repository in /etc/apt/sources.list is uncommented:
    deb http://us.archive.ubuntu.com/ubuntu dapper universe
    deb-src http://us.archive.ubuntu.com/ubuntu dapper universe

    2. Make sure you are up to date:
    sudo apt-get update
    sudo apt-get dist-upgrade

    3. Install the ruby base packages:
    sudo apt-get install ruby ri rdoc mysql-server libmysql-ruby

    4. We need to grab the latest ruby gems from rubyforge. You may need to modify this command if a version after 0.90 is available.
    sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
    tar -xvzf rubygems-0.9.0.tgz
    cd rubygems-0.9.0
    sudo ruby setup.rb

    5. Now let's install Ruby on Rails!
    sudo gem install rails --include-dependencies

    6. We have Rails but we still need lighttpd and mysql. I've thrown in PHP too in case you want to manage your database with phpmyadmin like I do. Let's grab all the packages, shall we?
    sudo apt-get install lighttpd php5-cgi php4-cgi php5-mysql php5-mysqli php4-mysql libfcgi-dev libfcgi-ruby1.8

    7. Modify your /etc/lighttpd/lighttpd.conf file to set up your domains. Be careful because by default Ubuntu maps all the images so that they are taken from /usr/share/images instead of your/rails/root/public/images so if you're wondering why your rails app is working but your images aren't being displayed this is why. You can take out the offending code in your lighttpd.conf or just put your images in /usr/share/images.

    8. Time to enable some modules for lighttpd. There are others that you may need but they should be enabled in your lighttpd.conf. Personally, I'm not a fan of enabling modules two different ways but I'm sure this will get cleaned up eventually.
    sudo /usr/sbin/lighty-enable-mod fastcgi
    sudo /usr/sbin/lighty-enable-mod proxy
    sudo /etc/init.d/lighttpd force-reload

    9. Let's make sure that there are no errors by stopping lighttpd and then starting it manually:
    sudo /etc/init.d/lighttpd stop
    sudo lighttpd -f /etc/lighttpd/lighttpd.conf

    If you have errors there make sure you take a look and try to address them! The output you see will be your best bet in getting help from somebody on one of the forums.

    10. Install some basic gems you might need to run your rails app:
    sudo gem install actionmailer
    sudo gem install activesupport
    sudo gem install actionpack
    sudo gem install actionwebservice

    And now you should have a new, shiny, ready to go Ubuntu Dapper Drake server just waiting for your PHP or Ruby on Rails applications!
    posted on 2006-10-30 17:07 小強(qiáng) 閱讀(396) 評論(0)  編輯  收藏 所屬分類: ruby
    主站蜘蛛池模板: 免费一级毛片不卡不收费| 国产亚洲综合久久系列| 一级成人毛片免费观看| 亚洲国产精彩中文乱码AV| 成人免费在线看片| 四虎影视在线看免费观看| 亚洲国产精品久久66| 暖暖免费高清日本中文| 在线观看黄片免费入口不卡| 亚洲噜噜噜噜噜影院在线播放| 人人狠狠综合久久亚洲高清| 91精品手机国产免费| 免费看黄网站在线看| 亚洲麻豆精品果冻传媒| 亚洲AV日韩精品一区二区三区| 99re在线这里只有精品免费| 美女被暴羞羞免费视频| 2022年亚洲午夜一区二区福利 | 色婷五月综激情亚洲综合| 久久精品夜色噜噜亚洲A∨| 7723日本高清完整版免费| fc2免费人成为视频| 亚洲AV综合色区无码二区爱AV| 久久久亚洲精品蜜桃臀| 午夜视频免费观看| 十九岁在线观看免费完整版电影| 水蜜桃视频在线观看免费| 亚洲免费网站在线观看| 亚洲国产美女精品久久久久∴| 日本免费的一级v一片| 日本人的色道免费网站| 久久成人免费大片| 成人久久久观看免费毛片| 亚洲午夜理论片在线观看| 亚洲综合无码一区二区| 亚洲人成色7777在线观看| 亚洲第一区在线观看| 在线成人a毛片免费播放| 黄在线观看www免费看| 日本免费一区二区久久人人澡| 中文字幕亚洲免费无线观看日本|