php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /proc/self/root/var/www/html/sub/images/sym/root/opt/lampp/manual/programs/ |
| files >> //proc/self/root/var/www/html/sub/images/sym/root/opt/lampp/manual/programs/apxs.html.ko.euc-kr |
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head>
<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" />
<!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>apxs - APache eXtenSion - Apache HTTP Server Version 2.4</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<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" />
<script src="../style/scripts/prettify.min.js" type="text/javascript">
</script>
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<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>
<p class="apache">Apache HTTP Server Version 2.4</p>
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
<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.4</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>apxs - APache eXtenSion </h1>
<div class="toplang">
<p><span> : </span><a href="../en/programs/apxs.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../fr/programs/apxs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="../ko/programs/apxs.html" title="Korean"> ko </a> |
<a href="../tr/programs/apxs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</div>
<div class="outofdate"> ֽ ƴմϴ.
ֱٿ ϼ.</div>
<p><code>apxs</code> ġ ؽƮ
(HTTP) Ȯ ϰ ġϴ ̴.
ҽ Ʈ<var></var> ,
<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> þ ߿
ġ о ִ ü(DSO) .</p>
<p> ̷ Ȯ Ϸ ÷ DSO
ϰ ġ <code>httpd</code>
<code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ؾ Ѵ.
<code>apxs</code>
ʴ´. ɾ Ͽ ϴ ˾ƺ
ִ</p>
<div class="example"><p><code>
$ httpd -l
</code></p></div>
<p>Ͽ <code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ; Ѵ.
ϸ <code>apxs</code> DSO ġϿ
ġ Ȯ ִ:</p>
<div class="example"><p><code>
$ apxs -i -a -c mod_foo.c<br />
gcc -fpic -DSHARED_MODULE -I/path/to/apache/include -c mod_foo.c<br />
ld -Bshareable -o mod_foo.so mod_foo.o<br />
cp mod_foo.so /path/to/apache/modules/mod_foo.so<br />
chmod 755 /path/to/apache/modules/mod_foo.so<br />
[activating module `foo' in /path/to/apache/etc/httpd.conf]<br />
$ apachectl restart<br />
/path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br />
[Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br />
/path/to/apache/sbin/apachectl restart: httpd started<br />
$ _
</code></p></div>
<p>ƱԸƮ <var>files</var> C ҽ (.c) ̳
Ʈ (.o), ̺귯 (.a) ִ.
<code>apxs</code> Ȯڸ ڵ C ҽ
ϰ, Ʈ ũ Ѵ.
Ʈ Ϸ о ִ
ü ϱ ݵ Ʈ ġڵ(PIC,
position independent code) ؾ Ѵ. GCC
<code>-fpic</code> ϸ ȴ. ٸ C Ϸ
ϰų <code>apxs</code> Ʈ Ҷ
ϴ ɼ ϶.</p>
<p>ġ DSO ڼ
<code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ϰų
<code>src/modules/standard/mod_so.c</code> ҽ о.</p>
</div>
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis"></a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#options">ɼ</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#examples"></a></li>
</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>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="synopsis" id="synopsis"></a></h2>
<p><code><strong>apxs</strong> -<strong>g</strong>
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
-<strong>n</strong> <var>modname</var></code></p>
<p><code><strong>apxs</strong> -<strong>q</strong>
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
<var>query</var> ...</code></p>
<p><code><strong>apxs</strong> -<strong>c</strong>
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
[ -<strong>o</strong> <var>dsofile</var> ]
[ -<strong>I</strong> <var>incdir</var> ]
[ -<strong>D</strong> <var>name</var>=<var>value</var> ]
[ -<strong>L</strong> <var>libdir</var> ]
[ -<strong>l</strong> <var>libname</var> ]
[ -<strong>Wc,</strong><var>compiler-flags</var> ]
[ -<strong>Wl,</strong><var>linker-flags</var> ]
<var>files</var> ...</code></p>
<p><code><strong>apxs</strong> -<strong>i</strong>
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
[ -<strong>n</strong> <var>modname</var> ]
[ -<strong>a</strong> ]
[ -<strong>A</strong> ]
<var>dso-file</var> ...</code></p>
<p><code><strong>apxs</strong> -<strong>e</strong>
[ -<strong>S</strong> <var>name</var>=<var>value</var> ]
[ -<strong>n</strong> <var>modname</var> ]
[ -<strong>a</strong> ]
[ -<strong>A</strong> ]
<var>dso-file</var> ...</code></p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="options" id="options">ɼ</a></h2>
<h3><a name="options.common" id="options.common"> ɼ</a></h3>
<dl>
<dt><code>-n <var>modname</var></code></dt>
<dd><code>-i</code> (install) <code>-g</code> (template
generation) ɼ Ҷ Ѵ.
ɼ Ͽ Ѵ. <code>-g</code>
ɼ Ѵٸ ɼ ݵ ؾϰ,
<code>-i</code> ɼ Ѵٸ <code>apxs</code>
ҽ ( õ) ϸ ̸ Ѵ.</dd>
</dl>
<h3><a name="options.query" id="options.query"> ɼ</a></h3>
<dl>
<dt><code>-q</code></dt>
<dd><code>apxs</code> ˾Ƴ. <var>query</var>
ִ: <code>CC</code>, <code>CFLAGS</code>,
<code>CFLAGS_SHLIB</code>, <code>INCLUDEDIR</code>,
<code>LD_SHLIB</code>, <code>LDFLAGS_SHLIB</code>,
<code>LIBEXECDIR</code>, <code>LIBS_SHLIB</code>,
<code>SBINDIR</code>, <code>SYSCONFDIR</code>, <code>TARGET</code>.
<p> ˾Ƴ Ѵ.</p>
<div class="example"><p><code>
INC=-I`apxs -q INCLUDEDIR`
</code></p></div>
<p> , ġ C Ѵٸ
Makefile Ѵ.</p></dd>
</dl>
<h3><a name="options.conf" id="options.conf"> ɼ</a></h3>
<dl>
<dt><code>-S <var>name</var>=<var>value</var></code></dt>
<dd> ɼ apxs Ѵ.</dd>
</dl>
<h3><a name="options.template" id="options.template">ߺ(template) ɼ</a></h3>
<dl>
<dt><code>-g</code></dt>
<dd>丮 <var>name</var> (<code>-n</code>
ɼ ) װ ΰ :
<code>mod_<var>name</var>.c</code> ߺ ҽϷ,
ڽ 鶧 ߺ ϰų apxs
غ Ѵ. ٸ ϰ
ġϱ <code>Makefile</code>̴.</dd>
</dl>
<h3><a name="options.dso" id="options.dso">DSO ɼ</a></h3>
<dl>
<dt><code>-c</code></dt>
<dd> Ѵ. <var>files</var> C
ҽϵ(.c) Ʈ(.o) ϰ,
<var>files</var> Ʈϵ(.o .a)
ũϿ ü <var>dsofile</var> .
<code>-o</code> ɼ <var>files</var>
ù° ϸ ̸ Ͽ
<code>mod_<var>name</var>.so</code> Ѵ.</dd>
<dt><code>-o <var>dsofile</var></code></dt>
<dd> ü ϸ Ѵ. ̸
ʰ <var>files</var> Ͽ ̸
ϸ <code>mod_unknown.so</code> ̸
Ѵ.</dd>
<dt><code>-D <var>name</var>=<var>value</var></code></dt>
<dd> ɼ ɾ Ѵ.
϶ ڽ define ߰Ѵ.</dd>
<dt><code>-I <var>incdir</var></code></dt>
<dd> ɼ ɾ Ѵ.
϶ include ã 丮 ߰Ѵ.</dd>
<dt><code>-L <var>libdir</var></code></dt>
<dd> ɼ Ŀ ɾ Ѵ.
϶ ̺귯 ã 丮 ߰Ѵ.</dd>
<dt><code>-l <var>libname</var></code></dt>
<dd> ɼ Ŀ ɾ Ѵ.
϶ ̺귯 ߰Ѵ.</dd>
<dt><code>-Wc,<var>compiler-flags</var></code></dt>
<dd> ɼ ߰ ɼ <var>compiler-flags</var>
<code>libtool --mode=compile</code> ɾ Ѵ.
Ϸ Ư ɼ ߰Ҷ Ѵ.</dd>
<dt><code>-Wl,<var>linker-flags</var></code></dt>
<dd> ɼ ߰ ɼ <var>linker-flags</var>
<code>libtool --mode=link</code> ɾ Ѵ. Ŀ
Ư ɼ ߰Ҷ Ѵ.</dd>
</dl>
<h3><a name="options.dsoinstall" id="options.dsoinstall">DSO ġ ɼ</a></h3>
<dl>
<dt><code>-i</code></dt>
<dd>ġ Ѵ. ü
<var>modules</var> 丮 ġѴ.</dd>
<dt><code>-a</code></dt>
<dd>ġ <code>httpd.conf</code> Ͽ
<code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code>
߰ϰų ̹ ִٸ ȰȭϿ ϵ
.</dd>
<dt><code>-A</code></dt>
<dd><code>-a</code> , <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> þ տ
칰(<code>#</code>) δ. <em></em>,
߿ ֵ غѴ.</dd>
<dt><code>-e</code></dt>
<dd> Ѵ. <code>-a</code> Ȥ <code>-A</code>
ɼǰ , <code>-i</code> ɰ
ġʰ ġ
<code>httpd.conf</code> ϸ Ѵ.</dd>
</dl>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="examples" id="examples"></a></h2>
<p>ġ Ȯϴ <code>mod_foo.c</code>
ġ ִٰ . ɾ Ͽ
C ҽ ġ о ü Ѵ:</p>
<div class="example"><p><code>
$ apxs -c mod_foo.c<br />
/path/to/libtool --mode=compile gcc ... -c mod_foo.c<br />
/path/to/libtool --mode=link gcc ... -o mod_foo.la mod_foo.slo<br />
$ _
</code></p></div>
<p> ü о̴ <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> þ ġ
߰Ѵ. <code>apxs</code> ڵ ü
"modules" 丮 ġϰ <code>httpd.conf</code>
˸° Ͽ ۾ ģ. Ѵ:</p>
<div class="example"><p><code>
$ apxs -i -a mod_foo.la<br />
/path/to/instdso.sh mod_foo.la /path/to/apache/modules<br />
/path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules
...
chmod 755 /path/to/apache/modules/mod_foo.so<br />
[/path/to/apache/conf/httpd.conf `foo' ȰȭѴ]<br />
$ _
</code></p></div>
<p> </p>
<div class="example"><p><code>
LoadModule foo_module modules/mod_foo.so
</code></p></div>
<p>Ͽ ٸ ߰Ѵ. ⺻
ʴ´ٸ <code>-A</code> ɼ Ѵ. <em></em></p>
<div class="example"><p><code>
$ apxs -i -A mod_foo.c
</code></p></div>
<p>apxs Ϸ ġ ߺ
Makefile ִ:</p>
<div class="example"><p><code>
$ apxs -g -n foo<br />
Creating [DIR] foo<br />
Creating [FILE] foo/Makefile<br />
Creating [FILE] foo/modules.mk<br />
Creating [FILE] foo/mod_foo.c<br />
Creating [FILE] foo/.deps<br />
$ _
</code></p></div>
<p> ٷ ߺ ü Ͽ ġ
еѴ:</p>
<div class="example"><p><code>
$ cd foo<br />
$ make all reload<br />
apxs -c mod_foo.c<br />
/path/to/libtool --mode=compile gcc ... -c mod_foo.c<br />
/path/to/libtool --mode=link gcc ... -o mod_foo.la mod_foo.slo<br />
apxs -i -a -n "foo" mod_foo.la<br />
/path/to/instdso.sh mod_foo.la /path/to/apache/modules<br />
/path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules
...
chmod 755 /path/to/apache/modules/mod_foo.so<br />
[/path/to/apache/conf/httpd.conf `foo' ȰȭѴ]<br />
apachectl restart<br />
/path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br />
[Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br />
/path/to/apache/sbin/apachectl restart: httpd started<br />
$ _
</code></p></div>
</div></div>
<div class="bottomlang">
<p><span> : </span><a href="../en/programs/apxs.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../fr/programs/apxs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="../ko/programs/apxs.html" title="Korean"> ko </a> |
<a href="../tr/programs/apxs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</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&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>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/2.4/programs/apxs.html';
(function(w, d) {
if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
d.write('<div id="comments_thread"><\/div>');
var s = d.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
(d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
}
else {
d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
}
})(window, document);
//--><!]]></script></div><div id="footer">
<p class="apache">Copyright 2015 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>
<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[//><!--
if (typeof(prettyPrint) !== 'undefined') {
prettyPrint();
}
//--><!]]></script>
</body></html>
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`