Raspberry For Serving Your Own Files   
Recapture the Value       Other Projects               Raspberry Light Controller via Infrared            Remote Control 8  relays.         Random music player  can be controlled by keypad  for directory. Slow fasf coutry ...
Building Monitor                      Boat Monitor                 Trailer Monitor     Get web site that tracks with google.

Install Raspian
Install Apache and PHP      
Fix port forwarding Setup Godaddy or?



Test
Easiest
Easiest
Lamp Server $89.00 with Dynamic Name Serivice
NO fixed IPS necessary .
He can set it up with vsftpd  SCP
Rsynch

http://192.168.1.93/temperature_log.txt

ssh pi@192.168.1.93
raspberry

scp
upload
works
scp file.txt pi@192.168.1.93:
download  can use wild cards
scp pi@192.168.1.93:file.txt (this did not) 
scp pi@192.168.1.93:file.txt filexx.txt (this did)
scp file.txt pi@192.168.1.93:/var/www/filetest.txt (as did this)
works


keys from server side explained
establish a key from one computer.
share the id.rsa  private key with any computer you wish
your box to communicate with


pull script from server?





Raspberry Pi flashed with Raspbian
But the above with the no sd card option
and get our preconfigured card for .
$20.00




UPS backup use power bank.
xt power bank




Custom flashed Card with vsftpd

 DDclient
Dynu 4 free
$9.99 500 sub domains.

Script gets current IP
ftp it to webhost
whupftp.sh


Custom Distro
Apache
Vsftpd
Php

LAP server with password
protected upload page.
Install vsftpd no need with
 php and upload page.

Ftp for doing own dynamic dns

load free server with bunch of
pages that forward
give them individual acct numbers.

Wrt54gl instructions

Link to purchase

This video one is quite easy to follow.


Videos on setting up.
Forward Url to the Device
80 is standard for appache
If you wish to access remotely open
port 22 for the router for ssh
keys?







Automatic upload upgrade.


Config Vsftpd to go to your web folder
Script for your Mac
Change server to your Raspberry

(make service for this) web page simply drop files
in folder. delete after show.




How it works.

Diagram on Google Docs


No DNS service necessary for short term pages like auctions.
If you regester a name and point it to a cheap service you can upload a page that redirects to your service.
php . The php will process the add on  tag.

Server on mac first.

http://24.17.167.113/
/etc/apache2.

library webserver documents is root
 

Use cyberduck to upload files.
Build bash script for mac for uploading
see /Users/DriveDocs/whupftp.sh

#!/bin/bash
#whupftp.sh
cd ~/wh_uploads
HOST='files.000webhost.com'
USER='circadea'
PASSWD='theend11'
FILE='*.*'

ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
binary
cd /public_html/circadea/
prompt off
mput *.*
quit
END_SCRIPT

mv *.*  ~/wh_website
exit 0


ftupdd.sh
fsmd3pdf.sh
ftupdd.sh
fsmd3pdf.sh
ftindd.sh
ftindd.sh
lighttpd.sh

use folder watcher to trigger event?

use pdf upload fsm

list of bash scripts  done bash_script_list.txt

Godaddy > webhosting.cheap  php script redirect in index.html

curl ifconfig.me > file.txt    = 24.17.167.113
curl icanhazip.com > file.txt = same seems to be fastest curl ipecho.net/plain > file.txt = same curl ifconfig.co > file.txt


$lines_array = file("file.txt");


A service....

have server upload the ip address for the location.

<a href='http://website2.com/index.php?id=2489&user=tom'>link to page2</a>
https://www.plus2net.com/php_tutorial/variables2.php

<a href=https://www.sitename.com/index.php?id=2489&user=tom>Link to another site</a>
one only needs to input the ip address into the string
website=



<?php $fpvalue = $_GET['p']; $frvalue = $_GET['r']; $fsvalue = $_GET['s']; header("Location: http://website2.com/".$fpvalue.".aspx?r=".$frvalue."&s=".$fsvalue); exit; ?> <html> </html>