https://wiki.uniformserver.com/index.php?title=Mini_Servers:_Apache_2.2.9_Service&feed=atom&action=historyMini Servers: Apache 2.2.9 Service - Revision history2024-03-28T21:58:31ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=Mini_Servers:_Apache_2.2.9_Service&diff=6372&oldid=prevOlajideolaolorun: Text replace - "sourceforge.net/projects/miniserver" to "sourceforge.net/projects/uniformserver"2012-10-11T05:54:04Z<p>Text replace - "sourceforge.net/projects/miniserver" to "sourceforge.net/projects/uniformserver"</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 05:54, 11 October 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l197">Line 197:</td>
<td colspan="2" class="diff-lineno">Line 197:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Download ===</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Download ===</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Download this server from SourceForge [http://sourceforge.net/projects/<del style="font-weight: bold; text-decoration: none;">miniserver</del>/files/MiniServer/MiniServer_%20Apache%202.2.9%20Service/ Project Page] save the file '''mini_server_2.exe''' to drive '''C'''.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Download this server from SourceForge [http://sourceforge.net/projects/<ins style="font-weight: bold; text-decoration: none;">uniformserver</ins>/files/MiniServer/MiniServer_%20Apache%202.2.9%20Service/ Project Page] save the file '''mini_server_2.exe''' to drive '''C'''.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''''Note'':''' Check out the mini server's [[Mini Servers: Support and download|support and download page]] detailing how to obtain full binaries for Apache.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''''Note'':''' Check out the mini server's [[Mini Servers: Support and download|support and download page]] detailing how to obtain full binaries for Apache.</div></td></tr>
</table>Olajideolaolorunhttps://wiki.uniformserver.com/index.php?title=Mini_Servers:_Apache_2.2.9_Service&diff=6054&oldid=prevRic: /* Download */2011-11-05T12:52:16Z<p><span dir="auto"><span class="autocomment">Download</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 12:52, 5 November 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l197">Line 197:</td>
<td colspan="2" class="diff-lineno">Line 197:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Download ===</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Download ===</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Download this server from SourceForge [http://sourceforge.net/<del style="font-weight: bold; text-decoration: none;">project</del>/<del style="font-weight: bold; text-decoration: none;">showfiles</del>.<del style="font-weight: bold; text-decoration: none;">php?group_id=53691&package_id=275691 </del>Project Page] save the file '''mini_server_2.exe''' to drive '''C'''.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Download this server from SourceForge [http://sourceforge.net/<ins style="font-weight: bold; text-decoration: none;">projects</ins>/<ins style="font-weight: bold; text-decoration: none;">miniserver/files/MiniServer/MiniServer_%20Apache%202</ins>.<ins style="font-weight: bold; text-decoration: none;">2.9%20Service/ </ins>Project Page] save the file '''mini_server_2.exe''' to drive '''C'''.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''''Note'':''' Check out the mini server's [[Mini Servers: Support and download|support and download page]] detailing how to obtain full binaries for Apache.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''''Note'':''' Check out the mini server's [[Mini Servers: Support and download|support and download page]] detailing how to obtain full binaries for Apache.</div></td></tr>
</table>Richttps://wiki.uniformserver.com/index.php?title=Mini_Servers:_Apache_2.2.9_Service&diff=3498&oldid=prevRic: /* Download */2008-10-05T18:27:08Z<p><span dir="auto"><span class="autocomment">Download</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:27, 5 October 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l197">Line 197:</td>
<td colspan="2" class="diff-lineno">Line 197:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Download ===</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Download ===</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Download this server from SourceForge [http://sourceforge.net/<del style="font-weight: bold; text-decoration: none;">projects</del>/<del style="font-weight: bold; text-decoration: none;">miniserver </del>Project Page] save the file '''mini_server_2.exe''' to drive '''C'''.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Download this server from SourceForge [http://sourceforge.net/<ins style="font-weight: bold; text-decoration: none;">project</ins>/<ins style="font-weight: bold; text-decoration: none;">showfiles.php?group_id=53691&package_id=275691 </ins>Project Page] save the file '''mini_server_2.exe''' to drive '''C'''.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''''Note'':''' Check out the mini server's [[Mini Servers: Support and download|support and download page]] detailing how to obtain full binaries for Apache.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''''Note'':''' Check out the mini server's [[Mini Servers: Support and download|support and download page]] detailing how to obtain full binaries for Apache.</div></td></tr>
</table>Richttps://wiki.uniformserver.com/index.php?title=Mini_Servers:_Apache_2.2.9_Service&diff=3414&oldid=prevRic at 14:23, 17 August 20082008-08-17T14:23:06Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:23, 17 August 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l291">Line 291:</td>
<td colspan="2" class="diff-lineno">Line 291:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{|</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{|</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| [[Image:uc_small_logo.gif]] || [[User:<del style="font-weight: bold; text-decoration: none;">WikiSysop</del>|Ric]]</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| [[Image:uc_small_logo.gif]] || [[User:<ins style="font-weight: bold; text-decoration: none;">Ric</ins>|Ric]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">[[Category: To be published]]</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: UniCenter]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: UniCenter]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: Mini Servers]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: Mini Servers]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: Oily Rag]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: Oily Rag]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: Self Install]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: Self Install]]</div></td></tr>
</table>Richttps://wiki.uniformserver.com/index.php?title=Mini_Servers:_Apache_2.2.9_Service&diff=3411&oldid=prevRic at 14:21, 17 August 20082008-08-17T14:21:01Z<p></p>
<a href="https://wiki.uniformserver.com/index.php?title=Mini_Servers:_Apache_2.2.9_Service&diff=3411&oldid=3360">Show changes</a>Richttps://wiki.uniformserver.com/index.php?title=Mini_Servers:_Apache_2.2.9_Service&diff=3360&oldid=prevRic: New page: {{Uc nav mini servers}} right'''Mini server using Apache 2.2.9 Core run as service''' This page covers running our mini server (describe on the previ...2008-07-20T19:24:39Z<p>New page: {{Uc nav mini servers}} <a href="/File:Uc_mini_1a.gif" title="File:Uc mini 1a.gif">Apache 2.2.9|right</a>'''Mini server using Apache 2.2.9 Core run as service''' This page covers running our mini server (describe on the previ...</p>
<p><b>New page</b></p><div>{{Uc nav mini servers}}<br />
[[Image:Uc_mini_1a.gif|Apache 2.2.9|right]]'''Mini server using Apache 2.2.9 Core run as service'''<br />
<br />
This page covers running our mini server (describe on the previous page) as a service, its big brother Uniform Server 3.5-Apollo automates this process. We are not going to take this easy option! Well you would never learn anything by doing that, the manual alternative although slightly more difficult provides an insight into Apache and Uniform Servers flexibility.<br />
<br />
Interestingly I looked at the surgery performed on both Apache and Uniform Server, seems Uniform Server was mutilated beyond all recognition only the batch files survived while Apache remained reasonably recognisable.<br />
<br />
Note: Check[[#Support files | support section for download]] details<br />
<br />
'''''[[#top | Top]]'''''<br />
== Specification ==<br />
The server has the following specification:<br />
<br />
* Server shall run as a service<br />
* Only static HTML pages shall be served.<br />
* The server shall log all web requests.<br />
* All unused modules shall be disabled.<br />
<br />
The only difference in this specification server is no longer portable but run as a service. This means every time you restart your PC the Apache server will automatically start. The advantage of this, when running a server permanently connected to the Internet should a power interruption occur the server will automatically restart when power is restored. If other elements of the system have been set accordingly then your Internet presence will also be restored.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Security Issues ==<br />
Security issues remain as explained on the previous page. I would like to stress this is about as best as it gets. If you take this server and pop it on a Unix box you can harden it a little more, however they are also faced with the same issues.<br />
<br />
'''''[[#top | Top]]'''''<br />
== Changes ==<br />
Interestingly if you run the portable version of this sever on a dedicated disk the configuration file would remain unchanged. Use the two new batch files and you are ready to go.<br />
<br />
However like many others I run this on C drive with loads of other software yep alarm bells security issue, I am neither complacent nor unaware of these issues, Apache is probably the most secure bit on kit I have on my PC. Anyway I digress; changes are all associated with paths more precisely relative and absolute.<br />
<br />
'''''[[#top | Top]]'''''<br />
=== Relative ===<br />
In theory Apache is quite happy to use relative paths for example '''“/”''' refers to the top level of the current disk. Uniform Server and our portable mini server use this to great advantage by defining a dedicated virtual disk '''“w”'''. However when changing across disk space Windows gets uptight about relative paths unless you can explicitly define a disk.<br />
<br />
=== Absolute ===<br />
Windows likes pegs hammered into the ground so to speak, hence when running as a service specifying absolute paths is essential to keep both parties happy for example '''c:\uc_server_1b''', the drive must be specified and then any folders etc.<br />
<br />
No need to ramble on, just remember absolute paths are the order of the day so lets roll up ours sleeves and look at some code hacking.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Configuring Apache ==<br />
As mentioned above absolute paths are required in the configuration file. I have chosen to run the server on '''C''' drive from folder '''uc_server_1b''' you can use a different drive and or folder the choice is yours, just substitute accordingly. I have highlighted these absolute paths in bold interestingly these are the only changes required to our original configuration file.<br />
<br />
{|border="0" cellpadding="4" cellspacing="1" style="background:#222222"<br />
|-style="background:#e8e8e8"<br />
!httpd.conf located in folder: C:\uc_server_1b\usr\local\apache2\conf<br />
|-style="background:#f5f5f5"<br />
|<br />
<nowiki>#</nowiki> UniCenter - Very basic server<br><br />
<nowiki>#</nowiki> Author: Mike Gleaves <br><br />
<nowiki>#</nowiki> Main Apache 2.2.9 HTTP server configuration file.<br><br />
<nowiki>#</nowiki> 14-7-2008<br />
|-style="background:#f5f5f5"<br />
|<br />
<nowiki>#</nowiki>&nbsp;================================================ <br><br />
<nowiki>#</nowiki> Modules <br><br />
<nowiki>#</nowiki>&nbsp;================================================<br><br />
&nbsp;LoadModule authz_host_module modules/mod_authz_host.so<br><br />
&nbsp;LoadModule dir_module modules/mod_dir.so<br><br />
&nbsp;LoadModule log_config_module modules/mod_log_config.so<br><br />
&nbsp;LoadModule mime_module modules/mod_mime.so <br />
|-style="background:#f5f5f5"<br />
|<br />
<nowiki>#</nowiki> ======================================== <br><br />
<nowiki>#</nowiki> Basic settings <br><br />
<nowiki>#</nowiki> ======================================== <br><br />
&nbsp;Listen 80 <br><br />
&nbsp;ServerName localhost:80<br><br />
&nbsp;ServerAdmin fred@www.somedomain.com <br><br />
&nbsp;UseCanonicalName Off <br><br />
&nbsp;ServerSignature Off <br><br />
&nbsp;HostnameLookups Off <br><br />
ServerTokens Prod <br><br />
&nbsp;ServerRoot "'''c:/uc_server_1b'''/usr/local/apache2"<br><br />
&nbsp;DocumentRoot "'''c:/uc_server_1b'''/www"<br><br />
&nbsp;PidFile /logs/httpd.pid <br><br />
<IfModule mod_dir.c> <br><br />
&nbsp;&nbsp;DirectoryIndex index.html index.htm<br><br />
</IfModule><br />
|-style="background:#f5f5f5"<br />
|<br />
<nowiki>#</nowiki> ======================================== <br><br />
<nowiki>#</nowiki> HTTP and performance settings <br><br />
<nowiki>#</nowiki> ======================================== <br><br />
&nbsp;Timeout 300 <br><br />
&nbsp;KeepAlive On <br><br />
&nbsp;MaxKeepAliveRequests 100 <br><br />
&nbsp;KeepAliveTimeout 15 <br><br />
<IfModule mpm_winnt.c><br><br />
&nbsp;&nbsp;ThreadsPerChild 64<br><br />
&nbsp;&nbsp;MaxRequestsPerChild 0<br><br />
</IfModule> <br />
|-style="background:#f5f5f5"<br />
|<br />
<nowiki>#</nowiki> ======================================== <br><br />
<nowiki>#</nowiki> Access control <br><br />
<nowiki>#</nowiki> ======================================== <br><br />
<Directory /> <br><br />
&nbsp;&nbsp;Options None <br><br />
&nbsp;&nbsp;AllowOverride None<br><br />
&nbsp;&nbsp;Order deny,allow <br><br />
&nbsp;&nbsp;Deny from all <br><br />
</Directory> <br />
<br />
<Directory "'''c:/uc_server_1b'''/www"> <br><br />
&nbsp;&nbsp;Order allow,deny <br><br />
&nbsp;&nbsp;Allow from all <br><br />
</Directory> <br />
|-style="background:#f5f5f5"<br />
|<br />
<nowiki>#</nowiki> ======================================== <br><br />
<nowiki>#</nowiki> MIME encoding <br><br />
<nowiki>#</nowiki> ======================================== <br><br />
&nbsp;DefaultType text/plain <br><br />
&nbsp;TypesConfig /usr/local/apache2/conf/mime.types<br />
|-style="background:#f5f5f5"<br />
|<br />
<nowiki>#</nowiki> ======================================== <br><br />
<nowiki>#</nowiki> Logs: debug, info, notice, warn, error, crit<br><br />
<nowiki>#</nowiki> ======================================== <br><br />
&nbsp;LogLevel warn <br><br />
&nbsp;LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"<br><br />
&nbsp;\"%{User-Agent}i\"" combined <br><br />
&nbsp;LogFormat "%h %l %u %t \"%r\" %>s %b" common <br><br />
&nbsp;LogFormat "%{Referer}i -> %U" referer <br><br />
&nbsp;LogFormat "%{User-agent}i" agent <br><br />
&nbsp;ErrorLog "logs/error_log" <br><br />
&nbsp;CustomLog "logs/access.log" combined<br><br />
<nowiki>#</nowiki> ========================================<br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
== uc_install.bat ==<br />
Batch files to install and uninstall Apache as a service are not very complex; the trick is to supply all the right parameters as shown.<br />
<br />
Install service employs a nice bit of defensive programming when run the first line checks Apache’s configuration file for errors. Errors are listed including line numbers once corrected rerun the batch file. The second line installs Apache as a service once installed the third line starts the service.<br />
<br />
{|border="0" cellpadding="4" cellspacing="1" style="background:#222222"<br />
|-style="background:#e8e8e8"<br />
!uc_install.bat located in folder: C:\uc_server_1b<br />
|-style="background:#f5f5f5"<br />
|<br />
<pre style="border:none;padding:0;margin:0"><br />
@echo off<br />
echo.<br />
c:\uc_server_1b\usr\local\apache2\bin\Apache.exe -k install -n "Apache2"<br />
echo.<br />
net start Apache2<br />
echo.<br />
echo Type http://localhost into your browser to access server.<br />
echo.<br />
pause<br />
</pre><br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== uc_uninstall.bat ==<br />
The uninstall batch file first stops the “Apache2” service and then proceeds to uninstall it.<br />
<br />
{|border="0" cellpadding="4" cellspacing="1" style="background:#222222"<br />
|-style="background:#e8e8e8"<br />
!uc_uninstall.bat located in folder: C:\uc_server_1b<br />
|-style="background:#f5f5f5"<br />
|<br />
<pre style="border:none;padding:0;margin:0"><br />
@echo off<br />
echo.<br />
net stop Apache2<br />
echo.<br />
c:\uc_server_1b\usr\local\apache2\bin\Apache.exe -k uninstall -n "Apache2"<br />
echo.<br />
echo Done<br />
pause<br />
</pre><br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Command Line ==<br />
After installing the Apache service with the above batch file you can start and stop the "Apache2" service at anytime using a command line this saves uninstalling the service every time you want to stop the server:<br />
<br />
* '''net stop Apache2'''<br />
* '''net start Apache2'''<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Support files ==<br />
Each mini server is complete and zipped into a single self-extracting archive file.<br />
<br />
=== Download ===<br />
Download this server from the mini server's [[Mini Servers: Support and download#UC Server 1b|Support and download page.]] Save the file uc_server_1b.exe to drive '''C'''.<br />
<br />
'''''Note'':''' Check the file's integrity using its MD5 a suitable checker '''winMd5Sum Portable''' can be found at [http://portableapps.com/apps Portable Apps] under Utilities.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
=== Extract files ===<br />
Double click on uc_server_1b.exe, starts the extraction process. No need to change the folder destination, click extract, this creates a new folder '''uc_server_1b''' containing two files and two folders.<br />
<br />
# '''uc_install.bat''' - Double click to install and start server as a service.<br />
# '''uc_uninstall.bat''' - Double click to stop and uninstall server service.<br />
# '''usr''' - Folder containing the server.<br />
# '''www''' - Folder containing a test web site (delete this and place your site in this folder).<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
=== Test ===<br />
Testing is straight forward.<br />
<br />
# Install the server by double clicking on '''uc_install.bat''' (Checks config file, installs service and runs it)<br />
# Type '''<nowiki>http://localhost/</nowiki>''' into the browser address bar.<br />
# An index page is displayed, check out the test site MPG1.<br />
<br />
'''''Note 1'':''' The server automatically starts when your PC is restarted (that’s the reason for installing as a service.)<br />
<br />
'''''Note 2'':''' Adding extra pages or changing your web site there is no need to either restart or uninstall the server.<br />
<br />
'''''Note 3'':''' Stop the service before making changes to Apache's configuration file; restarting service guarantees the new changes will be picked up. <br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
=== Your web site ===<br />
Open the folder www located in folder '''*uc_server_1b\www''' delete everything in this folder and copy your site in to it.<br />
<br />
'''''Note'':''' Make sure one of your pages in folder www is named '''index.html''' or '''index.htm''', otherwise you will need to type a page name in every time to access your site.<br />
<br />
e.g. <nowiki>http://localhost/somepage.html</nowiki><br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Summary ==<br />
That concludes server 1, I have shown how to run it either in a portable or service configuration. It is a very powerful mini server you can use for either testing or putting your web site on-line (production server). The configuration file is clean allowing you to easily explore other Apache configurations.<br />
<br />
Shame it’s only capable of serving static pages, not to worry the next mini server has this covered with PHP.dynamic duo Apache and Uniform Server make an excellent basic portable server. <br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
----<br />
<br />
{|<br />
| [[Image:uc_small_logo.gif]] || [[User:Ric|Ric]]<br />
|}<br />
<br />
<br />
[[Category: UniCenter]]<br />
[[Category: Mini Servers]]<br />
[[Category: Oily Rag]]<br />
[[Category: Self Install]]</div>Ric