
| ・ |
ドキュメントセンターを初めてご利用する方や運営方針についての基本的な姿勢をご覧になりたい方へ。
|
| ご利用の皆様から多く寄せられる質問にお答えしています。 |
|
| ・ |
ディーエーオフィスなどが利用する用語に関する解説を行います。
|
|
|
 |
 |  |
mod_layout インストール |
http://tangent.org/
上述のページでtar.gzファイルを探す。mod_layoutを検索すると見つかる。Apache2とApache1で分かれていて、Apache1系にはrpmも見当たった。ダウンロードできたら、解凍後、make、make installで作業は終わる。
http://tangent.org/index.pl?lastnode_id=478&node_id=362
http://tangent.org/index.pl?lastnode_id=362&node_id=374
http://tangent.org/index.pl?lastnode_id=374&node_id=375
http://software.tangent.org/download/mod_layout-4.0.1a.tar.gz
tar xvzf mod_layout-4.0.1a.tar.gz
cd mod_layout-4.0.1a
make
make install
※rpm環境へのインストールは以下に留意する。
httpdのインストール位置などを調整する。redhatへのインストールでは、Makefileを以下のように修正した。special.mkなどのファイルが見つからないときは、httpd-develというrpmパッケージを追加インストールする必要もある。
top_srcdir=/usr/lib/httpd
top_builddir=/usr/lib/httpd/
include /usr/lib/httpd/build/special.mk
APXS=/usr/sbin/apxs
APACHECTL=/usr/sbin/apachectl
up2date -u httpd-devel
以上のインストールが終わったら、httpd.confへ追記した後、httpdを再起動する。
vi httpd.conf
LoadModule layout_module modules/liblayout.so
apachectl resatrt
service httpd restart
---
実際に挿入する例
.htaccessを生成し、以下のような記述を追記する。
AddOutputFilter LAYOUT html
LayoutFooter /home/username/htdocs/footer.html
LayoutHeader /home/username/htdocs/header.html
---
Libraries have been installed in:
/usr/lib/httpd/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Leaving directory `/root/mod_layout-4.0.1a'
/usr/sbin/apxs -i -n liblayout.so -e liblayout.la
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/bin/libtool' liblayout.la /usr/
lib/httpd/modules
/usr/bin/libtool --mode=install cp liblayout.la /usr/lib/httpd/modules/
cp .libs/liblayout.so /usr/lib/httpd/modules/liblayout.so
cp .libs/liblayout.lai /usr/lib/httpd/modules/liblayout.la
cp .libs/liblayout.a /usr/lib/httpd/modules/liblayout.a
ranlib /usr/lib/httpd/modules/liblayout.a
chmod 644 /usr/lib/httpd/modules/liblayout.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib/httpd/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/httpd/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib/httpd/modules/liblayout.so
+--------------------------------------------------------+
| All done. |
| |
| You will need to add the directive: |
| LoadModule layout_module modules/liblayout.so |
| |
| So that you can begin to use mod_layout. |
| |
| Thanks for installing mod_layout. |
+--------------------------------------------------------+
|
| 文書番号 |
05243 |
| 日付 |
2005.12.27 |
| 参照数 |
694 |
|