=====================================================================
 Micro-Apache PE (Win32) README.TXT
 A minimalist distribution of Apache 2.0
 M Shaw - January 2006
=====================================================================
 Released under the GNU Licence
 Please see the attached LICENCE.TXT
 http://bartpe.amadis.sytes.net
 http://microapache.amadis.sytes.net
 Notes are relevant to PEBuilder 3.1.3
=====================================================================

 Contents
==============
 About
 Copyright
 Installation
 Naming Conventions
 Building
 Running in BartPE
 Auto-Booting
 Serving Web Content
 Support

=====================================================================

 About
======
This documentation is minimal. I developed MicroApache for my own use
but I am happy to share this with others. I am busy with other projects
and have more things to do with my time than write reams of documentation
which will probably never be read!.

 Copyright
==========
You should have receievd a copy of the GNU licence document.
If not you can download a copy from one of the above websites.
Apache is released by the Apache Software Foundation (ASF)
The ASF do NOT endorse or support Micro Apache or any BartPE
variant of Apache. ApachePE and Micro-Apache are "expert" products
where you are expected to have the requisite expertise to help
yourself and fix your own problems. 

* DO NOT approach the ASF for support issues with MicroApache *

 Installation
===============
Copy/unzip the ZIP file to your BartPE "plugins" directory

Configure the httpd.conf file under /plugins/micro-apache/conf/

Micro-Apache is a distribution intended to be run from 1.44mb
floppy disks. Thus, Micro-Apache uses UPX compressed modules. 

 Naming Conventions
===================
.SO files have been renamed as .DLL. SO files are, in reality
standard Windows DLL files.

Apache.exe has been renamed "mapache.exe" so that you can host it 
and run in EXE (not service) mode on a system already running standard 
Apache. Changing the name to mapache.exe means you can use kill.exe or 
any other process termination utility to shutdown Micro-Apache in EXE 
mode whilst leaving any standard installation unaffected.

 File Locations
===============
Micro-Apache is configured by default to run from drive B:
The BartPE version runs from B:\micro-apache\
The \bin\ folder is not used since there are so few binaries
If PHP is included then this will include only a very basic PHP.INI
Compressed modules are located in ..\modules\

 Building
=========
Run the PEBuilder interface. 
Click "Plugins" and ensure that Micro-Apache appears in the list
Highlight it and click "Enable/Disable" to set the option to "YES".
If you want web-content to be copied to the CDROM then you need to add
this as a custom directory (see below).

 Running in BartPE
==================
A menu item called "Apache" is added as a sub-menu of "Programs"
You can install Apache as a service and run it using "Click and Go"
Otherwise there are menu items for the following:

MicroApache Click and Go          Install, test and Run Apache
Install MicroApache               Install the Apache service
Edit MicroApache Configuration    Edit httpd.conf in Notepad
MicroApache Test                  Test the Apache config (httpd.conf)
MicroApache Start                 Start the Apache service
MicroApache Stop                  Stop the Apache service
MicroApache Restart               Restart the Apache service

Note that the network service MUST be started before you can start
Micro-Apache.

 Testing
========
QEMU PC emulator is recommended for testing your build before burning
to CDROM. Visit http://bartpe.amadis.sytes.net for more information.

 Auto-Booting
=============
Use the AUTOBOOT.CMD file to auto-boot. You will need to set this up in 
your PE build to auto run when BartPE loads.

 Serving Web Content
====================
You can either add web content as part of the plugin. In which case it will
be copied to ramdisk (drive B:) on setting up within the BartPE environment.
Or, you can put the content on CDROM and have Apache serve content from
the CDROM. Neither solution is ideal. Ramdisks are small and CDROM drivers
are slow. 

A custom directory can be added using the PEBuilder interface. Note that
you must specify a directory ONE LEVEL HIGHER than that which you specify
in your httpd.conf. e.g. if you specify d:/wwwroot then you need to hold
/wwwroot locally under a master folder and specify THAT in the interface.
For example - specify c:\webcontent\wwwroot\ where all the content is
wholly contained underneath \wwwroot.

Once built, the CONTENTS of the "holding" directory (not the directory
itself) will be copied to CDROM. Fail to follow this procedure and
the contents of your website will be copied to the ROOT of the CDROM.

You can also manually edit httpd.conf to have Apache serve content from
the host hard drive of the system you boot BartPE on.

 Support
========
There are many Apache support forums which may be able to help you
installing and setting up Apache on BartPE. Please bear in mind that
these forums are operated by volunteers who donate their time to help
others.

No support for this product is provided. This is an "expert" product
where you are expected to have experience with standard Apache.
Most of all, you are expected to have Read the "Fine" Manual (RTFM)

Recommended Apache forums:

http://www.apachefreaks.com
=====================================================================
24th January 2006
