sudo mysql -uroot -p Enter your MySQL root password (default is blank in Kali Linux). Then, create a new database and user:
CREATE DATABASE zm; CREATE USER 'zmuser'@'%' IDENTIFIED BY 'zmuser'; GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'%'; FLUSH PRIVILEGES; EXIT; Download the ZoneMinder package from the official repository:
sudo apt-get install -y apache2 mysql-server php libapache2-mod-php7.4 php-mysql This command installs Apache2, MySQL, PHP, and other required packages. Create a new MySQL database and user for ZoneMinder:
Alias /zm /var/www/zoneminder <Directory /var/www/zoneminder> Options -Indexes AllowOverride All Require all granted </Directory> Enable the new configuration:
sudo service apache2 restart Initialize the ZoneMinder database:
wget https://github.com/ZoneMinder/ZoneMinder/releases/download/v1.36.32/zoneminder_1.36.32-1_all.deb Install the package using dpkg:









