Snow Leopard環境で、ApacheとTomcat連携メモ


1. Apache 確認

$ httpd -v
Server version: Apache/2.2.13 (Unix)
Server built:   Oct  4 2009 22:18:19
$ httpd -vServer version: Apache/2.2.13 (Unix)Server built:   Oct  4 2009 22:18:19

2. Tomcat インストールに-tomcat6-をインストール/

3. mod_jk から tomcat-connectors-1.2.30-src.tar.gz ダウンロードして解凍

$ cd tomcat-connectors-1.2.30-src/native
$ ./configure –with-apxs=/usr/sbin/apxs
$ vi apache-2.0/Makefile.apxs
$(APXS)  -c -o $@ -Wc,”${APXSCFLAGS} -arch x86_64 ${JK_INCL}” “${JAVA_INCL}” “${APXSLDFLAGS} -arch x86_64” mod_jk.c ${APACHE_OBJECTS}
$ make
$ sudo cp apache-2.0/ /usr/libexec/apache2/

4. httpd.conf

LoadModule jk_module     libexec/apache2/

keywordsuitable image found.  Did find:\n\t/usr/libexec/apache2/ mach-o, but wrong architecture


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s