1
<?xml version="1.0" encoding="EUC-KR"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5
This file is generated from xml source: DO NOT EDIT
6
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8
<title>apxs - APache eXtenSion ���� - Apache HTTP Server</title>
9
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
13
<body id="manual-page"><div id="page-header">
14
<p class="menu"><a href="../mod/">���</a> | <a href="../mod/directives.html">���þ��</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p>
15
<p class="apache">Apache HTTP Server Version 2.2</p>
16
<img alt="" src="../images/feather.gif" /></div>
17
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
19
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>apxs - APache eXtenSion ����</h1>
21
<p><span>������ ���: </span><a href="../en/programs/apxs.html" hreflang="en" rel="alternate" title="English"> en </a> |
22
<a href="../ko/programs/apxs.html" title="Korean"> ko </a></p>
24
<div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�.
25
�ֱٿ� ����� ������ ���� ������ �����ϼ���.</div>
27
<p><code>apxs</code>�� ����ġ �������ؽ�Ʈ ���� ��������
28
(HTTP) ������ Ȯ������ �������ϰ� ��ġ�ϴ� �����̴�. ��
29
������ ���� �ҽ��� ������Ʈ<var>����</var>�� ������,
30
<code class="module"><a href="../mod/mod_so.html">mod_so</a></code>�� <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ���þ�� �����߿�
31
����ġ ������ �о���� �� �ִ� ����������ü(DSO)�� �����.</p>
33
<p>���� �̷� Ȯ������ ����Ϸ��� �÷����� DSO �����
34
�����ϰ� ����ġ <code>httpd</code> ����������
35
<code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ���� ���� �������ؾ� �Ѵ�.
36
<code>apxs</code> ������ �� ������ �������������� ��������
37
�ʴ´�. ���� ���ɾ �����Ͽ� ������ �����ϴ��� �˾ƺ�
40
<div class="example"><p><code>
44
<p>��Ͽ� <code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ����� ���;� �Ѵ�. ������
45
�����ϸ� <code>apxs</code> ������ DSO ����� ��ġ�Ͽ�
46
����ġ������ ����� ���� Ȯ���� �� �ִ�:</p>
48
<div class="example"><p><code>
49
$ apxs -i -a -c mod_foo.c<br />
50
gcc -fpic -DSHARED_MODULE -I/path/to/apache/include -c mod_foo.c<br />
51
ld -Bshareable -o mod_foo.so mod_foo.o<br />
52
cp mod_foo.so /path/to/apache/modules/mod_foo.so<br />
53
chmod 755 /path/to/apache/modules/mod_foo.so<br />
54
[activating module `foo' in /path/to/apache/etc/httpd.conf]<br />
55
$ apachectl restart<br />
56
/path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br />
57
[Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br />
58
/path/to/apache/sbin/apachectl restart: httpd started<br />
62
<p>�ƱԸ�Ʈ <var>files</var>���� C �ҽ����� (.c) �̳�
63
������Ʈ���� (.o), ���̺귯������ (.a)�� ����� �� �ִ�.
64
<code>apxs</code> ������ Ȯ���ڸ� ���� �ڵ����� C �ҽ�������
65
�������ϰ�, ������Ʈ�� ���������� ��ũ���� ����Ѵ�. ����
66
�������� ������Ʈ�� ����Ϸ��� �������� �о���� �� �ִ�
67
������ü�� ����ϱ����� �ݵ�� ������Ʈ�� ��ġ�����ڵ�(PIC,
68
position independent code)�� �������ؾ� �Ѵ�. GCC�� ���
69
<code>-fpic</code>�� ����ϸ� �ȴ�. �ٸ� C �����Ϸ��� ��������
70
�����ϰų� <code>apxs</code>�� ������Ʈ������ �������Ҷ�
71
����ϴ� �ɼ��� �����϶�.</p>
73
<p>����ġ�� DSO ������ ���� �� �ڼ��� ������
74
<code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ������ �����ϰų�
75
<code>src/modules/standard/mod_so.c</code> �ҽ������� �о����.</p>
77
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">����</a></li>
78
<li><img alt="" src="../images/down.gif" /> <a href="#options">�ɼ�</a></li>
79
<li><img alt="" src="../images/down.gif" /> <a href="#examples">����</a></li>
80
</ul><h3>����</h3><ul class="seealso"><li><a href="apachectl.html">apachectl</a></li><li><a href="httpd.html">httpd</a></li></ul></div>
81
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
83
<h2><a name="synopsis" id="synopsis">����</a></h2>
84
<p><code><strong>apxs</strong> -<strong>g</strong>
85
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
86
-<strong>n</strong> <var>modname</var></code></p>
88
<p><code><strong>apxs</strong> -<strong>q</strong>
89
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
90
<var>query</var> ...</code></p>
92
<p><code><strong>apxs</strong> -<strong>c</strong>
93
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
94
[ -<strong>o</strong> <var>dsofile</var> ]
95
[ -<strong>I</strong> <var>incdir</var> ]
96
[ -<strong>D</strong> <var>name</var>=<var>value</var> ]
97
[ -<strong>L</strong> <var>libdir</var> ]
98
[ -<strong>l</strong> <var>libname</var> ]
99
[ -<strong>Wc,</strong><var>compiler-flags</var> ]
100
[ -<strong>Wl,</strong><var>linker-flags</var> ]
101
<var>files</var> ...</code></p>
103
<p><code><strong>apxs</strong> -<strong>i</strong>
104
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
105
[ -<strong>n</strong> <var>modname</var> ]
106
[ -<strong>a</strong> ]
107
[ -<strong>A</strong> ]
108
<var>dso-file</var> ...</code></p>
110
<p><code><strong>apxs</strong> -<strong>e</strong>
111
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
112
[ -<strong>n</strong> <var>modname</var> ]
113
[ -<strong>a</strong> ]
114
[ -<strong>A</strong> ]
115
<var>dso-file</var> ...</code></p>
116
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
117
<div class="section">
118
<h2><a name="options" id="options">�ɼ�</a></h2>
119
<h3><a name="options.common" id="options.common">���� �ɼ�</a></h3>
121
<dt><code>-n <var>modname</var></code></dt>
122
<dd><code>-i</code> (install)�� <code>-g</code> (template
123
generation) �ɼ��� ����Ҷ� ���� ������ �����Ѵ�. ��
124
�ɼ��� ����Ͽ� ������ ���� �����Ѵ�. <code>-g</code>
125
�ɼ��� ����Ѵٸ� �� �ɼ��� �ݵ�� ����ؾ��ϰ�,
126
<code>-i</code> �ɼ��� ����Ѵٸ� <code>apxs</code> ������
127
�ҽ��� (������ �õ���) ���ϸ��� ������ �̸��� �����Ѵ�.</dd>
131
<h3><a name="options.query" id="options.query">���� �ɼ�</a></h3>
133
<dt><code>-q</code></dt>
134
<dd><code>apxs</code>�� �������� �˾Ƴ���. <var>query</var>����
135
������ ����� �� �ִ�: <code>CC</code>, <code>CFLAGS</code>,
136
<code>CFLAGS_SHLIB</code>, <code>INCLUDEDIR</code>,
137
<code>LD_SHLIB</code>, <code>LDFLAGS_SHLIB</code>,
138
<code>LIBEXECDIR</code>, <code>LIBS_SHLIB</code>,
139
<code>SBINDIR</code>, <code>SYSCONFDIR</code>, <code>TARGET</code>.
141
<p>������ ���� �˾Ƴ��� ����Ѵ�.</p>
142
<div class="example"><p><code>
143
INC=-I`apxs -q INCLUDEDIR`
146
<p>���� ���, ����ġ C ��������� ���� �����Ѵٸ�
147
Makefile���� ���� ���� ����Ѵ�.</p></dd>
151
<h3><a name="options.conf" id="options.conf">���� �ɼ�</a></h3>
153
<dt><code>-S <var>name</var>=<var>value</var></code></dt>
154
<dd>�� �ɼ��� ������ ������ apxs ������ �����Ѵ�.</dd>
158
<h3><a name="options.template" id="options.template">�ߺ�(template) ���� �ɼ�</a></h3>
160
<dt><code>-g</code></dt>
161
<dd>�������丮 <var>name</var>�� ����� (<code>-n</code>
162
�ɼ� ����) �װ��� ���� �ΰ��� �����: �� ������
163
<code>mod_<var>name</var>.c</code>��� �ߺ� ���ҽ����Ϸ�,
164
�ڽ��� ����� ���鶧 �ߺ����� ����ϰų� apxs �����
165
�����غ��� ����Ѵ�. �ٸ� ������ �� ����� ���� �������ϰ�
166
��ġ�ϱ����� <code>Makefile</code>�̴�.</dd>
170
<h3><a name="options.dso" id="options.dso">DSO ������ �ɼ�</a></h3>
172
<dt><code>-c</code></dt>
173
<dd>�������� �����Ѵ�. ���� <var>files</var>���� C
174
�ҽ����ϵ�(.c)�� ������Ʈ����(.o)�� �������ϰ�,
175
<var>files</var>�� ������ ������Ʈ���ϵ�(.o�� .a)��
176
��ũ�Ͽ� ����������ü <var>dsofile</var>�� �����.
177
<code>-o</code> �ɼ��� ������������� <var>files</var>��
178
ù��° ���ϸ����� �̸��� �����Ͽ� ����
179
<code>mod_<var>name</var>.so</code>�� ����Ѵ�.</dd>
181
<dt><code>-o <var>dsofile</var></code></dt>
182
<dd>������ ����������ü ���ϸ��� ���� �����Ѵ�. �̸���
183
���������ʰ� <var>files</var> ��Ͽ��� �̸��� ��������
184
���ϸ� ���������� <code>mod_unknown.so</code>�� �̸�����
187
<dt><code>-D <var>name</var>=<var>value</var></code></dt>
188
<dd>�� �ɼ��� ������ ���ɾ�� ���� �����Ѵ�.
189
�����϶� �ڽ��� define�� �߰��Ѵ�.</dd>
191
<dt><code>-I <var>incdir</var></code></dt>
192
<dd>�� �ɼ��� ������ ���ɾ�� ���� �����Ѵ�.
193
�����϶� include�� ã�� ���丮�� �߰��Ѵ�.</dd>
195
<dt><code>-L <var>libdir</var></code></dt>
196
<dd>�� �ɼ��� ��Ŀ ���ɾ�� ���� �����Ѵ�.
197
�����϶� ���̺귯���� ã�� ���丮�� �߰��Ѵ�.</dd>
199
<dt><code>-l <var>libname</var></code></dt>
200
<dd>�� �ɼ��� ��Ŀ ���ɾ�� ���� �����Ѵ�.
201
�����϶� ����� ���̺귯���� �߰��Ѵ�.</dd>
203
<dt><code>-Wc,<var>compiler-flags</var></code></dt>
204
<dd>�� �ɼ��� �߰� �ɼ� <var>compiler-flags</var>��
205
<code>libtool --mode=compile</code> ���ɾ�� �����Ѵ�.
206
�����Ϸ� Ư���� �ɼ��� �߰��Ҷ� ����Ѵ�.</dd>
208
<dt><code>-Wl,<var>linker-flags</var></code></dt>
209
<dd>�� �ɼ��� �߰� �ɼ� <var>linker-flags</var>��
210
<code>libtool --mode=link</code> ���ɾ�� �����Ѵ�. ��Ŀ
211
Ư���� �ɼ��� �߰��Ҷ� ����Ѵ�.</dd>
215
<h3><a name="options.dsoinstall" id="options.dsoinstall">DSO ��ġ�� ���� �ɼ�</a></h3>
218
<dt><code>-i</code></dt>
219
<dd>��ġ�� �����Ѵ�. ���� ����������ü�� ������
220
<var>modules</var> ���丮�� ��ġ�Ѵ�.</dd>
222
<dt><code>-a</code></dt>
223
<dd>����ġ <code>httpd.conf</code> �������Ͽ� ������
224
<code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ����
225
�߰��ϰų� �̹� �ִٸ� Ȱ��ȭ�Ͽ� ����� ����ϵ���
228
<dt><code>-A</code></dt>
229
<dd><code>-a</code>�� ���������, <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ���þ� �տ�
230
�칰����(<code>#</code>)�� ���δ�. <em>��</em>, �����
231
������������� ���߿� ����� �� �ֵ��� ����� �غ��Ѵ�.</dd>
233
<dt><code>-e</code></dt>
234
<dd>������ �����Ѵ�. <code>-a</code> Ȥ�� <code>-A</code>
235
�ɼǰ� ���� ����� �� ������, <code>-i</code> ���ɰ�
236
��������� ����� ��ġ�����ʰ� ����ġ
237
<code>httpd.conf</code> �������ϸ� �����Ѵ�.</dd>
240
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
241
<div class="section">
242
<h2><a name="examples" id="examples">����</a></h2>
243
<p>����ġ������ ����� Ȯ���ϴ� <code>mod_foo.c</code>���
244
����ġ ����� �ִٰ� ��������. ���� ���� ���ɾ ����Ͽ�
245
C �ҽ��� ����ġ ������ �о���� ������ü�� �������Ѵ�:</p>
247
<div class="example"><p><code>
248
$ apxs -c mod_foo.c<br />
249
/path/to/libtool --mode=compile gcc ... -c mod_foo.c<br />
250
/path/to/libtool --mode=link gcc ... -o mod_foo.la mod_foo.slo<br />
254
<p>���� �� ������ü�� �о���̴� <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ���þ ����ġ
255
������ �߰��Ѵ�. <code>apxs</code>�� �ڵ����� ������ü��
256
"modules" ���丮�� ��ġ�ϰ� <code>httpd.conf</code> ������
257
�˸°� �����Ͽ� ������ �۾��� ��ģ��. ���� ���� �����Ѵ�:</p>
259
<div class="example"><p><code>
260
$ apxs -i -a mod_foo.la<br />
261
/path/to/instdso.sh mod_foo.la /path/to/apache/modules<br />
262
/path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules
264
chmod 755 /path/to/apache/modules/mod_foo.so<br />
265
[/path/to/apache/conf/httpd.conf���� `foo' ����� Ȱ��ȭ�Ѵ�]<br />
269
<p>���� ������ ���� ����</p>
271
<div class="example"><p><code>
272
LoadModule foo_module modules/mod_foo.so
275
<p>�������Ͽ� ���ٸ� �߰��Ѵ�. �� ������ �⺻������ �������
276
�ʴ´ٸ� <code>-A</code> �ɼ��� ����Ѵ�. <em>��</em></p>
278
<div class="example"><p><code>
279
$ apxs -i -A mod_foo.c
282
<p>apxs�� ���� ����Ϸ��� ������ ���� ����ġ ��� �ߺ���
283
Makefile�� ���� �� �ִ�:</p>
285
<div class="example"><p><code>
286
$ apxs -g -n foo<br />
287
Creating [DIR] foo<br />
288
Creating [FILE] foo/Makefile<br />
289
Creating [FILE] foo/modules.mk<br />
290
Creating [FILE] foo/mod_foo.c<br />
291
Creating [FILE] foo/.deps<br />
295
<p>���� �ٷ� �ߺ� ����� ������ü�� �������Ͽ� ����ġ
298
<div class="example"><p><code>
300
$ make all reload<br />
301
apxs -c mod_foo.c<br />
302
/path/to/libtool --mode=compile gcc ... -c mod_foo.c<br />
303
/path/to/libtool --mode=link gcc ... -o mod_foo.la mod_foo.slo<br />
304
apxs -i -a -n "foo" mod_foo.la<br />
305
/path/to/instdso.sh mod_foo.la /path/to/apache/modules<br />
306
/path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules
308
chmod 755 /path/to/apache/modules/mod_foo.so<br />
309
[/path/to/apache/conf/httpd.conf���� `foo' ����� Ȱ��ȭ�Ѵ�]<br />
310
apachectl restart<br />
311
/path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br />
312
[Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br />
313
/path/to/apache/sbin/apachectl restart: httpd started<br />
318
<div class="bottomlang">
319
<p><span>������ ���: </span><a href="../en/programs/apxs.html" hreflang="en" rel="alternate" title="English"> en </a> |
320
<a href="../ko/programs/apxs.html" title="Korean"> ko </a></p>
321
</div><div id="footer">
322
<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
323
<p class="menu"><a href="../mod/">���</a> | <a href="../mod/directives.html">���þ��</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p></div>
b'\\ No newline at end of file'