Author: switch over

A big outdoor sports lover & A IT engineer.

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 +ExecCGIRewriteBase /appname/- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Drupal7の日本語化

Drupal7をレンタルサーバーなどで日本語化する場合、以下のようなエラーが出て日本語化ファイル(.po)をアップロードできない場合がある。

Home » Administration » Configuration » Regional and language » Translate interface » import

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access xxxxxxxxxxxxx in file_save_upload() (linea 1528 di /home/mysite/public_html/includes/file.inc).

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

代替法

1、http://localize.drupal.org/ から poファイルをダウンロードする。

2、/profiles/standard/translations へ poファイルを配置する。

3、Home » Administration » Configuration » Regional and language » Languages » Add から言語を選択し言語を追加する。

4、自動的に配置した poファイルを読み込みインポートされる。

5、デフォルトに設定する。