@ KDEV 2007 Some Rights Reserved
How to host your WebSite on a Pen Drive

If the available flash free space is not enough for your application, expand the space with a USB PEN DRIVE.

Before connecting the USB pen drive to the foXServe run this command from a ssh session:

tail -f /var/log/messages

In this way it will be possible to see the pen drive acknowledgement messages to see if all is correctly working.

The messages that should appear when inserting the USB pen drive are as follows:

kernel: drivers/usb/host/hc_crisv10.c: USB controller in host mode.
kernel: drivers/usb/host/hc_crisv10.c: USB controller started.
kernel: drivers/usb/host/hc_crisv10.c: USB controller in host mode.
kernel: drivers/usb/host/hc_crisv10.c: USB controller started.
kernel: drivers/usb/host/hc_crisv10.c: USB controller running.
kernel: usb 1-2: new full speed USB device using ETRAX 100LX and address 2
kernel: scsi0 : SCSI emulation for USB Mass Storage devices
kernel: Vendor: USB Mass Model: Storage Drive 2 Rev: 002
kernel: Type: Direct-Access ANSI SCSI revision: 02
kernel: SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
kernel: sda: Write Protect is off
kernel: sda: assuming drive cache: write through
kernel: SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
kernel: sda: Write Protect is off
kernel: sda: assuming drive cache: write through
kernel: sda: sda1
kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0

From those messages you can see that the USB pen drive has been correctly identified and assigned to the /dev/sda device.

To be able to access the key you have to mount the partition /dev/sda1 in the /mnt/flash/root/test directory with the following command:

mount -t vfat /dev/sda1 /mnt/flash/root/test/

remember that Apache need at least 755 attribute to serve your pages. You can simply change permissions using

chmod -R 0755 /mnt/flash/root/test

From this moment you can access the USB pen drive files in the following URL:

http://<your ip>/test

If you would like to host it in a different place simply change the DocumentRoot directive inside /etc/httpd.conf
This directive sets the directory from which httpd will serve files. Unless matched by a directive like Alias, the server appends the path from the requested URL to the document root to make the path to the document. Example:

DocumentRoot /mnt/flash/root/

then an access to http://www.my.host.com/index.html refers to /mnt/flash/root/index.html.


Configuration files PATH
httpd.conf
configuration: /etc/httpd.conf

The Php version included in foXServe is 5.0.5 compiled with SQLite support.




SMS MMS FoxBox the appliance based on foxserve for messaging management







foXServe is Developed by KDEV a Davide Cantaluppi company and running on ACME SYSTEMS srl Hardware.

@ KDEV 2007 Some Rights Reserved
foXServe firmware is free
foXServe firmware
Download it now!


LICENSES

Apache/1.3.37 Server

Copyright 2007 Kdev of Davide Cantaluppi Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

PHP 5.0.5
"This product includes PHP software, freely available from <http://www.php.net/software/>"

MOD_DAV
This product includes software developed by Greg Stein <gstein@lyra.org> for use in the mod_dav module for Apache (http://www.webdav.org/mod_dav/).