Page 1 of 1

Web GUI troubles on Slackware

Posted: Thu Jan 20, 2022 11:30 pm
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 ?

Re: Web GUI troubles on Slackware

Posted: Sat Jan 29, 2022 3:08 pm
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>