Apache Roller5.0.0 インストール (その1)
2012-07-09


─────────────────────────────────────


手順4) Java Mailライブラリの取得
OracleのサイトなどからJavaMailAPIを取得・解凍して、Tomcatのlibディレクトリに配置し、所有者をtomcatに変更します。
─────────────────────────────────────
# pwd
/usr/local/tomcat/lib
# chown tomcat:tomcat mail.jar
─────────────────────────────────────


手順5) Tomcatのserver.xmlのエンコーディング設定
/usr/local/tomcat/conf/servver.xml を開き、Connectorに「URIEncoding="UTF-8"」が未設定であれば、設定します。
─────────────────────────────────────
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               URIEncoding="UTF-8" />
    ・・・
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />
─────────────────────────────────────


手順6) Roller用ディレクトリの作成
イメージファイルのアップロード先などとなるディレクトリを用意します。
今回は /usr/local/rollerdata/ とします。
─────────────────────────────────────
  # cd  /usr/local/
  # mkdir rollerdata
  # chown tomcat:tomcat rollerdata/
  # cd rollerdata/
  # mkdir mediafiles
  # mkdir searchindex
  # chown tomcat:tomcat *
─────────────────────────────────────


手順7) PostgreSQLへの追加設定
9.1以降のPostgreSQLを使うため、バックスラッシュのエスケープ方法を以前と同じ方法に変更します。
/usr/local/pgsql/data/postgresql.conf を以下のように修正します。
─────────────────────────────────────
#------------------------------------------------------------------------------
# VERSION/PLATFORM COMPATIBILITY
#------------------------------------------------------------------------------
# - Previous PostgreSQL Versions -
#array_nulls = on
#backslash_quote = safe_encoding        # on, off, or safe_encoding
#default_with_oids = off
escape_string_warning = off               #エスケープに関する警告を非表示にする。
#lo_compat_privileges = off
#quote_all_identifiers = off
#sql_inheritance = on
standard_conforming_strings = off      #標準でバックスラッシュをエスケープする。
#synchronize_seqscans = on
# - Other Platforms and Clients -

続きを読む
戻る
[Apache Roller]

コメント(全50件)
※コメントの受付件数を超えているため、この記事にコメントすることができません。


記事を書く
powered by ASAHIネット