バックグラウンド:
最近MAMPをインストールし、本番サーバーとして使用しています。サーバーのセットアップにはFTPサーバーが付属していませんでした。私が読んだところによると、Apacheモジュールであるmod_ftpを介してFTPサーバーをセットアップできます。私はApacheソフトウェアやサーバー管理の専門家ではありませんが、すぐに学ぶことができます。次の点にたどり着くと行き詰まります。誰かが私を助けてくれますか?
http://svn.apache.org/repos/asf/httpd/mod_ftp/trunk/のリポジトリからmod_ftpモジュールファイルをチェックアウトし 、内容を次の場所に解凍しました。
/Applications/MAMP/mod_ftp
README-FTPファイル(ここ)を開きました:
http ://svn.apache.org/repos/asf/httpd/mod_ftp/trunk/README-FTP
README-FTP:
To build and install as a DSO outside of the httpd source
build, from the ftp source root directory, simply;
./configure.apxs
make
make install
...
To build static, or as a DSO but within the same build as httpd,
copy the entire ftp source directory tree on top of your existing
httpd source tree, and from the httpd source root directory
./buildconf (to pick up ftp)
./configure --enable-ftp {your usual options}
and proceed as usual.
いくつかの質問:
「httpdソースビルドの外部、ftpソースルートディレクトリからDSOをビルドしてインストールする」 -ftpソースルートディレクトリは、リポジトリからチェックアウトしたzipファイルから作成したmod_ftpフォルダですか?
「httpdソースビルドの外」とはどういう意味ですか?--これは、httpd.confで「/ Applications / MAMP / Library」として設定したServerRoot値ですか?
同様に、「同じhttpdビルド内」とはどういう意味ですか?これはどの場所を指しているのですか?
静的ビルドとDSOビルドのどちらが必要かを知るにはどうすればよいですか?
「既存のhttpdソースツリーの上にftpソースディレクトリツリー全体をコピーする」というステートメントは、実際に私に求めていますか?(??のように、httpdソースツリーの親ディレクトリにあるのか、それとも同じディレクトリにあるのか?)
これまでに成功したなら、私はあなたを称賛したいと思います!
この時点から、最初のオプションを選択し、README-FTPに表示されるコマンドをターミナルに入力しました。
私の端末は次のようになります。
$ ./configure.apxs
Configuring mod_ftp for APXS in /usr/sbin/apxs
Detecting features
Finished, run 'make' to compile mod_ftp
Run 'make FTPPORT=8021 install' to install mod_ftp
(The default FTPPORT is 21 if not specified)
The manual pages ftp/index.html and mod/mod_ftp.html
will be installed to help get you started.
The conf/extra/ftpd.conf will be installed as an example
for you to work from. In your configuration file,
/private/etc/apache2/httpd.conf
uncomment the line '#Include conf/extra/ftpd.conf'
to activate this example mod_ftp configuration.
$ make
Making all in modules/ftp
$ sudo make install
Password:
Making install in modules/ftp
/usr/share/apr-1/build-1/libtool --silent --mode=install cp mod_ftp.la /usr/libexec/apache2/
Installing configuration files
for i in /private/etc/apache2/httpd.conf /private/etc/apache2/original/httpd.conf; do \
if test -f $i; then \
(awk -f /applications/mamp/library/mod_ftp/build/addloadexample.awk \
-v MODULE=ftp -v DSO=.so -v LIBPATH=libexec/apache2 \
-v EXAMPLECONF=/private/etc/apache2/extra/ftpd.conf \
< $i > $i.new && \
mv $i $i.bak && mv $i.new $i \
) || true; \
fi; \
done
Preserving existing FTP documents
Installing header files
Installing online manual
$
それで、私はここから何をしますか?mod_ftp.soはどこにも表示されません。特に、このディレクトリを探しています。
/Applications/MAMP/Library/modules (where all of Apache's other mod_*.so files are...)
およびこのディレクトリ:
/Applications/MAMP/mod_ftp/modules/ftp (where all of mod_ftp's various .c, .h and other files are)
最終的に、私が直面している問題は、モジュールを正しく実行するために、mod_ftpソースフォルダーとhttpdソースフォルダーの間のファイル構造を統合する必要がある方法がわからないことだと思います。また、何がわからないのかわからないので、簡単な質問が1つあると思いますが、残念ながら質問の仕方がわかりません。あなたの助けと忍耐に感謝します!
乾杯!
PS、はい、私は何時間もインターネットを調べてきました。