donster22 wrote:donster22 wrote:btidey wrote:
Personally I wouldn't have recommended relocating the /var/www directory as there may be other dependencies in the web code which may not have not been fully exercised. You should be able to achieve external mounts fine direct from the media folder under /var/www
However, if you have other web sites running under Apache, which could be in conflict then I can see it can be convenient to separate into different folders. In principle, most (or all) should work but it depends on what you are doing with the Apache Document root.
If you have left that at /var/www then all urls are relative to that. Previously the motion url was
http://localhost/cam_pic.php because cam_pic.php was in the Document root. So with a Document root left at /var/www and an install folder of /var/www/BB then the url would be
http://localhost/BB/cam_pic.php and I assume you browse to
http://localhost/BB/index.php to get main page.
---
Thanks, yes.I'm using the urls you mention but it's not working.
The
http://localhost/BB/cam_pic.php is working when i view it in my browser but motion just won't pick up on movements so I'm still a bit stuck.
The reason I'm trying to do this is because I want my current website in /var/www/ It's index.html refreshes every 60 seconds and will pull a cam.jpg in each time it does and then everything else is "behind the scenes" in /var/www/BB/ for me to watch and share when necessary.
Are there any other ideas you think might help or will this not really work? I tried it because it references moving the install folder in the installation notes.
thanks
don
Just to add on this, I have run through the troubleshooting tips here :
https://github.com/silvanmelchior/RPi_C ... RPiCam.pdf
Motion just doesn't trigger at all.
I've also change the destination to a local folder instead of my linked NAS in case it was a permissions issue.
Is there anywhere else to look? Thanks for any help.
Don
Don't get me wrong. I think this is probably the best add-on created for the PICamera Module
But I also have an existing Apache Server running a site already
The install of this basically wiped it out, luckily It was just a couple of test pages.
I am also interested in this. This is a problem if you run more than one site on your Pi.
The alternative might be to run a Primary Server Pi and URL to that through a link.
I will have to test that, but it should work.
It's could create a band width problem though with WiFi, not sure.
Basically, the code needs fixed to run by default and install by default in a sub directory and not take over an existing install of Apache.
It should check if Apache is already installed and leave it's config files alone.
Add what it may need, but don't change settings that may already exist.
Ok,, it appears to do this.
this is great work so far on the Interface.
the installation and how it works in general needs heavy tweaking.
I just don't see the reason for the choices made in how this operates on the back end.
there is no reason for it to work the way it does.
Wiping out Apache plus everything else shouldn't be necessary
nor should it be necessary to reside solely in /var/www or break.
Thanks.
PS. I am not giving up on it just yet.
If some workarounds don't work, then I will I think. maybe. we'll see.