To build ZoneMinder the first thing you need to do is run the included configure script to define some initial configuration. If you are happy with the default settings for the database host (‘localhost’), name (‘zm’), user (‘zmuser’) and password (‘zmpass’) then you can just type
./configure --with-webdir=<your web directory> --with-cgidir=<your cgi directory> where
--with-webdir is the directory to which you want to install the PHP files, and
--with-cgidir is the directory to which you want to install CGI files. These directories could be
/var/www/html/zm and
/var/www/cgi-bin for example.
If you want to override any of the default database values then you can append them to the configure command, for example to use a database password of ‘zmnewpass’ do
./configure --with-webdir=<your web directory> --with-cgidir=<your cgi directory> ZM_DB_PASS=zmnewpass and so on. The values you can use are ZM_DB_HOST, ZM_DB_NAME, ZM_DB_USER and ZM_DB_PASS. Other than the database name, which is substituted into the database creation script, these values can easily be changed after this step.
Bookmarks