
I have this sort of errors in log, i can add cameras, but none of them are showing preview, and don't work

I have this sort of errors in log, i can add cameras, but none of them are showing preview, and don't work
Keep the default zone apache.conf without the ScriptAlias.
Stop both zoneminder and apache2.
sudo service apache2 stop
sudo service zoneminder stop
Remove any stale sockets from /tmp/zm (default location).
sudo rm -vf /tmp/zm/*.*
Enable cgi in apache.
sudo a2enmod cgi
Start zoneminder.
sudo service zoneminder start
Start apache2.
sudo service apache2 start