Page 1 of 1

Cant start Zoneminder, zmfix not found and etc.

Posted: Thu May 26, 2011 9:12 am
by playman
Hey there.
I have no experience with Ubuntu zoneminder or Linux or any programing language except for little HTML
I've been using Windows and MacOs for all my life, but I have fair computer skills.

Alright I've spent the last 4 day's or so setting up zoneminder on Ubuntu with no luck.
I used these instructions to set it up.

Code: Select all

http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_11.04_64-bit_with_ZoneMinder_1.24.x_from_SVN,_FFmpeg,_libjpeg-turbo,_Webmin,_Cambozola
Instead of installing 64bit I installed 32bit and also installed 32bit libjpeg-turbo.
It seemed that the installation went smoothly, but something is wrong.
I was able to follow those instructions all the way until

Code: Select all

#Because Ubuntu clears /tmp for some kind of reason at reboot, 
#the /tmp/zm directory will also be deleted after a reboot. Creation in script/zmdc.in.pl
#will resolve this.

nano scripts/zmdc.pl

#Add following lines (marked with a '+'-sign between the lines given (do not include '+').

foreach my $arg ( @ARGV )
        }
}

+# Create the directory first if it doesn't exist
+mkdir(ZM_PATH_SOCKS);
+

socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" );

my $saddr = sockaddr_un( SOCK_FILE );

#To be sure, add rights to the /tmp/zm directory

chown www-data:www-data -R /tmp/zm
For some reason I cant understand that part :/

Anyway.

As I belive everything is installed and working I tried to start zoneminder,
I get this error

Code: Select all

playman@fjol:~$ service zoneminder start
Starting ZoneMinder: /etc/init.d/zoneminder: 86: zmfix: not found
/etc/init.d/zoneminder: 86: /usr/bin/zmpkg.pl: not found
failure
I tried googling it but with no luck.

This is what I get from http//localhost

Code: Select all

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.
and then

Code: Select all

Not Found

The requested URL /zm was not found on this server.
Apache/2.2.17 (Ubuntu) Server at 192.168.111.140 Port 80

Code: Select all

#In firefox, go to https://YOUR_ZoneMinder.IP.ADDRESS.HERE:10000 to reach the Webmin interface.(Login with Ubuntu username and password)
#In left menu, select System>Bootup and Shutdown. Tick the box next to zm and click StartNow and On Boot.
#In left menu, select Servers>Apache Webserver. Click virtual server under Existing virtual hosts tab. Under Virtual Server Details, change Document Root to /var/www/zm and then save.
#Click apply changes at top left of page.
I was not able to do "/var/www/zm" if I tried I got the error

Code: Select all

Failed to save virtual server : '/var/www/zm' is not a valid document root
So now it's just "/var/www"

Any suggestions and inputs greatly appreciated.

Re: Cant start Zoneminder, zmfix not found and etc.

Posted: Sat May 28, 2011 1:04 am
by DutchAblaze
You need to attach ur ZM install to apache and MySQL, as long as you used Synaptic to install zoneminder along with its 50 or so dependencies this will be the exact command paths....

1.

Code: Select all

 sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zm.conf
2.

Code: Select all

sudo /etc/init.d/apache2 restart
I ran this in Ubuntu 10.04 LTS, highly recommended OS version because of long term support 5 years to be exact.

Re: Cant start Zoneminder, zmfix not found and etc.

Posted: Fri Jun 03, 2011 11:20 am
by playman
Thanks for the reply Dutch,
after trying to use those commands, I ended up in different errors, wich is then I decided to re-format.
maybe i'll try 10.04 next.