I finally got ZoneMinder to build on Arch64... the makeflags were preventing the build from completing... disabling in the PKGBUILD via options=('!makeflags') allowed the build to complete. After installed the package I was prompted to do the following:
Note:
==> To initialize the ZoneMinder database run (as root)
==> /usr/lib/zm/bin/zminit
==> You must edit /etc/php/php.ini and uncomment "extension=mysql.so"
==> so php and MySQL can play together.
==> You must edit /etc/php/php.ini and set short_open_tag = On
==> or ZoneMinder will not work
==> You must edit /etc/php/php.ini and add to it open_basedir "/etc/" as such:
==> open_basedir = /home/:/tmp/:/usr/share/pear/:/etc/
==> Otherwise ZoneMinder will be unable to read /etc/zm.conf
Note:
==> You must edit /etc/httpd/conf/httpd.conf and uncomment the line
==> #LoadModule php5_module modules/libphp5.so
==> You must edit /etc/httpd/conf/httpd.conf
==> and add this line:
==> Include /etc/httpd/conf/extra/httpd-zm.conf
The only issue I am having is that I /usr/lib/zm/bin/zminit seems to not be setting up the database correctly. Attempting to start zm after runing zminit prompts me to run zminit again. I have httpd started... plus what I believe are all the run-time dependencies. Any suggestions are appreciated.
[*******@******-desktop ~]$ sudo /usr/lib/zm/bin/zminit
Password:
Enter MySQL Administrator username
(Default: root and password is blank)
MySQL Admin: root
Password: *****
A zm database exists, but the version is unknown
Updating is unlikely to succeed
Choose one of the following options: pdate the database
[D]rop the old database and reinitialize
[E]xit and do nothing
D
ERROR 1175 (HY000) at line 593: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/site_perl/5.10.0/ZoneMinder/Debug.pm line 265.
Compilation failed in require at /usr/lib/zm/bin/zmupdate.pl line 50.
BEGIN failed--compilation aborted at /usr/lib/zm/bin/zmupdate.pl line 50.
Last edited by ugkbunb on Sun Apr 05, 2009 5:09 pm, edited 1 time in total.
First, did you build using the 1.24.1 or svn PKGBUILD?
Does /etc/zm.conf have 'ZM_VERSION=1.24.1' ?
Would you pleases try dropping the zm database manually and running zminit again?
If this still fails report if any different error shows.
As a last resort you should be able to create the database by doing "mysql -u root -p < /usr/lib/zm/upgrade/zm_create.sql" and then creating the zmuser manually.
I'm glad to see someone building for 64. When we get this sorted would you send me a package to host for others?
I am using zm 1.24.1 PKGBUILD. I am unable to build the svn version... even with disabling makeflags the build errors before completion.
Dropping the database manually and re-running zminit led to the same error posted above. Commenting out safe-updates and restarting mysqld allow zminit to complete without errors. Now however when I point my browser to http://localhost/zm
I get the following:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Sun Apr 5 00:48:30 2009
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2
Double checked and mysqld httpd as well as zm are all running. Any help is appreciated. Thanks for the help so far.
//
// ZoneMinder main web interface file, $Date: 2008-09-26 10:47:20 +0100 (Fri, 26 Sep 2008) $, $Revision: 2632 $
// Copyright (C) 2001-2008 Philip Coombes
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
error_reporting( E_ALL );
$debug = false;
if ( $debug )
{
// Use these for debugging, though not both at once!
phpinfo( INFO_VARIABLES );
//error_reporting( E_ALL );
}
// Use new style autoglobals where possible
if ( version_compare( phpversion(), "4.1.0", "<") )
{
$_SESSION = &$HTTP_SESSION_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
}
I restarted my httpd, zm, and firefox. http://localhost/zm still complains about lack of access and http://localhost/zm/index.php still brings up the above text. Any ideas on what to try next?
However when navigate to index.php it still views the file instead of executing it.
Be sure you aren't viewing a cached (by firefox) page.
If you set "browser.cache.check_doc_frequency;1" using the 'about:config' function in firefox it will also prevent some problems with viewing streams in zoneminder.
oops I feel like a moron! thanks : ) could of sworn I hit refresh. yah both are working as they should. hopefully this thread can help others if they run into the same issue.