質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.49%
Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

サーバ

サーバは、 クライアントサーバモデルにおいてクライアントからの要求に対し 何らかのサービスを提供するプログラムを指す言葉です。 また、サーバーソフトウェアを稼動させているコンピュータ機器そのもののことも、 サーバーと呼ぶ場合もあります。

Q&A

解決済

3回答

3998閲覧

500 Internal Server Error

kaori1994

総合スコア28

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

サーバ

サーバは、 クライアントサーバモデルにおいてクライアントからの要求に対し 何らかのサービスを提供するプログラムを指す言葉です。 また、サーバーソフトウェアを稼動させているコンピュータ機器そのもののことも、 サーバーと呼ぶ場合もあります。

0グッド

0クリップ

投稿2016/06/28 02:10

編集2016/06/28 07:02

お世話になっております。
kaoriと申します。

本日はサーバにCMS設置した際の問題について質問いたします。
内容は以下のエラーについてです。
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@test.jp and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

【現状】
あるCMSの管理画面にアクセスすると500エラーが出てしまいます。
今まではアクセスできたのですが、CMS内でwebサイト作成をして再度管理画面にアクセスすると、エラーになってしまいました。

【私が行った対処】

  1. .htaccessをチェックし、 Options +FollowSymLinksが悪さしていると検索結果にあったのでコメントにしました。

  2. ディレクトリをwebサイト作成前の状態に戻しました。(作成されたディレクトリを消しただけ)

500エラーはサーバ側の設定によるエラーというのはわかったのですが、だとするとどう対処するのが正解なのかまでは導き出せませんでした・・・

【使用CMS】
PowerCMSです。

【.htaccessの内容】

## %%%%%%% Movable Type generated this part; don't remove this line! %%%%%%% # Disable fancy indexes, so .mtview.php gets a chance... Options -Indexes <IfModule mod_rewrite.c> Options +FollowSymLinks # The mod_rewrite solution is the preferred way to invoke # dynamic pages, because of its flexibility. # Add .mtview.php to the list of DirectoryIndex options, listing it last, # so it is invoked only if the common choices aren't present... <IfModule mod_dir.c> #DirectoryIndex index.php index.html index.htm default.asp default.aspx default.html default.htm /.mtview.php DirectoryIndex index.html /.mtview.php </IfModule> RewriteEngine On # don't serve .mtview.php if the request is for a real directory # (allows the DirectoryIndex lookup to function) RewriteCond %{REQUEST_FILENAME} !-d # don't serve .mtview.php if the request is for a real file # (allows the actual file to be served) RewriteCond %{REQUEST_FILENAME} !-f # anything else is handed to .mtview.php for resolution RewriteRule ^ /.mtview.php [L] </IfModule> <IfModule !mod_rewrite.c> # if mod_rewrite is unavailable, we forward any missing page # or unresolved directory index requests to mtview # if .mtview.php can resolve the request, it returns a 200 # result code which prevents any 4xx error code from going # to the server's access logs. However, an error will be # reported in the error log file. If this is your only choice, # and you want to suppress these messages, adding a "LogLevel crit" # directive within your VirtualHost or root configuration for # Apache will turn them off. ErrorDocument 403 /.mtview.php ErrorDocument 404 /.mtview.php </IfModule> ## ******* Movable Type generated this part; don't remove this line! ******* php_flag short_open_tag off ここに言語を入力 ``` 【エラーログの内容】 .htaccess: Option FollowSymLinks not allowed here, referer: http://test.jp/cgi-bin/mt/mt.cgi?__mode=rebuild&blog_id=18&type=Monthly%2CIndividual%2CCategory%2CPage%2Cindex&next=4&offset=0&limit=&total=0&start_time=1467096821&entry_id=&is_new=&old_status=&old_categories=&old_previous=&old_next= 申し訳ありませんが、お力をお借りしたくteratailに投稿させていただきました。 以上、よろしくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

moonphase

2016/06/28 02:22

追加情報をお願いします。 ・利用しているCMSは何ですか? ・.htaccessの内容を教えて下さい。 ・エラーログの内容を教えて下さい。
kei344

2016/06/28 05:20

.htaccessはコードブロックで囲んでいただけませんか? ```(バッククオート3つ)で囲み、前後に改行をいれるか、コードを選択して「</>」ボタンを押すとコードブロックになります。
kaori1994

2016/06/28 06:01

見にくくてすみませんでした・・・ こういったやり方があるのですね! 勉強になりました! ありがとうございます!
kei344

2016/06/28 06:04

編集ありがとうございます。細かいのですが、「ここに言語を入力」は削除したほうが良いですよ。
kaori1994

2016/06/28 07:05

kei344さん、お世話になっております。 私細かいところが抜けがちなので、ご指摘いただけてうれしい限りです!
guest

回答3

0

ベストアンサー

httpd.confの次の箇所はどうなってますか?
テストで使っているならば、AllowOverride NoneAllowOverride Allに書き換えるのが手っ取り早いです。そうすることで、.htaccessで設定の上書きが可能となります。

text

1<Directory /> 2 Options FollowSymLinks 3 AllowOverride None 4</Directory>

設定変更後はhttpdの再起動はしましたか?

投稿2016/06/28 08:57

moonphase

総合スコア6621

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

More information about this error may be available in the server error log.

とあるように、エラーログファイルの確認が最初の一歩です。

投稿2016/06/28 02:42

otn

総合スコア84491

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

kaori1994

2016/06/28 04:01

otnさん、初めまして。 そうしてみることにします! 一歩ずつ解決できるよう頑張ります!
guest

0

CMSの吐き出す error log を確認してはいかがですか?

投稿2016/06/28 02:14

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

kaori1994

2016/06/28 02:30

te2jiさん、初めまして。 エラーログを確認して、もう少し考えてみます! ありがとうございます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問