I think I'm having a similiar problem, but disabling SELinux and istalling perl module(s) didn't do anything.
When accessing the web interface locally or over te network I get the following error:
Code: Select all
Could not connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
I have used the steps listed to install missing perl module(s).
I used the selinux config file to turn off selinux.
checked status through selinuxconfig:
Code: Select all
#selinuxconfig
selinux state="disabled"
...
I have checked the location of the mysql.sock file. It is confiured through mysql to be at /var/lib/mysql/mysql.sock and is present.
I am wondering if I am using the wrong user or permission setting somewhere in zm or mysqld. I am brand new to zoneminder and am a bit lost.
These are some errors I picked out of /var/log files:
messages:
Code: Select all
May 25 16:04:19 dvr kernel: audit(1117055059.782:0): avc: denied { write } for
pid=17175 exe=/usr/sbin/httpd name=mysql.sock dev=dm-0 ino=796495
scontext=root:system_r:httpd_t tcontext=root:object_r:var_lib_t tclass=sock_file
zmdc.log
Code: Select all
'zmwatch.pl' started at 05/05/25 15:55:02
'zmwatch.pl' starting at 05/05/25 15:55:02, pid = 19406
'zmfilter.pl ' crashed at 05/05/25 15:57:32, exit status 32
'zmfilter.pl' starting at 05/05/25 15:57:32, pid = 19412
'zmfilter.pl' started at 05/05/25 15:57:32
'zmaudit.pl -d 900 -y' crashed at 05/05/25 16:00:25, exit status 32
'zmaudit.pl -d 900 -y' started at 05/05/25 16:00:25
'zmaudit.pl -d 900 -y' starting at 05/05/25 16:00:25, pid = 19426
httpd/error_log
Code: Select all
[client 64.122.61.238] PHP Warning: mysql_pconnect(): Can't connect to local MySQL
server through socket '/var/lib/mysql/mysql.sock' (13) in /usr/lib/zm/html/zm_db.php
on line 21
[client 127.0.0.1] PHP Warning: mysql_pconnect(): Can't connect to local MySQL
server through socket '/var/lib/mysql/mysql.sock' (13) in /usr/lib/zm/html/zm_db.php
on line 21
httpd/access_log
Code: Select all
64.122.61.238 - - [25/May/2005:16:03:58 -0500] "GET /zm/ HTTP/1.1" 200 114 "-"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308"
127.0.0.1 - - [25/May/2005:16:04:17 -0500] "GET /zm HTTP/1.0" 301 303 "-"
"Lynx/2.8.5dev.16 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7a"
mysqld.log
Code: Select all
050525 15:55:00 mysqld started
Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
If you do not want to use transactional InnoDB tables, add a line
skip-innodb
to the [mysqld] section of init parameters in your my.cnf
or my.ini. If you want to use InnoDB tables, add to the [mysqld]
section, for example,
innodb_data_file_path = ibdata1:10M:autoextend
But to get good performance you should adjust for your hardware
the InnoDB startup options listed in section 2 at
http://www.innodb.com/ibman.html
/usr/libexec/mysqld: ready for connections
System:
Fedora Core 3 fresh workstation install
zm-1.21.0-10.FC3.SEL.CTU (with all dependencies)
mysql-server-3.23.58-16.FC3.1
httpd-2.0.52-3.1
httpd, mysqld, and zm services start and stop without errors
Any help would be greatly appreciated. I have run into some walls getting this up and running and can't wait to see it in action on this system.