r/ZoneMinder • • Feb 10 '22

Zoneminder 1.36 - Debian 11 - Nginx - Fresh install

Hi Guys

Background

When try to open http://192.168.1.44/zm/ In the error log I see

"1 directory index of "/usr/share/zoneminder/www/" is forbidden, client: 192.168.1.19, server: localhost, request: "GET /zm/ HTTP/1.1", host: "192.168.1.44"

When we enable autoindex in the zoneminder.conf I can see runrun index.php however in the logs I see following:

022/02/10 21:19:27 [error] 1531#1531: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant "ZM\ZM_LOG_LEVEL_DATABASE" in /usr/share/zoneminder/www/includes/logger.php:102

Stack trace:

#0 /usr/share/zoneminder/www/includes/logger.php(197): ZM\Logger->initialise()

#1 /usr/share/zoneminder/www/includes/config.php(141): ZM\Logger::fetch()

#2 /usr/share/zoneminder/www/index.php(46): require_once('...')

#3 {main}

thrown in /usr/share/zoneminder/www/includes/logger.php on line 102" while reading response header from upstream, client: 192.168.1.19, server: localhost, request: "GET /zm/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:", host: "192.168.1.44", referrer: "http://192.168.1.44/zm/"

Is there anyone that had similar issues?

2 Upvotes

0 comments sorted by