Thanks for the fast replay
Answer 1
The name of the file is cam.cgi
Answer 2
I did try that but same problem
Code:
#!/bin/bash
fswebcam -d /dev/video0 -r 1280x960 /var/www/cam/bild.jpeg
Answer 3
I did run that script in my cgi-bin folder and it works.
I'm not going to have any .cgi file in my www directory.
I have ExecCGI in my default file.
Code:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
When I run
Code:
tail -f /var/log/apache2/error.log
and trying to run my cgi file I got
Code:
Trying source module v4l2...
\x1b[0m\x1b[31mError opening device: /dev/video0
\x1b[0m\x1b[31mopen: Permission denied
\x1b[0m\x1b[0mTrying source module v4l1...
\x1b[0m\x1b[31mError opening device: /dev/video0
\x1b[0m\x1b[31mopen: Permission denied
\x1b[0m\x1b[31mUnable to find a source module that can read /dev/video0.
\x1b[0m
Premature end of script headers: cam.cgi
Bookmarks