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
7      -->
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" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
12<script src="/style/scripts/prettify.js" type="text/javascript">
13</script>
14
15<link href="/images/favicon.ico" rel="shortcut icon" /></head>
16<body id="manual-page"><div id="page-header">
17<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p>
18<p class="apache">Apache HTTP Server Version 2.2</p>
19<img alt="" src="/images/feather.gif" /></div>
20<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
21<div id="path">
22<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.2</a> &gt; <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>apxs - APache eXtenSion ����</h1>
23<div class="toplang">
24<p><span>������ ���: </span><a href="/en/programs/apxs.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
25<a href="/ko/programs/apxs.html" title="Korean">&nbsp;ko&nbsp;</a> |
26<a href="/tr/programs/apxs.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
27</div>
28<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�.
29            �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div>
30
31    <p><code>apxs</code>�� ����ġ �������ؽ�Ʈ ��� ��������
32    (HTTP) ������ Ȯ������ �������ϰ� ��ġ�ϴ� �����̴�. ��
33    ������ ���� �ҽ��� ������Ʈ<var>����</var>�� ������,
34    <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> ���þ�� �����߿�
35    ����ġ ������ �о���� �� �ִ� ���������ü(DSO)�� �����.</p>
36
37    <p>�׷��� �̷� Ȯ������ ����Ϸ��� �÷����� DSO �����
38    �����ϰ� ����ġ <code>httpd</code> ����������
39    <code class="module"><a href="/mod/mod_so.html">mod_so</a></code> ���� ���� �������ؾ� �Ѵ�.
40    <code>apxs</code> ������ �� ������ �������������� ��������
41    �ʴ´�. ���� ��ɾ �����Ͽ� ������ �����ϴ��� �˾ƺ�
42    �� �ִ�</p>
43
44    <div class="example"><p><code>
45      $ httpd -l
46    </code></p></div>
47
48    <p>��Ͽ� <code class="module"><a href="/mod/mod_so.html">mod_so</a></code> ����� ���;� �Ѵ�. ������
49    �����ϸ� <code>apxs</code> ������ DSO ����� ��ġ�Ͽ�
50    ����ġ������ ����� ���� Ȯ���� �� �ִ�:</p>
51
52    <div class="example"><p><code>
53      $ apxs -i -a -c mod_foo.c<br />
54      gcc -fpic -DSHARED_MODULE -I/path/to/apache/include -c mod_foo.c<br />
55      ld -Bshareable -o mod_foo.so mod_foo.o<br />
56      cp mod_foo.so /path/to/apache/modules/mod_foo.so<br />
57      chmod 755 /path/to/apache/modules/mod_foo.so<br />
58      [activating module `foo' in /path/to/apache/etc/httpd.conf]<br />
59      $ apachectl restart<br />
60      /path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br />
61      [Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br />
62      /path/to/apache/sbin/apachectl restart: httpd started<br />
63      $ _
64    </code></p></div>
65
66    <p>�ƱԸ�Ʈ <var>files</var>���� C �ҽ����� (.c) �̳�
67    ������Ʈ���� (.o), ���̺귯������ (.a)�� ����� �� �ִ�.
68    <code>apxs</code> ������ Ȯ���ڸ� ���� �ڵ����� C �ҽ�������
69    �������ϰ�, ������Ʈ�� ���������� ��ũ���� ����Ѵ�. �׷���
70    �������� ������Ʈ�� ����Ϸ��� �������� �о���� �� �ִ�
71    ������ü�� ����ϱ����� �ݵ�� ������Ʈ�� ��ġ�����ڵ�(PIC,
72    position independent code)�� �������ؾ� �Ѵ�. GCC�� ���
73    <code>-fpic</code>�� ����ϸ� �ȴ�. �ٸ� C �����Ϸ��� ������
74    ����ϰų� <code>apxs</code>�� ������Ʈ������ �������Ҷ�
75    ����ϴ� �ɼ��� ����϶�.</p>
76
77    <p>����ġ�� DSO ���� ���� �� �ڼ��� ������
78    <code class="module"><a href="/mod/mod_so.html">mod_so</a></code> ������ ����ϰų�
79    <code>src/modules/standard/mod_so.c</code> �ҽ������� �о����.</p>
80</div>
81<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#synopsis">����</a></li>
82<li><img alt="" src="/images/down.gif" /> <a href="#options">�ɼ�</a></li>
83<li><img alt="" src="/images/down.gif" /> <a href="#examples">����</a></li>
84</ul><h3>���</h3><ul class="seealso"><li><a href="apachectl.html">apachectl</a></li><li><a href="httpd.html">httpd</a></li></ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
85<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
86<div class="section">
87<h2><a name="synopsis" id="synopsis">����</a></h2>
88    <p><code><strong>apxs</strong> -<strong>g</strong>
89    [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
90    -<strong>n</strong> <var>modname</var></code></p>
91
92    <p><code><strong>apxs</strong> -<strong>q</strong>
93    [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
94    <var>query</var> ...</code></p>
95
96    <p><code><strong>apxs</strong> -<strong>c</strong>
97    [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
98    [ -<strong>o</strong> <var>dsofile</var> ]
99    [ -<strong>I</strong> <var>incdir</var> ]
100    [ -<strong>D</strong> <var>name</var>=<var>value</var> ]
101    [ -<strong>L</strong> <var>libdir</var> ]
102    [ -<strong>l</strong> <var>libname</var> ]
103    [ -<strong>Wc,</strong><var>compiler-flags</var> ]
104    [ -<strong>Wl,</strong><var>linker-flags</var> ]
105    <var>files</var> ...</code></p>
106
107    <p><code><strong>apxs</strong> -<strong>i</strong>
108    [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
109    [ -<strong>n</strong> <var>modname</var> ]
110    [ -<strong>a</strong> ]
111    [ -<strong>A</strong> ]
112    <var>dso-file</var> ...</code></p>
113
114    <p><code><strong>apxs</strong> -<strong>e</strong>
115    [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
116    [ -<strong>n</strong> <var>modname</var> ]
117    [ -<strong>a</strong> ]
118    [ -<strong>A</strong> ]
119    <var>dso-file</var> ...</code></p>
120</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
121<div class="section">
122<h2><a name="options" id="options">�ɼ�</a></h2>
123    <h3><a name="options.common" id="options.common">���� �ɼ�</a></h3>
124      <dl>
125      <dt><code>-n <var>modname</var></code></dt>
126      <dd><code>-i</code> (install)�� <code>-g</code> (template
127      generation) �ɼ��� ����Ҷ� ���� ������ �����Ѵ�. ��
128      �ɼ��� ����Ͽ� ������ ���� �����Ѵ�. <code>-g</code>
129      �ɼ��� ����Ѵٸ� �� �ɼ��� �ݵ�� ����ؾ��ϰ�,
130      <code>-i</code> �ɼ��� ����Ѵٸ� <code>apxs</code> ������
131      �ҽ��� (������ �õ���) ���ϸ��� ������ �̸��� �����Ѵ�.</dd>
132      </dl>
133    
134
135    <h3><a name="options.query" id="options.query">���� �ɼ�</a></h3>
136      <dl>
137      <dt><code>-q</code></dt>
138      <dd><code>apxs</code>�� �������� �˾Ƴ���. <var>query</var>����
139      ������ ����� �� �ִ�: <code>CC</code>, <code>CFLAGS</code>,
140      <code>CFLAGS_SHLIB</code>, <code>INCLUDEDIR</code>,
141      <code>LD_SHLIB</code>, <code>LDFLAGS_SHLIB</code>,
142      <code>LIBEXECDIR</code>, <code>LIBS_SHLIB</code>,
143      <code>SBINDIR</code>, <code>SYSCONFDIR</code>, <code>TARGET</code>.
144
145      <p>������ ���� �˾Ƴ��� ����Ѵ�.</p>
146      <div class="example"><p><code>
147        INC=-I`apxs -q INCLUDEDIR`
148      </code></p></div>
149
150      <p>���� ���, ����ġ C ��������� ���� �����Ѵٸ�
151      Makefile���� ���� ���� ����Ѵ�.</p></dd>
152      </dl>
153    
154
155    <h3><a name="options.conf" id="options.conf">���� �ɼ�</a></h3>
156      <dl>
157      <dt><code>-S <var>name</var>=<var>value</var></code></dt>
158      <dd>�� �ɼ��� ������ ������ apxs ������ �����Ѵ�.</dd>
159      </dl>
160    
161
162    <h3><a name="options.template" id="options.template">�ߺ�(template) �� �ɼ�</a></h3>
163      <dl>
164      <dt><code>-g</code></dt>
165      <dd>�������丮 <var>name</var>�� ����� (<code>-n</code>
166      �ɼ� ���) �װ��� ���� �ΰ��� �����: �� ������
167      <code>mod_<var>name</var>.c</code>��� �ߺ� ���ҽ����Ϸ�,
168      �ڽ��� ����� ���鶧 �ߺ����� ����ϰų� apxs �����
169      �����غ��� ����Ѵ�. �ٸ� ������ �� ����� ���� �������ϰ�
170      ��ġ�ϱ����� <code>Makefile</code>�̴�.</dd>
171      </dl>
172    
173
174    <h3><a name="options.dso" id="options.dso">DSO ������ �ɼ�</a></h3>
175      <dl>
176      <dt><code>-c</code></dt>
177      <dd>�������� �����Ѵ�. ���� <var>files</var>���� C
178      �ҽ����ϵ�(.c)�� ������Ʈ����(.o)�� �������ϰ�,
179      <var>files</var>�� ������ ������Ʈ���ϵ�(.o�� .a)��
180      ��ũ�Ͽ� ���������ü <var>dsofile</var>�� �����.
181      <code>-o</code> �ɼ��� ������������� <var>files</var>��
182      ù��° ���ϸ��� �̸��� �����Ͽ� ����
183      <code>mod_<var>name</var>.so</code>�� ����Ѵ�.</dd>
184
185      <dt><code>-o <var>dsofile</var></code></dt>
186      <dd>���� ���������ü ���ϸ��� ���� �����Ѵ�. �̸���
187      ���������ʰ� <var>files</var> ��Ͽ��� �̸��� ��������
188      ���ϸ� ���������� <code>mod_unknown.so</code>�� �̸�����
189      ����Ѵ�.</dd>
190
191      <dt><code>-D <var>name</var>=<var>value</var></code></dt>
192      <dd>�� �ɼ��� ������ ��ɾ�� ���� ����Ѵ�.
193      �����϶� �ڽ��� define�� �߰��Ѵ�.</dd>
194
195      <dt><code>-I <var>incdir</var></code></dt>
196      <dd>�� �ɼ��� ������ ��ɾ�� ���� ����Ѵ�.
197      �����϶� include�� ã�� ���丮�� �߰��Ѵ�.</dd>
198
199      <dt><code>-L <var>libdir</var></code></dt>
200      <dd>�� �ɼ��� ��Ŀ ��ɾ�� ���� ����Ѵ�.
201      �����϶� ���̺귯���� ã�� ���丮�� �߰��Ѵ�.</dd>
202
203      <dt><code>-l <var>libname</var></code></dt>
204      <dd>�� �ɼ��� ��Ŀ ��ɾ�� ���� ����Ѵ�.
205      �����϶� ����� ���̺귯���� �߰��Ѵ�.</dd>
206
207      <dt><code>-Wc,<var>compiler-flags</var></code></dt>
208      <dd>�� �ɼ��� �߰� �ɼ� <var>compiler-flags</var>��
209      <code>libtool --mode=compile</code> ��ɾ�� ����Ѵ�.
210      �����Ϸ� Ư���� �ɼ��� �߰��Ҷ� ����Ѵ�.</dd>
211
212      <dt><code>-Wl,<var>linker-flags</var></code></dt>
213      <dd>�� �ɼ��� �߰� �ɼ� <var>linker-flags</var>��
214      <code>libtool --mode=link</code> ��ɾ�� ����Ѵ�. ��Ŀ
215      Ư���� �ɼ��� �߰��Ҷ� ����Ѵ�.</dd>
216      </dl>
217    
218
219    <h3><a name="options.dsoinstall" id="options.dsoinstall">DSO ��ġ�� ���� �ɼ�</a></h3>
220    
221      <dl>
222      <dt><code>-i</code></dt>
223      <dd>��ġ�� �����Ѵ�. ���� ���������ü�� ������
224      <var>modules</var> ���丮�� ��ġ�Ѵ�.</dd>
225
226      <dt><code>-a</code></dt>
227      <dd>����ġ <code>httpd.conf</code> �������Ͽ� ������
228      <code class="directive"><a href="/mod/mod_so.html#loadmodule">LoadModule</a></code> ����
229      �߰��ϰų� �̹� �ִٸ� Ȱ��ȭ�Ͽ� ����� ����ϵ���
230      �����.</dd>
231
232      <dt><code>-A</code></dt>
233      <dd><code>-a</code>�� ���������, <code class="directive"><a href="/mod/mod_so.html#loadmodule">LoadModule</a></code> ���þ� �տ�
234      �칰����(<code>#</code>)�� ���δ�. <em>��</em>, �����
235      ������������� ���߿� ����� �� �ֵ��� ����� �غ��Ѵ�.</dd>
236
237      <dt><code>-e</code></dt>
238      <dd>������ �����Ѵ�. <code>-a</code> Ȥ�� <code>-A</code>
239      �ɼǰ� ���� ����� �� ������, <code>-i</code> ��ɰ�
240      ��������� ����� ��ġ�����ʰ� ����ġ
241      <code>httpd.conf</code> �������ϸ� �����Ѵ�.</dd>
242      </dl>
243    
244</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
245<div class="section">
246<h2><a name="examples" id="examples">����</a></h2>
247    <p>����ġ������ ����� Ȯ���ϴ� <code>mod_foo.c</code>���
248    ����ġ ����� �ִٰ� ��������. ���� ���� ��ɾ ����Ͽ�
249    C �ҽ��� ����ġ ������ �о���� ������ü�� �������Ѵ�:</p>
250
251    <div class="example"><p><code>
252      $ apxs -c mod_foo.c<br />
253      /path/to/libtool --mode=compile gcc ... -c mod_foo.c<br />
254      /path/to/libtool --mode=link gcc ... -o mod_foo.la mod_foo.slo<br />
255      $ _
256    </code></p></div>
257
258    <p>�׸��� �� ������ü�� �о���̴� <code class="directive"><a href="/mod/mod_so.html#loadmodule">LoadModule</a></code> ���þ ����ġ
259    ������ �߰��Ѵ�. <code>apxs</code>�� �ڵ����� ������ü��
260    "modules" ���丮�� ��ġ�ϰ� <code>httpd.conf</code> ������
261    �˸°� �����Ͽ� ������ �۾��� ��ģ��. ���� ���� �����Ѵ�:</p>
262
263    <div class="example"><p><code>
264      $ apxs -i -a mod_foo.la<br />
265      /path/to/instdso.sh mod_foo.la /path/to/apache/modules<br />
266      /path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules
267      ...
268      chmod 755 /path/to/apache/modules/mod_foo.so<br />
269      [/path/to/apache/conf/httpd.conf���� `foo' ����� Ȱ��ȭ�Ѵ�]<br />
270      $ _
271    </code></p></div>
272
273    <p>�׷��� ������ ���� ����</p>
274
275    <div class="example"><p><code>
276      LoadModule foo_module modules/mod_foo.so
277    </code></p></div>
278
279    <p>�������Ͽ� ��ٸ� �߰��Ѵ�. �� ������ �⺻������ �������
280    �ʴ´ٸ� <code>-A</code> �ɼ��� ����Ѵ�. <em>��</em></p>
281
282    <div class="example"><p><code>
283      $ apxs -i -A mod_foo.c
284    </code></p></div>
285
286    <p>apxs�� ���� ����Ϸ��� ������ ���� ����ġ ��� �ߺ���
287    Makefile�� ���� �� �ִ�:</p>
288
289    <div class="example"><p><code>
290      $ apxs -g -n foo<br />
291      Creating [DIR]  foo<br />
292      Creating [FILE] foo/Makefile<br />
293      Creating [FILE] foo/modules.mk<br />
294      Creating [FILE] foo/mod_foo.c<br />
295      Creating [FILE] foo/.deps<br />
296      $ _
297    </code></p></div>
298
299    <p>�׷��� �ٷ� �ߺ� ����� ������ü�� �������Ͽ� ����ġ
300    ������ �е����Ѵ�:</p>
301
302    <div class="example"><p><code>
303      $ cd foo<br />
304      $ make all reload<br />
305      apxs -c mod_foo.c<br />
306      /path/to/libtool --mode=compile gcc ... -c mod_foo.c<br />
307      /path/to/libtool --mode=link gcc ... -o mod_foo.la mod_foo.slo<br />
308      apxs -i -a -n "foo" mod_foo.la<br />
309      /path/to/instdso.sh mod_foo.la /path/to/apache/modules<br />
310      /path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules
311      ...
312      chmod 755 /path/to/apache/modules/mod_foo.so<br />
313      [/path/to/apache/conf/httpd.conf���� `foo' ����� Ȱ��ȭ�Ѵ�]<br />
314      apachectl restart<br />
315      /path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br />
316      [Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br />
317      /path/to/apache/sbin/apachectl restart: httpd started<br />
318      $ _
319    </code></p></div>
320
321</div></div>
322<div class="bottomlang">
323<p><span>������ ���: </span><a href="/en/programs/apxs.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
324<a href="/ko/programs/apxs.html" title="Korean">&nbsp;ko&nbsp;</a> |
325<a href="/tr/programs/apxs.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
326</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
327<script type="text/javascript"><!--//--><![CDATA[//><!--
328var comments_shortname = 'httpd';
329var comments_identifier = 'http://httpd.apache.org/docs/2.2/programs/apxs.html';
330(function(w, d) {
331    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
332        d.write('<div id="comments_thread"><\/div>');
333        var s = d.createElement('script');
334        s.type = 'text/javascript';
335        s.async = true;
336        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
337        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
338    }
339    else { 
340        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
341    }
342})(window, document);
343//--><!]]></script></div><div id="footer">
344<p class="apache">Copyright 2013 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>
345<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
346if (typeof(prettyPrint) !== 'undefined') {
347    prettyPrint();
348}
349//--><!]]></script>
350</body></html>