Web GUI troubles on Slackware

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
saxa
Posts: 3
Joined: Thu Jan 16, 2020 8:58 pm

Web GUI troubles on Slackware

Post by saxa »

Hi, I have a custom build of ZM 1.36.12 on slackware 15, but some time ago IIRC, after the upgrade from 1.32.x to 1.35 the web gui
stopped to work on my apache.
Most probably some apache config have to be redone. To make long story short , when I login I just see the "Logging in" white page.
in the URL I only see http://localhost/? if I change this to http://localhost/index.php?view=montage I can view the cameras but all is
like it doesnt find the correct locations of where the web pages are.

I have installed the web stuff under /srv/httpd/htdocs/zm
CGI stuff is at /srv/httpd/cgi-bin
and this is it.

Can somebody tell me whats is missing ? Or how should I start to debug this ?
saxa
Posts: 3
Joined: Thu Jan 16, 2020 8:58 pm

Re: Web GUI troubles on Slackware

Post by saxa »

Ok, took a bit of time to check it and I solved it. It seems I had a missing section for the /var/cache/ZoneMinder folder.
So now it seems it works well.
Here is the virtual host section now working.

Code: Select all

<VirtualHost *:80>
	ServerAdmin webmaster@cams.example.com
	ServerName cams.example.com
	ServerAlias cams.example.com
	ErrorLog "/var/log/httpd/cams.example.com-error_log"
	CustomLog "/var/log/httpd/cams.example.com-access_log" common
        DocumentRoot /srv/httpd/htdocs/zm
	Alias /cache "/var/cache/ZoneMinder"
        ScriptAlias /cgi-bin/ /srv/httpd/cgi-bin/

	<Directory "/var/cache/ZoneMinder">
	    Options -Indexes +MultiViews +FollowSymLinks 
	    AllowOverride None
	    Require all granted
	</Directory>
	
        <Directory "/srv/httpd/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Require all granted
        </Directory>

	<Directory "/srv/httpd/htdocs/zm/">
	    Options Indexes FollowSymLinks Includes ExecCGI
	    AllowOverride None
	    Require all granted
	</Directory>
</VirtualHost>
Post Reply