質問

Apacheサーバーを再構築する必要がありますが、元のソースは使用できなくなりました。もともと使用されていたビルドオプションを取得する方法はありますか(コマンドラインはhttpdに切り替えますか?)

役に立ちましたか?

解決

httpdのバージョンとビルドパラメータを印刷してから終了する-Vを試してください。

httpd -V

また、httpdのオプションは次の方法で表示できます:

httpd -h

他のヒント

apacheルートのビルドディレクトリに以前の設定オプションが見つかりました。

私はCentos 5/6ユーザーです。

Apache ver。 2.2.27です。

apachedir / build / config.nice

#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/usr/local/apache2" \
"--enable-so" \
"--enable-mods-shared=most" \
"--enable-ssl" \
"--with-mpm=worker" \
"--enable-cgi" \
"$@"

apache 2.4.3を最近再コンパイルし、MPMをworkerからpreforkに変更しました。実行" make distclean"せずに元のコンパイル済みディレクトリを保持する場合の対処方法(「make clean」を実行した場合でも問題ありません)。 SAME構成オプションを使用して、exec ./config.statusで再構成するか、。/ config.statusから「./configure」を見つけてコピーすることができます(はい、構成を実行するために使用したすべての元のオプションがまだあります) )。

これは私のconfig.statusの一部です...

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

if $ac_cs_recheck; then
  set X /bin/sh **'./configure'  '--enable-file-cache' '--enable-cache' '--enable-disk-cache' '--enable-mem-cache' '--enable-deflate' '--enable-expires' '--enable-headers' '--enable-usertrack' '--enable-cgi' '--enable-vhost-alias' '--enable-rewrite' '--enable-so' '--with-apr=/usr/local/apache/' '--with-apr-util=/usr/local/apache/' '--prefix=/usr/local/apache' '--with-mpm=worker' '--with-mysql=/var/lib/mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--enable-mods-shared=most' '--enable-ssl' 'CFLAGS=-Wall -O3 -ffast-math -frename-registers -mtune=corei7-avx' '--enable-modules=all' '--enable-proxy' '--enable-proxy-fcgi'** $ac_configure_extra_args --no-create --no-recursion
  shift
  $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
  CONFIG_SHELL='/bin/sh'
  export CONFIG_SHELL
  exec "$@"
fi
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top