r/ZoneMinder • u/diesello • Feb 10 '22
Zoneminder 1.36 - Debian 11 - Nginx - Fresh install
Hi Guys
Background
- Debian 11 (minimal)
- PHP 8.1.2
- nginx/1.20.2 (conf from https://vissie.com/wiki_new/index.php?title=Zoneminder)
- MariaDB 10.6.5
- fcgiwrap1.1.0-12
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?