Page 1 of 1
zm.php not loading
Posted: Sat Apr 14, 2007 8:02 pm
by mori0276
Hello,
I'm a noobie to ZM and the Linux world in general. I just recently installed Zone Minder and everything seems to be in order. However, when I go to
http://LOCALHOST/zm/index.php all that loads up is a blank screen. Any ideas? (Its probably something easy that I am just overlooking.)
Thank you,
Ben
Posted: Sat Apr 14, 2007 9:09 pm
by cordel
What distro/Release did you install ZM on?
How did you configure ZM (./configure)?
Posted: Sun Apr 15, 2007 12:14 am
by mori0276
Fedora Core 5
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin
...is there a way I can make sure I typed these in correctly? Where are these values stored?
Posted: Sun Apr 15, 2007 5:43 am
by Sika
Have you made sure that apache, mysql & ZM are all running?
Sika
Posted: Sun Apr 15, 2007 2:52 pm
by mori0276
Yes, I set-up a test page with Apache, and was able to get to it just fine. And I got into the MySQL> prompt and everything looks to be in order there (I did a SHOW DATABASES and found my ZM database listed).
Posted: Sun Apr 15, 2007 2:58 pm
by mori0276
Out of curiosity, it wouldn't load up a blank page if it wasn't running would it? I would assume it would give me a page about "page not found" or something like that. It just loads up a blank page, no error message or anything.
Posted: Sun Apr 15, 2007 5:08 pm
by W.
what shows up in /var/log/httpd/error_log when you try to access ZM?
wild guess - no access rights on mysql zm db granted to zm user.
Posted: Sun Apr 15, 2007 5:38 pm
by mori0276
This is the error that it generates:
[Sun Apr 15 12:44:20 2007] [error] [client 10.1.21.39] PHP Fatal error: Call to undefined function mysql_pconnect() in /var/www/html/zm/zm_db.php on line 21
Any ideas? I am quite certain I set the permissions correctly for zmuser/zmpass.
Posted: Sun Apr 15, 2007 7:14 pm
by W.
run "rpm -q php-mysql" and if it says package not installed, try yum install php-mysql. you did install php from packages, didn't you?
Posted: Sun Apr 15, 2007 11:09 pm
by mori0276
Awesome! Thank you so much! I just didn't have PHP installed. So, as you suggested, I ran:
# yum install php-mysql
Restarted my services
# /sbin/service httpd restart
# /sbin/service mysqld restart
And voila! ZM console pops up. Thanks again!
---Ben