<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

    轉自: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 小強 閱讀(396) 評論(0)  編輯  收藏 所屬分類: ruby
    主站蜘蛛池模板: 亚洲精品无码久久久久APP| 学生妹亚洲一区二区| 精品国产免费人成网站| 国产L精品国产亚洲区久久 | 成年黄网站色大免费全看| 亚洲av一综合av一区| 免费人成在线观看网站品爱网| 99亚洲精品高清一二区| 午夜国产精品免费观看 | 亚洲精品伦理熟女国产一区二区 | 一本到卡二卡三卡免费高| 亚洲宅男天堂在线观看无病毒| 日韩精品免费在线视频| 亚洲国产一区国产亚洲| 免费成人福利视频| 亚洲一区二区三区在线观看蜜桃| 成人性生交大片免费看无遮挡| 国产精品亚洲精品日韩动图| 亚洲色大成网站WWW久久九九| 久久久99精品免费观看| 亚洲一区二区三区高清不卡 | 免费精品国自产拍在线播放| 久久激情亚洲精品无码?V| 精品成人免费自拍视频| 亚洲剧场午夜在线观看| 黄网址在线永久免费观看 | 亚洲AV午夜成人片| 4444www免费看| 国产亚洲欧美在线观看| 亚洲熟妇av一区二区三区漫画| 91精品成人免费国产片| 天天综合亚洲色在线精品| 亚洲人精品午夜射精日韩| 成人免费视频网站www| 一级女性全黄久久生活片免费| 久久91亚洲精品中文字幕| 国内大片在线免费看| 全黄大全大色全免费大片| 国产99在线|亚洲| 亚洲另类激情综合偷自拍图| AV片在线观看免费|