What is so creative?

Ruby install with XAMPP

WindowsにRubyをインストールした時のメモ

  1. RubyForge から最新版のRubyInstallerをダウンロード
  2. インストール先はわかり易いよう C:\xampp\ruby へ
  3. 環境変数のPathに C:\xampp\ruby\bin; が追加されていること確認(自動で追加)
  4. コマンドプロンプト ruby -v を実行しバージョン情報を確認
  5. コマンドプロンプト gem install rails を実行(RubyにRailsのライブラリを追加)
  6. 環境変数のPath C:\xampp\ruby\bin; の前に C:\xampp\mysql\bin; を追加
  7. C:\xampp\mysql\bin フォルダ内の libmysql.dll を C:\xampp\ruby\bin フォルダへコピー
  8. httpd.conf の内容を下記のように編集
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
<IfModule alias_module>
  ~
</IfModule>
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
間に
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Alias /rails "c:/xampp/rails_apps/appname/public"
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
を追加
適当な箇所に下記も追加
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
<Directory "c:/xampp/rails_apps/appname/public/">
    Options +ExecCGI +FollowSymLinks
    AllowOverride all
    Order allow,deny
    Allow from all
    AddHandler cgi-script .cgi
</Directory>
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

9. c:/xampp/rails_apps内へアプリを配置
10. c:/xampp/rails_apps/appname/public/内の .htaccessを下記のように編集
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
#AddHandler fastcgi-script .fcgi
#AddHandler cgi-script .cgi
#Options +FollowSymLinks +ExecCGI

RewriteBase /appname/
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Comments

0 comments posted

Post new comment

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.