zm.php not loading

Support and queries relating to all previous versions of ZoneMinder
Locked
mori0276
Posts: 8
Joined: Sat Apr 14, 2007 7:55 pm

zm.php not loading

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What distro/Release did you install ZM on?
How did you configure ZM (./configure)?
mori0276
Posts: 8
Joined: Sat Apr 14, 2007 7:55 pm

Post 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?
Sika
Posts: 29
Joined: Mon Feb 06, 2006 8:21 am
Location: New Zealand

Post by Sika »

Have you made sure that apache, mysql & ZM are all running?

Sika
mori0276
Posts: 8
Joined: Sat Apr 14, 2007 7:55 pm

Post 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).
mori0276
Posts: 8
Joined: Sat Apr 14, 2007 7:55 pm

Post 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.
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post 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.
if common sense is so uncommon, why is it called common then?
mori0276
Posts: 8
Joined: Sat Apr 14, 2007 7:55 pm

Post 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.
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post 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?
if common sense is so uncommon, why is it called common then?
mori0276
Posts: 8
Joined: Sat Apr 14, 2007 7:55 pm

Post 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
Locked