fresh 64bit centos install - no zm main page displaying

Support and queries relating to all previous versions of ZoneMinder
Locked
bjoyce
Posts: 14
Joined: Mon Mar 13, 2006 5:03 am

fresh 64bit centos install - no zm main page displaying

Post by bjoyce »

Hi,
Hope you can help. I am stuck with what to do next. I have done the follwoing.

I have intalled centos 64 bit to see it will improve performance of ZM the first line in dmesg reads
Linux version 2.6.18-53.el5 (mockbuild@builder6.centos.org) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Mon Nov 12 02:14:55 EST 2007

I followed the how to install on centos located http://www.zoneminder.com/wiki/index.php/CentOS

I had the following glitches:
1. when I went to configure zm it said I had no mysql.o file, I fixed this by using rpm -e on mysql and mysql server and added them all again using yum install mysql, mysql-server and mysql-devel
2. The next glitch was with gnutls, i followed the same steps using rpm to remove the program and add it again with yum install gnutls-devel
3. Next was the error zm requires libmysqlclient.a which i found the fix to in the installing with centos doco. (URL above)

./configure then went through with out errors.

unfortunately after doing all the rest of the steps in the doco I have a appache page at http://ipaddress of my server but nothing at http://ipaddress of my server/zm Its totally blank

the error in the /var/log/httpd/errors.log says this.

[Wed Oct 29 19:03:25 2008] [error] [client 10.220.2.1] PHP Fatal error: Call to undefined function mysql_pconnect() in /var/www/html/zm/zm_db.php on line 27

This line is connecting to mysql.

I have checked if i can open mysql with
mysql -u zm_user -p
with the zm_pass I used in the ./configure line and it logs on to mysql with no problem.

the ./configure line i used is this.
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm_user ZM_DB_PASS=zm_pass --with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql"

The line I used in mysql is this
grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to zm_user@localhost;
SET PASSWORD FOR zm_user@localhost=PASSWORD('zm_pass');


So now I'm stuck. any suggestions?
throwgood
Posts: 18
Joined: Mon Oct 27, 2008 10:33 pm

Post by throwgood »

sounds like you need php-mysql installed.

zmsystem@~]$ yum list installed | grep php
php.x86_64 5.1.6-20.el5_2.1 installed
php-cli.x86_64 5.1.6-20.el5_2.1 installed
php-common.x86_64 5.1.6-20.el5_2.1 installed
php-gd.x86_64 5.1.6-20.el5_2.1 installed
php-mysql.x86_64 5.1.6-20.el5_2.1 installed
php-pdo.x86_64 5.1.6-20.el5_2.1 installed
bjoyce
Posts: 14
Joined: Mon Mar 13, 2006 5:03 am

Post by bjoyce »

Great thanks that fixed it,

did the following
yum install php-gd
yum install php-mysql
service httpd restart


and zm page is up

thanks :D
Locked