現在位置: Top/XreaにDrupalを設置
XreaにDrupalを設置
.htaccessを編集
- ファイルの先頭に
LayoutIgnoreURI *
を挿入 - ファイルの最後に
php_value output_buffering Off php_value default_charset UTF-8 php_value mbstring.language neutral php_value mbstring.encoding_translation Off php_value mbstring.http_input pass php_value mbstring.http_output pass php_value mbstring.internal_encoding UTF-8 php_value mbstring.substitute_character long
を追加
データベースを作成
- database/database.mysql
をコピー
database/database.xrea.mysql
とする - 置換する
CREATE TABLE (最後の半角スペースが重要)
をCREATE TABLE drupal_
に - 以下同じように
INSERT INTO drupal_ REPLACE drupal_
となるように置換 - phpmyadminでSQLを実行する
設定ファイルを編集
- sites/default/settings.phpを開く
以下のように編集$db_url = 'mysql://subdomain:password@subdomain'; $db_prefix = 'drupal_'; $base_url = 'http://subdomain.s201.xrea.com/drupal';
※subdomainとpasswordはサーバーにあわせる