Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Drupalのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Drupal
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:ウェブサーバー]] [[en:Drupal]] [[it:Drupal]] [[sr:Drupal]] [[zh-CN:Drupal]] ''"Drupal は PHP で書かれたフリーのオープンソースコンテンツ管理システム (CMS) とコンテンツ管理フレームワーク (CMF) であり GNU General Public License で配布されている。"'' - [[Wikipedia:ja:Drupal|Wikipedia]] この記事では Drupal をセットアップして [[Apache]], [[MySQL]] または [[PostgreSQL]], [[PHP]], [[Postfix]] を設定する方法を解説します。[[LAMP]] (Apache, MySQL, PHP) もしくは LAPP (Apache, PostgreSQL, PHP) サーバーが既にセットアップされていることが前提です。 == インストール == === Arch リポジトリ === [[公式リポジトリ]]から {{Pkg|drupal}} パッケージを[[インストール]]してください。 {{ic|/etc/php/php.ini}} を編集: *PHP のバージョンが 5.2.0 未満の場合、{{ic|<nowiki>;extension=json.so</nowiki>}} という行を探して行頭の ";" を消してアンコメントしてください。そのような行が見つからない場合は、ファイルの {{ic|<nowiki>[PHP]</nowiki>}} セクションに追加してください。 *Drupal 7 を使うには、データベースの PDO 拡張を有効にしてください。MySQL の場合 {{ic|<nowiki>extension=pdo_mysql.so</nowiki>}} という行をアンコメントする必要があります。 *{{ic|<nowiki>open_basedir =</nowiki>}} で始まる行を探してください。Drupal のインストールディレクトリ {{ic|/usr/share/webapps/drupal/}} と {{ic|/var/lib/drupal/}} を追加します。{{ic|/srv/http/}} は使わない場合は削除してかまいません。 {{ic|/etc/httpd/conf/httpd.conf}} を編集: *Drupal 専用のウェブサーバーにする場合、{{ic|DocumentRoot "/srv/http"}} という行を探して Drupal のインストールディレクトリに変更してください: {{ic|DocumentRoot "/usr/share/webapps/drupal"}}。それから "{{ic|<Directory "/srv/http">}}" で始まるセクションを探して {{ic|/srv/http}} を Drupal のインストールディレクトリに変更します: {{ic|/usr/share/webapps/drupal}}。同じセクション内に、"{{ic|AllowOverride All}}" という行が記述されているか確認してください。 *Apache のバーチャルホストを使う場合、[[Apache#バーチャルホスト]] を見て下さい。 最後に {{ic|/usr/share/webapps/drupal/.htaccess}} ファイルの {{ic|deny from all}} という行をコメントアウトすれば httpd のアクセスが有効になります。Apache (httpd) を[[デーモン#再起動|再起動]]してください。 === 手動インストール === http://drupal.org から最新パッケージをダウンロードして展開してください。フォルダを Apache の htdocs フォルダに移動します。ウェブブラウザを開いて、[localhost localhost] に移動してください。そして画面上の指示に従ってください。 === GD のインストール === Drupal を動かすには GD ライブラリが必要です。先に {{Pkg|php-gd}} パッケージをインストールしてください。{{ic|/etc/php/php.ini}} を編集して {{ic|<nowiki>;extension=gd.so</nowiki>}} という行をさがし、";" を削除してアンコメントしてください。そのような行がない場合、ファイルの {{ic|<nowiki>[PHP]</nowiki>}} セクションに追加してください。その後 Apache (httpd) を[[デーモン|再起動]]します。 === Postfix のインストール === Drupal でメールを送信するには、[[Postfix]] をインストールする必要があります。Drupal はアカウントの確認やパスワードのリカバリにメールを使います。まず {{Pkg|postfix}} をインストールしてください。 # Edit Postfix configuration file {{ic|/etc/postfix/main.cf}} as needed. All that you should have to do is change the hostnames under "Internet Host and Domain Names" {{ic|myhostname = hostname1}} # Start the Postfix service: {{ic|# systemctl start postfix}}. # Send a test e-mail to yourself: {{ic|mail myusername@localhost}}. Enter a subject, some words in the body, then press {{ic|Ctrl+d}} to exit and send the letter. Wait 10 seconds, and then type {{ic|mail}} to check your mail. If you've gotten it, excellent. # Make sure port 25 is fowarded if you have a router so that mails can be sent to the Internet at large # Edit the file {{ic|/etc/php/php.ini}}. Find the line that starts with, {{ic|<nowiki>;sendmail_path=""</nowiki>}} and change it to {{ic|<nowiki>sendmail_path="/usr/sbin/sendmail -t -i"</nowiki>}} # Restart the Apache web server. == Tips and tricks == === Cron のスケジュール === Drupal recommends running cron jobs hourly. Cron can be executed from the browser by visiting [localhost/cron localhost/cron]. It is also possible to run cron via script by copying the appropriate file from the "scripts" folder into {{ic|/etc/cron.hourly}} and making it executable. === Xampp の互換性 === Drupal の 5.x と 6.x シリーズは PHP 5.3 をサポートしていないため、最新の [[Xampp]] とは互換性がありません。現在 Drupal に対応する最後の Xampp のバージョンは 1.7.1 です。 Note: Xampp's PHP memory limit currently defaults to 8MB. Also, Xampp ignores php.ini files in the Drupal directory. To fix this: # Edit Xampp's configuration file {{ic|/opt/lampp/etc/php.ini}} using your favorite editor. # Search for the "memory_limit" line, and replace it with an appropriate value. Most Drupal installations just need 32MB, but sites with a lot of modules may need 100MB or more. # Restart Xampp: {{ic|/opt/lampp/lampp restart}} === アップロードプログレスが有効にならない === Upon successful installation you may see the following message in the Status Report: {{bc|Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.}} First, install the {{Pkg|php-pear}} package. Next, use the '''pecl''' command to automatically download, compile and install the library: # pecl install uploadprogress Finally, add to {{ic|/etc/php/php.ini}} extension=uploadprogress.so Restart Apache. == トラブルシューティング == === localhost にアクセスした時にブラウザが PHP のコードを表示してしまう === {{Pkg|php-apache}} がインストールされていません。 Then, enable the PHP module in {{ic|/etc/httpd/conf/httpd.conf}} by adding the following lines in the appropriate sections: LoadModule php5_module modules/libphp5.so Include conf/extra/php5_module.conf If, when starting httpd, you get the following error: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName You should edit {{ic|/etc/httpd/conf/httpd.conf}}. In that file find the line that looks similar to #ServerName www.example.com:80 Uncomment it (remove # from the front) and adjust the address as needed. Restart httpd: # systemctl restart httpd === localhost にアクセスしたときにセットアップページが表示されない === In this situation, you should navigate in your {{ic|/srv}} directory and look for the {{ic|drupal}} folder (most probably it will be in the {{ic|http}} directory). Then edit {{ic|/etc/httpd/conf/httpd.conf}}. and look for a line starting with {{ic|DocumentRoot}} and change the path with that folder's path (for example {{ic|DocumentRoot "/srv/http/drupal"}}) and also find another line starting with {{ic|<Directory}} and set the same path there as well. Restart httpd. === セットアップページが起動せず HTTP ERROR 500 が表示される === This may be because Drupal needs the {{ic|json.so}} extension to be activated in your {{ic|/etc/php/php.ini}}. Just uncomment in {{ic|/etc/php/php.ini}} the line: ;extension=json.so Restart httpd service. See [http://drupal.org/node/1018824 this link] for info. This can be caused because Drupal doesn't have access to its .htacccess, to enable this make sure that the directive AllowOverride All is set in your {{ic|/etc/httpd/conf/httpd.conf}} or for your respective user directory. See [https://httpd.apache.org/docs/current/mod/core.html#allowoverride this link] for info. == 参照 == * [http://drupal.org/handbook Drupal 公式ドキュメント] * [http://drupal.org/node/307956 Simple guide to install Drupal on Xampp] * [[LAMP]]
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Bc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:META Related articles start
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Related
(
ソースを閲覧
)
テンプレート:Related2
(
ソースを閲覧
)
テンプレート:Related articles end
(
ソースを閲覧
)
テンプレート:Related articles start
(
ソースを閲覧
)
Drupal
に戻る。
検索
検索
Drupalのソースを表示
話題を追加