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

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

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

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

Q&A

解決済

1回答

3767閲覧

Nginx モジュールを有効にする方法についての質問です。

marshmallowy

総合スコア204

nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

0グッド

0クリップ

投稿2016/08/12 08:20

###前提・実現したいこと
Nginx で "http_fastcgi_module" を有効にした際にエラーが出力されます。
ご教授のほど、よろしくお願い申し上げます。

また、こちらのサイトの回答者様から "./configure --help" で一覧を見ることができることを教えていただきました。

確認すると、下記のように"disable ngx_http_fastcgi_module" になっていました。

... --without-http_fastcgi_module disable ngx_http_fastcgi_module ...

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

./configure: error: invalid option "--with-http_fastcgi_module"

###該当のソースコード

./configure --user=www-data --group=www-data --with-debug --with-pcre --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_v2_module --with-http_geoip_module --with-http_geo_module --with-http_map_module --with-http_fastcgi_module --add-module=/usr/build/3party_module/nginx_accept_language_module --add-module=/usr/build/3party_module/ngx_cache_purge

###補足情報(言語/FW/ツール等のバージョンなど)
CentOS release 6.8 (Final)
PHP 5.5.38 (cli)
PHP 5.5.38 (fpm-fcgi)

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

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

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

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

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

TaichiYanagiya

2016/08/12 09:30

デフォルトで有効なのではないの?
guest

回答1

0

ベストアンサー

helpを見てみると--with-http_fastcgi_moduleというオプションは確かにありません。
特にオプションを指定しなければfastcgiモジュールは有効で、使わないときだけ--without-http_fastcgi_moduleを指定します。

実際にnginx 1.11.3で --without-http_gzip_moduleのみ指定して configureしてみたところ、

Configuration summary + using system PCRE library + OpenSSL library is not used + zlib library is not used nginx path prefix: "/usr/local/nginx" nginx binary file: "/usr/local/nginx/sbin/nginx" nginx modules path: "/usr/local/nginx/modules" nginx configuration prefix: "/usr/local/nginx/conf" nginx configuration file: "/usr/local/nginx/conf/nginx.conf" nginx pid file: "/usr/local/nginx/logs/nginx.pid" nginx error log file: "/usr/local/nginx/logs/error.log" nginx http access log file: "/usr/local/nginx/logs/access.log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp"

な感じで含まれているようでした。

投稿2016/08/16 07:15

nullbot

総合スコア910

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

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

marshmallowy

2016/08/16 07:51

本当ですね 'nginx http fastcgi temporary files: "fastcgi_temp"'が生成されてますね。 わざわざ、手を動かしてくださってありがとうございます。 非常に参考になりました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問