LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-28-2012, 08:57 AM   #1
g4ry
LQ Newbie
 
Registered: Dec 2012
Posts: 20

Rep: Reputation: Disabled
motion the correct path


I've installed motion on my pc and edited the config file but one error I don't know how to solve. When I run motion without daemon on I get this error "create pathroblem creating directory /usr/local/apache2: Permission denied". I think the correct path should be /var/www/ but I can't find where to point it towards in the config file.

Thanks.
 
Old 12-28-2012, 10:22 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,204
Blog Entries: 3

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
Member Response

Hi,

Hopefully you used the Slackbuilds motion package;
Quote:
From README

Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed. Or in other words, it can detect motion. Motion is a command line based tool. It has no graphical user interface. Everything is setup via the command line or via a set of configuration files. Optional dependencies are ffmpeg and postgresql. Once installed, please be sure to read /usr/doc/motion-3.2.11/README for any configuration help. You will need to rename /etc/motion-dist.conf to /etc/motion.conf once you have made the changes you deem necessary. This build has not been tested with the optional postgresql included, but you're welcome to give it a go!
Please note the underlined sentence(s) above.
HTH!
 
Old 12-28-2012, 10:52 AM   #3
g4ry
LQ Newbie
 
Registered: Dec 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Hi onebuck, yes I have renamed the file, but in the file I can't find no where to point motion to the correct path for Apache.
 
Old 12-28-2012, 02:05 PM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
have you tried
Code:
grep -n apache2 /etc/motion.conf
(the -n option of grep adds the line number to the results)

Last edited by ponce; 12-28-2012 at 02:08 PM.
 
1 members found this post helpful.
Old 12-29-2012, 10:04 AM   #5
g4ry
LQ Newbie
 
Registered: Dec 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks ponce, would the correct path be /var/www/htdocs?
 
Old 12-29-2012, 12:54 PM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
Quote:
Originally Posted by g4ry View Post
Thanks ponce, would the correct path be /var/www/htdocs?
that is the target dir where it saves the snapshot images/movies, so any directory owned by the user that started motion will do.

it's not essential for it to be under /var/www/htdocs, as it is useful only to use the browser to check the saved images/movies, but needs an active webserver.
if you have access to that folder, you can also use an image viewer or a video player locally to see them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is correct path to C compiler NeilJones Mandriva 6 04-29-2008 09:48 AM
jdk not in correct path angryfirelord Slackware 6 04-08-2007 10:14 AM
which is the correct directory path? verbatim Programming 1 04-24-2005 11:22 PM
please tell me if my path statement is correct on RH 7.3 ergo_sum Linux - Newbie 9 12-12-2003 11:41 PM


All times are GMT -5. The time now is 09:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration