Putting a RasPi Camera on the Internet of Things!
Instructions:
- Set up Pi normally (Raspbian)
- Install Apache Webserver & PHP
- Download Zip & Unzip or Git Clone into /var/www/html/PiCamServer
- Make folder "pics" with 775 (777?) permissions
- Set $password in passHandler.php to your desired password
- Move our "index.html" into /var/www/html
- Start Webserver
- Start PHP
- Go to IP of the pi in browser of computer on the same network
Implement for named localhost (ex. "picam" vs "192.168.0.236") https://blog.gaya.ninja/articles/faking-a-top-level-domain-name-for-local-development-with-apache/
-get latest jessie -overclock to "high" -remove unnecessary programs -configure to liking -install apache2 & php5 (see raspberrypi.org doc) -remove the /var/www/html folder -git clone into /var/www/PiCamServer -git fetch & git pull -create folder "/var/www/PiCamServer/pics" with 777 (-R) permissions -in /etc/apache2/sites-available/000-default.conf : -change documentRoot to /var/www/PiCamServer -after documentroot, put:
DirectoryIndex index.php index.html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/PiCamServer>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>