Paths and disappearing events

Forum for questions and support relating to the 1.29.x releases only.
jHeron
Posts: 73
Joined: Sun Jun 16, 2013 5:06 pm

Re: Paths and disappearing events

Post by jHeron »

Thanks knnniggett!
This was inadvertently updated from .28 to .29 due to me being a sleep at the dnf update switch...
I will look into what causes a ScriptAlias conflict and see if I can figure it out what the problem is.
If not, is there a reliable way to purge everything and start over? It seems to me this was problematic in the past...
Cheers,
Jon
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Paths and disappearing events

Post by knight-of-ni »

Without knowing what else you've installed and how you've been using this machine for other purposes, it is hard to tell you exactly how to fix it.
You may not remember everything you've installed in the past (happens to all of us).

To see all of your ScriptAlias' do this:

Code: Select all

cd /etc/httpd/
grep -r ScriptAlias ./
What you are looking for is a ScriptAlias such as /path/to/some/cgi-bin followed by a second ScriptAlias that looks like /path/to/some/cgi-bin/subfolder. See how they overlap? This can be harder than is sounds because every ScriptAlias is going to be in its own config file. If I recall Apache calls the config files in alphabetical order.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
jHeron
Posts: 73
Joined: Sun Jun 16, 2013 5:06 pm

Re: Paths and disappearing events

Post by jHeron »

Awesome thanks!
It appears that there is only 2 ScriptAlias's to worry about as the rest are commented out.

Code: Select all

[pvr@localhost ~] $ cd /etc/httpd/
[pvr@localhost httpd] $ grep -r ScriptAlias ./

./conf/httpd.conf:    # ScriptAlias: This controls which directories contain server scripts. 
./conf/httpd.conf:    # ScriptAliases are essentially the same as Aliases, except that
./conf/httpd.conf:    # client.  The same rules about trailing "/" apply to ScriptAlias
./conf/httpd.conf:    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
./conf/httpd.conf:# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
./conf/httpd.conf:    # To use CGI scripts outside of ScriptAliased directories:
./conf.d/zoneminder.conf:ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"
I am in over my head here but I tried commenting out the alias listed above in the http.conf file and restarted everything with no joy and the same issues in the apache error log.
There is also this Alias in the zoneminder.conf:

Code: Select all

./conf.d/zoneminder.conf:Alias /zm "/usr/share/zoneminder/www"
I am off to read about Alias and ScriptAlias to see if I can understand what these are and if this is a problem. :)
I use this machine as my PVR utilizing mythtv and kodi as well as my zm security cam setup. Other than that the kids have some games, Steam etc thats about it.
Here is the list of files from httpd/conf.d;

Code: Select all

autoindex.conf  mythweb.conf  README    userdir.conf  zoneminder.conf
mod_dnssd.conf  php.conf      ssl.conf  welcome.conf
Cheers,
Jon
Locked