Ubuntu Dapper install guide
Hi Phil - having only basic linux knowledge i am struggling a bit with this.
here is the output
zmuser@garyg-desktop:~$ ls -ld /var/www/zm/graphics
ls: /var/www/zm/graphics: Not a directory
I think i may revert back to installing Ubuntu and starting from scratch again
any further advise is appreciated
here is the output
zmuser@garyg-desktop:~$ ls -ld /var/www/zm/graphics
ls: /var/www/zm/graphics: Not a directory
I think i may revert back to installing Ubuntu and starting from scratch again
any further advise is appreciated
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
This thread has been extremely helpful to me for getting this installed and somewhat running, but I've run into a problem.
ZM is installed in the www directory and when I navigate to http://localhost/zm/ all I get is a message saying "Could not select database: Unknown database 'zm'". So, I checked out what phpMyAdmin has to say, and it's only got the "information_schema" database, and no zm database.
So I manually created the zm database, but that only does me so much good since it's empty - duh. This is what the login page spits out: "Table 'zm.Config' doesn't exist
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/zm/zm_config.php on line 169"
Where do I go from here to get the database populated?
ZM is installed in the www directory and when I navigate to http://localhost/zm/ all I get is a message saying "Could not select database: Unknown database 'zm'". So, I checked out what phpMyAdmin has to say, and it's only got the "information_schema" database, and no zm database.
So I manually created the zm database, but that only does me so much good since it's empty - duh. This is what the login page spits out: "Table 'zm.Config' doesn't exist
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/zm/zm_config.php on line 169"
Where do I go from here to get the database populated?
See the README:
Regards,
Corey
If you already created the zm database you might have to delete it first mysqladmin drop zm and then the above syntax should work just fine.5. Installation
For a new installation the next thing you will need to do is create your database and database users. So type the commands as follows,
mysql mysql < db/zm_create.sql
mysql mysql
grant select,insert,update,delete on <database name>.* to '<database user>'@localhost identified by '<database password>';
quit
mysqladmin reload
Regards,
Corey
I have already done this part, so now I have an empty database and a username to log on to it with. What do I do next? DO I populate the database with data now, or do I leave it empty and just tell ZM somehow what my username and password are?cordel wrote:See the README:
If you already created the zm database you might have to delete it first mysqladmin drop zm and then the above syntax should work just fine.5. Installation
For a new installation the next thing you will need to do is create your database and database users. So type the commands as follows,
mysql mysql < db/zm_create.sql
mysql mysql
grant select,insert,update,delete on <database name>.* to '<database user>'@localhost identified by '<database password>';
quit
mysqladmin reload
Regards,
Corey
Use this way and it will work.R2D2 wrote:This was my installation way. --> works fine
Add these lines in /etc/apt/source.list
#
# deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted
deb http://de.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ dapper main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://de.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://de.archive.ubuntu.com/ubuntu/ dapper universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
apt-get update
apt-get install apache2 php5 php5-mysql libapache2-mod-auth-mysql mysql-server g++ make netpbm libssl-dev libjpeg62-dev libmime-perl libwww-perl libarchive-tar-perl libdate-manip-perl libarchive-zip-perl libmime-lite-perl libdbi-perl libdbd-mysql-perl libpcre3-dev libmysqlclient12-dev libcurl3-openssl-dev libjpeg-mmx-dev liblwp-protocol-http-socketunix-perl phpmyadmin mc ffmpeg xawtv xinetd samba swat
(~ 97,5 MB)
/etc/init.d/apache2 restart
Download ZM
cd /usr/local/src
wget http://www2.zoneminder.com/downloads/Zo ... 2.2.tar.gz
tar -xvzf ZoneMinder-1.22.2.tar.gz
cd ZoneMinder-1.22.2
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data
mysql
mysql < db/zm_create.sql
mysql mysql
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';
mysql> quit
mysqladmin reload
make install
and finally....
connect to http://your-zm-machine/zm
Change this options
System/ZM_AUTH_RELAY - none
Cambozola
cd /usr/local/src
apt-get install ant
wget http://www.charliemouse.com/code/camboz ... est.tar.gz
tar xvfz cambozola-latest.tar.gz
cp /usr/local/src/cambozola-0.68/dist/cambozola.jar /var/www/zm
chmod 775 /var/www/zm/cambozola.jar
Then under the tools or Images tab (depending on the version) enable ZM_OPT_CAMBOZOLA
Thats the method I used actually, I tried the way in the Wiki first and it didn't work and it installed it in some other directory, so I tried this way and its gotten me farther.
The only thing I haven't done yet is the Cambozola, but I would imagine that has little to do with my database being empty.
Once again I ask: how do I populate my database?? It is empty! Any ideas?
The only thing I haven't done yet is the Cambozola, but I would imagine that has little to do with my database being empty.
Once again I ask: how do I populate my database?? It is empty! Any ideas?
mysqlcbarr wrote:Thats the method I used actually, I tried the way in the Wiki first and it didn't work and it installed it in some other directory, so I tried this way and its gotten me farther.
The only thing I haven't done yet is the Cambozola, but I would imagine that has little to do with my database being empty.
Once again I ask: how do I populate my database?? It is empty! Any ideas?
mysql < db/zm_create.sql
mysql mysql
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';
mysql> quit
mysqladmin reload
lol ok ok - I know, it should create it but it doesn't. I also have to use sudo to get the mysql command to work.
Code: Select all
chris@home-security:~$ sudo mysql
Password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 5.0.22-Debian_0ubuntu6.06.2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> mysql < db/zm_create.sql
-> mysql mysql
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';
Query OK, 0 rows affected (0.12 sec)
mysql> quit
Bye
Last edited by cbarr on Mon Oct 23, 2006 10:49 pm, edited 1 time in total.