home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 November
/
PCWorld_2003-11_cd.bin
/
Komunik
/
apache
/
apache_2.0.47-win32-x86-no_ssl.msi
/
Data.Cab
/
F250657_invoking.xml.ru
< prev
next >
Wrap
Extensible Markup Language
|
2003-04-15
|
7KB
|
125 lines
<?xml version='1.0' encoding='KOI8-R' ?>
<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
<!--***************************************************-->
<!-- English revision: 1.2.2.3 -->
<!--***************************************************-->
<!-- Translator: Ilia Soldis (rkai@tversu.ru) -->
<!-- Reviewers: -->
<!-- Ivan Shvedov (ivan@tversu.ru) -->
<!-- Arthur Reznikov (art@altair.tversu.ru)-->
<!--***************************************************-->
<?xml-stylesheet type="text/xsl" href="./style/manual.ru.xsl"?>
<manualpage metafile="invoking.xml.meta">
<title>·┴╨╒╙╦ Apache</title>
<summary>
<p>ε┴ Windows ╨╠┴╘╞╧╥═┴╚ Apache ╧┬┘▐╬╧ ╥┴┬╧╘┴┼╘ ╦┴╦ ╙┼╥╫╔╙ Windows NT/2000/XP
╔╠╔ ╦┴╦ ╦╧╬╙╧╠╪╬╧┼ ╨╥╔╠╧╓┼╬╔┼ Windows 95/ME. Σ╠╤ ╨╧╠╒▐┼╬╔╤ ┬╧╠┼┼ ╨╧─╥╧┬╬╧╩
╔╬╞╧╥═┴├╔╔ ╨╧ ▄╘╧═╒ ╫╧╨╥╧╙╒, ╧┬╥┴╘╔╘┼╙╪ ╦ ─╧╦╒═┼╬╘┴═, ╧┬▀╤╙╬╤└▌╔═ <a
href="platform/windows.html#winsvc">╥┴┬╧╘╒ Apache ╨╧─ Windows ╫ ╦┴▐┼╙╘╫┼ ╙┼╥╫╔╙┴</a> ╔
<a href="platform/windows.xml#wincons">╥┴┬╧╘╒ Apache ╨╧─ Windows ╫ ╦┴▐┼╙╘╫┼ ╦╧╬╙╧╠╪╬╧╟╧
╨╥╔╠╧╓┼╬╔╤</a>.</p>
<p>≈ Unix ╨╥╧╟╥┴══┴ <a href="programs/httpd.html">httpd</a> ╨╥┼─╙╘┴╫╠╤┼╘ ╙╧┬╧╩
─┼═╧╬┴, ╫┘╨╧╠╬╤└▌┼╟╧╙╤ ╫ ╞╧╬╧╫╧═ ╥┼╓╔═┼ ╔ ╧┬╙╠╒╓╔╫┴└▌┼╟╧ ╨╧╙╘╒╨┴└▌╔┼ ┌┴╨╥╧╙┘.
∩ ╘╧═, ╦┴╦╔═ ╧┬╥┴┌╧═ ═╧╓╬╧ ┌┴╨╒╙╘╔╘╪ <code>httpd</code> ╔ ▐╘╧ ╫ ╥┼┌╒╠╪╘┴╘┼ ▄╘╧╟╧
╨╧╠╒▐╔╘╙╤, ╔ ╥┴╙╙╦┴┌┘╫┴┼╘╙╤ ╫ ▄╘╧═ ─╧╦╒═┼╬╘┼.</p>
</summary>
<seealso><a href="stopping.html">∩╙╘┴╬╧╫ ╔ ╨┼╥┼┌┴╨╒╙╦</a></seealso>
<seealso><a href="programs/httpd.html">httpd</a></seealso>
<seealso><a href="programs/apachectl.html">apachectl</a></seealso>
<section id="startup"><title>■╘╧ ╨╥╧╔╙╚╧─╔╘ ╫ ═╧═┼╬╘ ┌┴╨╒╙╦┴ Apache</title>
<p>σ╙╠╔ ╫ ─╔╥┼╦╘╔╫┼ <directive module="mpm_common">Listen</directive>
╫ ╦╧╬╞╔╟╒╥┴├╔╧╬╬╧═ ╞┴╩╠┼ ╒╦┴┌┴╬╧ ┌╬┴▐┼╬╔┼ 80 (┌┴─┴╫┴┼═╧┼ ╨╧ ╒═╧╠▐┴╬╔└)
╔╠╔ ╠└┬╧┼ ─╥╒╟╧┼ ┌╬┴▐┼╬╔┼ ╨╧╥╘┴ ═┼╬╪█┼┼ 1024, ╘╧ ─╠╤ ┌┴╨╒╙╦┴ Apache,
╬┼╧┬╚╧─╔═╧ ┬┘╘╪ ╨╥╔╫╔╠┼╟╔╥╧╫┴╬╬┘═ ╨╧╠╪┌╧╫┴╘┼╠┼═, ╘┴╦ ╦┴╦ Apache ╨╥╔─┼╘╙╤
╨╧─╦╠└▐┴╘╪╙╤ ╦ ╨╥╔╫╔╠┼╟╔╥╧╫┴╬╬╧═╒ ╨╧╥╘╒. ≡╧╙╠┼ ╘╧╟╧, ╦┴╦ ╙┼╥╫┼╥ ┌┴╨╒╙╘╔╠╙╤
╔ ╫┘╨╧╠╬╔╠ ╥╤─ ╨╧─╟╧╘╧╫╔╘┼╠╪╬┘╚ ╧╨┼╥┴├╔╩, ╘┴╦╔╚ ╦┴╦ ╧╘╦╥┘╘╔┼ ╙╫╧╔╚ log - ╞┴╩╠╧╫,
╧╬ ╨╧╥╧╓─┴┼╘ ╬┼╙╦╧╠╪╦╧ <em>╨╥╧├┼╙╙╧╫ ╨╧╘╧═╦╧╫</em>, ╦╧╘╧╥┘┼ ╔ ┬╒─╒╘ ╫┘╨╧╠╬╤╘╪
╫╙└ ╥┴┬╧╘╒ ╨╧ ╧┬╥┴┬╧╘╦┼ ┌┴╨╥╧╙╧╫ ╧╘ ╦╠╔┼╬╘╧╫. ∩╙╬╧╫╬╧╩ ╨╥╧├┼╙╙ <code>httpd</code>
╫┘╨╧╠╬╤┼╘╙╤ ╙ ╨╥┴╫┴═╔ ╨╥╔╫╔╠┼╟╔╥╧╫┴╬╬╧╟╧ ╨╧╠╪┌╧╫┴╘┼╠╤, ╫ ╘╧ ╫╥┼═╤ ╦┴╦ ╨╥╧├┼╙╙┘
╨╧╘╧═╦╔ ╔═┼└╘ ═┼╬╪█╔╩ ╨╥╔╧╥╔╘┼╘. ≈╙┼ ▄╘╧ ╦╧╬╘╥╧╠╔╥╒┼╘╙╤ <a href="mpm.html">φ≡ -
═╧─╒╠┼═</a>, ╦╧╘╧╥┘╩ ╦╧═╨╔╠╔╥╒┼╘╙╤ ╫═┼╙╘┼ ╙ ╙┼╥╫┼╥╧═.</p>
<p>Σ╠╤ ┌┴╨╒╙╦┴ ─┼═╧╬┴ <code>httpd</code> ╠╒▐█┼ ╫╙┼╟╧ ╔╙╨╧╠╪┌╧╫┴╘╪ ╙╦╥╔╨╘
<a href="programs/apachectl.html">apachectl</a>. ⁿ╘╧╘ ╙╦╥╔╨╘ ╒╙╘┴╬┴╫╠╔╫┴┼╘ ╬┼╦╧╘╧╥┘┼
╨┼╥┼═┼╬╬┘┼ ╧╦╥╒╓┼╬╔╤, ╬┼╧┬╚╧─╔═┘┼ ─╠╤ ╨╥┴╫╔╠╪╬╧╩ ╥┴┬╧╘┘ ╙┼╥╫┼╥┴ ╨╧─ ╬┼╦╧╘╧╥┘═╔
╧╨┼╥┴├╔╧╬╬┘═╔ ╙╔╙╘┼═┴═╔, ┴ ┌┴╘┼═ ┌┴╨╒╙╦┴┼╘ ╔╙╨╧╠╬╤┼═┘╩ ╞┴╩╠ <code>httpd</code>.
≤╦╥╔╨╘ <code>apachectl</code> ╨┼╥┼─┴╙╘ ╙┼╥╫┼╥╒ ╠└┬╒└ ╦╧═┴╬─╬╒└ ╙╘╥╧╦╒, ╘┴╦ ▐╘╧,
╨╥╔ ╫┘┌╧╫┼ ═╧╓╬╧ ╒╦┴┌┘╫┴╘╪ ╫ ┼╟╧ ╦╧═┴╬─╬╧╩ ╙╘╥╧╦┼ ╫╙┼ ╬┼╧┬╚╧─╔═┘┼ ─╠╤ ╙┼╥╫┼╥┴ ╧╨├╔╔.
≈┘ ╘┴╦╓┼ ═╧╓┼╘┼ ╫╥╒▐╬╒└ ╫╬┼╙╘╔ ╬┼╦╧╘╧╥┘┼ ╔┌═┼╬┼╬╔╤ ╫ ╙╦╥╔╨╘ <code>apachectl</code>,
╫ ▐┴╙╘╬╧╙╘╔, ╔┌═┼╬╔╫ ┌╬┴▐┼╬╔┼ ╨┼╥┼═┼╬╬╧╩ <code>HTTPD</code> ─╠╤ ┌┴╨╒╙╦┴ Apache
╔┌ ─╥╒╟╧╟╧ ╦┴╘┴╠╧╟┴, ╔ ╒╦┴┌┴╫ ╧╨├╔╔, ╦╧╘╧╥┘┼ ┬╒─╒╘ ╨┼╥┼─┴╫┴╘╪╙╤ ╙┼╥╫┼╥╒ <em>╦┴╓─┘╩ ╥┴┌</em>
╨╥╔ ┼╟╧ ┌┴╨╒╙╦┼.</p>
<p>≡┼╥╫┘═ ─┼╠╧═ <code>httpd</code> ╬┴╚╧─╔╘ ╔ ╙▐╔╘┘╫┴┼╘ <a href="configuring.html">╦╧╬╞╔╟╒╥┴├╔╧╬╬┘╩
╞┴╩╠</a> <code>httpd.conf</code>. ≡╒╘╪ ╦ ▄╘╧═╒ ╞┴╩╠╒ ┌┴─┴┼╘╙╤ ┼▌┼ ╫╧ ╫╥┼═╤ ╙┬╧╥╦╔ ╙┼╥╫┼╥┴,
╬╧ ┼╟╧ ═╧╓╬╧ ╔┌═┼╬╔╘╪ ╔ ╨╧╙╠┼ ▄╘╧╟╧, ┌┴╨╒╙╘╔╫ ╙┼╥╫┼╥ ╙ ╧╨├╔┼╩ <code>-f</code>, ╦┴╦ ▄╘╧ ╨╧╦┴┌┴╬╧
╫ ╙╠┼─╒└▌┼═ ╨╥╔═┼╥┼</p>
<example>/usr/local/apache2/bin/apachectl -f
/usr/local/apache/conf/httpd.conf</example>
<p>σ╙╠╔ ╫╧ ╫╥┼═╤ ┌┴╨╒╙╦┴ ╬┼ ╫╧┌╬╔╦╠╧ ╬╔╦┴╦╔╚ ╨╥╧┬╠┼═, ╘╧ ╙┼╥╫┼╥ ╧╘╙╧┼─╔╬╔╘╙╤
╧╘ ╦╧╬╙╧╠╔ ╔ ╨╥╔╟╠┴█┼╬╔┼ ╬┴ ╫╫╧─ ╦╧═┴╬─╬╧╩ ╙╘╥╧╦╔ ╫┼╥╬┼╘╙╤ ╦ ╨╧╠╪┌╧╫┴╘┼╠└
╨╥┴╦╘╔▐┼╙╦╔ ═╟╬╧╫┼╬╬╧. ⁿ╘╧ ╒╦┴┌┘╫┴┼╘ ╬┴ ╘╧, ▐╘╧ ╙┼╥╫┼╥ ┌┴╨╒╙╘╔╠╙╤ ╔ ╘┼╨┼╥╪
╫┘╨╧╠╬╤┼╘ ╙╫╧└ ╥┴┬╧╘╒. ⌠┼╨┼╥╪ ╫┘ ═╧╓┼╘┼, ╔╙╨╧╠╪┌╒╤ ┬╥┴╒┌┼╥, ╨╧─╦╠└▐╔╘╪╙╤ ╦
╬┼═╒ ╔ ╒╫╔─┼╘╪ ╘┼╙╘╧╫╒└ ╙╘╥┴╬╔├╒, ╬┴╚╧─╤▌╒└╙╤ ╫ ╦┴╘┴╠╧╟┼
<directive module="core">DocumentRoot</directive>, ┴ ╘┴╦╓┼ ╠╧╦┴╠╪╬╒└ ╦╧╨╔└ ─╧╦╒═┼╬╘┴├╔╔,
╙╙┘╠╦╒ ╬┴ ╦╧╘╧╥╒└ ╫┘ ╬┴╩─┼╘┼ ╬┴ ╘╧╩ ╓┼ ╙╘╥┴╬╔├┼.</p>
</section>
<section id="errors"><title>∩█╔┬╦╔, ╦╧╘╧╥┘┼ ═╧╟╒╘ ╫╧┌╬╔╦╬╒╘╪ ╫╧ ╫╥┼═╤ ┌┴╨╒╙╦┴</title>
<p>σ╙╠╔ ╫╧ ╫╥┼═╤ ┌┴╨╒╙╦┴ Apache ╨╥╧╔┌╧╩─┼╘ ╦┴╦┴╤-╠╔┬╧ ╞┴╘┴╠╪╬┴╤ ╧█╔┬╦┴,
╘╧ ╨┼╥┼─ ╘┼═, ╦┴╦ ┌┴╫┼╥█╔╘╪ ╙╫╧└ ╥┴┬╧╘╒, ╙┼╥╫┼╥ ╨╧█╠┼╘ ╬┴ ╦╧╬╙╧╠╪ ╔╠╔ ╫
<directive module="core">ErrorLog</directive> ╙╧╧┬▌┼╬╔┼, ╧╨╔╙┘╫┴└▌┼┼
─┴╬╬╒└ ╧█╔┬╦╒. ε┴╔┬╧╠┼┼ ╥┴╙╨╥╧╙╘╥┴╬┼╬╬┘═ ╙╧╧┬▌┼╬╔┼═ ╧┬ ╧█╔┬╦┼ ╤╫╠╤┼╘╙╤
<code>"Unable to bind to Port ..."</code>. ≡╧─╧┬╬┴╤ ╧█╔┬╦┴ ╫╧┌╬╔╦┴┼╘ ╫ ─╫╒╚ ╙╠╒▐┴╤╚:</p>
<ul>
<li>σ╙╠╔ ╫┘ ╨┘╘┴┼╘┼╙╪ ┌┴╨╒╙╘╔╘╪ ╙┼╥╫┼╥ ╬┴ ╨╥╔╫╔╠┼╟╔╥╧╫┴╬╬╧═ ╨╧╥╘╒, ┬╒─╒▐╔ ┌┴╥┼╟┼╙╘╥╔╥╧╫┴╬╬┘═
╫ ╙╔╙╘┼═┼, ╦┴╦ ╧┬┘▐╬┘╩ ╨╧╠╪┌╧╫┴╘┼╠╪; ╔╠╔</li>
<li>σ╙╠╔ ╫┘ ╨┘╘┴┼╘┼╙╪ ┌┴╨╒╙╘╪ ╙┼╥╫┼╥, ╦╧╟─┴ ╫ ╙╔╙╘┼═┼ ╒╓┼ ┼╙╘╪ ╫┘╨╧╠╬╤└▌╔╩╙╤ ─┼═╧╬ Apache
╔╠╔ ─╥╒╟╧╩ web-╙┼╥╫┼╥, ╙╠╒█┴└▌╔╩ ╘╧╘ ╓┼ ╙┴═┘╩ ╨╧╥╘</li>
</ul>
<p>≥┼█┼╬╔┼ ═╬╧╟╔╚ ╨╧─╧┬╬┘╚ ╨╥╧┬╠┼═ ═╧╓╬╧ ╬┴╩╘╔ ╬┴ ╙╘╥┴╬╔├┼
<a href="faq/">FAQ</a>.</p>
</section>
<section id="boot"><title>·┴╨╒╙╦ ╙┼╥╫┼╥┴ ╫═┼╙╘┼ ╙ ┌┴╨╒╙╦╧═ ╫╙┼╩ ╙╔╙╘┼═┘</title>
<p>σ╙╠╔ ╫┘ ╚╧╘╔╘┼, ▐╘╧┬┘ ╙┼╥╫┼╥ ┌┴╨╒╙╦┴╠╙╤ ┴╫╘╧═┴╘╔▐┼╙╦╔ ╨╧╙╠┼ ╨┼╥┼┌┴╟╥╒┌╦╔ ╙╔╙╘┼═┘,
─╧┬┴╫╪╘┼ ╫┘┌╧╫ ╙╦╥╔╨╘┴ <code>apachectl</code> ╫ ╙╔╙╘┼═╬┘┼ ╞┴╩╠┘, ╧╘╫┼▐┴└▌╔┼ ┌┴ ┌┴╟╥╒┌╦╒
╧╨┼╥┴├╔╧╬╬╧╩ ╙╥┼─┘ (╧┬┘▐╬╧ ▄╘╧ <code>rc.local</code> ╔╠╔ ╞┴╩╠┘ ╫ ╦┴╘┴╠╧╟┼ <code>rc.N</code>).
ⁿ╘╧ ╨╥╔╫┼─┼╘ ╦ ┌┴╨╒╙╦╒ Apache ╧╘ ╔═┼╬╔ ╨╥╔╫╔╠┼╟╔╥╧╫┴╬╬╧╟╧ ╨╧╠╪┌╧╫┴╘┼╠╤.
≈╧ ╔┌┬┼╓┴╬╔┼ ╨╥╧┬╠┼═ ╙ ┬┼┌╧╨┴╙╬╧╙╘╪└ ╙╔╙╘┼═┘, ╒┬┼─╔╘┼╙╪, ▐╘╧ ╙┼╥╫┼╥ ╙╦╧╬╞╔╟╒╥╔╥╧╫┴╬ ╨╥┴╫╔╠╪╬╧.</p>
<p>≤╦╥╔╨╘ <code>apachectl</code> ╥┴┌╥┴┬╧╘┴╬ ╘┴╦╔═ ╧┬╥┴┌╧═, ▐╘╧ ╧╬ ═╧╓┼╘
─┼╩╙╘╫╧╫┴╘╪ ╦┴╦ ╙╘┴╬─┴╥╘╬┘╩ init-╙╦╥╔╨╘ ╙╔╙╘┼═┘ SysV; ╧╬ ═╧╓┼╘ ╨╥╔╬╔═┴╘╪
┴╥╟╒═┼╬╘┘ <code>start</code>, <code>restart</code>, ╔ <code>stop</code>
╔ ╨┼╥┼╫╧─╔╘╪ ╔╚ ╫ ╙╧╧╘╫┼╘╙╘╫╒└▌╔┼ ╙╔╟╬┴╠┘ ╨╥╧├┼╙╙╒ <code>httpd</code>.
≡╧▄╘╧═╒ ▐┴▌┼ ╫╙┼╟╧ ╫┴═ ─╧╙╘┴╘╧▐╬╧ ╙─┼╠┴╘╪ ╙╙┘╠╦╒ ╬┴ <code>apachectl</code>
╫ ┌┴╨╒╙╦╬╧═ ╦┴╘┴╠╧╟┼ ╨╥╧├┼╙╙┴ init. ε╧ ╨╥┼╓─┼ ▐┼═ ─┼╠┴╘╪ ▄╘╧, ╒┌╬┴╩╘┼
╘╧▐╬┘┼ ╘╥┼┬╧╫┴╬╔╤ ╫┴█┼╩ ╙╔╙╘┼═┘.</p>
</section>
<section id="info"><title>Σ╧╨╧╠╬╔╘┼╠╪╬┴╤ ╔╬╞╧╥═┴├╔╤</title>
<p>Σ╧╨╧╠╬╔╘┼╠╪╬╒└ ╔╬╞╧╥═┴├╔└ ╨╧ ╧╨├╔╤═ ╦╧═┴╬─╬╧╩ ╙╘╥╧╦╔ <a href="programs/httpd.html">httpd</a>
╔ <a href="programs/apachectl.html">apachectl</a>, ┴ ╘┴╦╓┼ ─╥╒╟╔╚
╫╙╨╧═╧╟┴╘┼╠╪╬┘╚ ╨╥╧╟╥┴══, ╫┘ ═╧╓┼╘┼ ╬┴╩╘╔ ╬┴ ╙╘╥┴╬╔├┼ <a href="programs/">"≤┼╥╫┼╥
╔ ╫╙╨╧═╧╟┴╘┼╠╪╬┘┼ ╨╥╧╟╥┴══┘"</a>. Θ═┼┼╘╙╤ ╘┴╦╓┼ <a href="mod/directives.html">─╧╦╒═┼╬╘┴├╔╤</a>
╬┴ ╫╙┼ ═╧─╒╠╔, ╫╚╧─╤▌╔┼ ╫ ─╔╙╘╥╔┬╒╘╔╫ Apache, ╔ ╫╙┼ ─╔╥┼╦╘╔╫┘, ╦╧╘╧╥┘┼ ╧╬╔ ╨╥┼─╧╙╘┴╫╠╤└╘.</p>
</section>
</manualpage>