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

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

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

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

Q&A

解決済

1回答

940閲覧

apacheのエラー

momoki

総合スコア13

Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

0グッド

0クリップ

投稿2018/11/17 13:31

前提・実現したいこと

webサーバーをapacheを使用して構築していたのですが confを弄っていたら起動しなくなってしまいました
二週間位格闘しているのですがお手上げです

発生している問題・エラーメッセージ

エラーメッセージ 11月 17 16:05:40 server.mfserver.mydns.jp polkitd[818]: Registered Authentication Agent for unix-process:4518:252572 (system bus name :1.156 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freed 11月 17 16:05:40 server.mfserver.mydns.jp systemd[1]: Starting The Apache HTTP Server... -- Subject: Unit httpd.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit httpd.service has begun starting up. 11月 17 16:05:40 server.mfserver.mydns.jp httpd[4525]: AH00526: Syntax error on line 4 of /etc/httpd/conf.d/special.conf: 11月 17 16:05:40 server.mfserver.mydns.jp httpd[4525]: Invalid command 'optins', perhaps misspelled or defined by a module not included in the server configuration 11月 17 16:05:40 server.mfserver.mydns.jp systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE 11月 17 16:05:40 server.mfserver.mydns.jp kill[4530]: kill: cannot find process "" 11月 17 16:05:40 server.mfserver.mydns.jp systemd[1]: httpd.service: control process exited, code=exited status=1 11月 17 16:05:40 server.mfserver.mydns.jp systemd[1]: Failed to start The Apache HTTP Server. -- Subject: Unit httpd.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit httpd.service has failed. ### 該当のソースコード

<Directory "/var/www">
AllowOverride None
# Allow open access:
Require all granted
</Directory>

Further relax access to the default document root:
<Directory "/var/www/html">

Pssible values for the Options directive are "None", "All", or any combination of: Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews Note that "MultiViews" must be named *explicitly* --- "Options All" doesn't give it to you. The Options directive is both complicated and important. Please see http://httpd.apache.org/docs/2.4/mod/core.html#options for more information. Options FollowSymLinks AllowOverride controls what directives may be placed in .htaccess files. It can be "All", "None", or any combination of the keywords: Options FileInfo AuthConfig Limit AllowOverride None Controls who can get stuff from this server. Require all granted
### 試したこと 1回入れ直して何も弄らない状態だと動きました ### 補足情報(FW/ツールのバージョンなど) apache CentOS7

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

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

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

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

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

guest

回答1

0

ベストアンサー

Invalid command 'optins',

タイプミスですね。

投稿2018/11/17 13:39

otn

総合スコア84423

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

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

momoki

2018/11/17 13:48

httpd.confの中を検索かけてみたのですが見当たらないのですがもしかして違うファイルなのでしょうか?
退会済みユーザー

退会済みユーザー

2018/11/17 14:57

`/etc/httpd/conf.d/special.conf:` の4行目を見てみてください。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問