ZM fresh install on FC4

Support and queries relating to all previous versions of ZoneMinder
Locked
stresshead
Posts: 5
Joined: Thu Dec 30, 2004 9:38 am

ZM fresh install on FC4

Post by stresshead »

I've just installed ZM latest version onto a fresh install of Fedora Core 4. After a few teething troubles I've managed to get the zm service started without errors but when i try to view trhe zm page, i just get a blank page and no option to add monitors etc. Can anybody shed any light on this for me.

My /var/log/httpd/error_log has the following lines:

[client 172.31.3.43] PHP Fatal error: Call to undefined function mysql_pconnect() in /var/www/html/zm/zm_db.php on line 21
[Fri Jul 01 13:29:27 2005] [error] [client 172.31.3.43] File does not exist: /var/www/html/favicon.ico


Cheers in advance,

Lee
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have a look at this thread.

Phil
stresshead
Posts: 5
Joined: Thu Dec 30, 2004 9:38 am

Post by stresshead »

Sorted...well sort of. I have now got the zoneminder service running but when i connect to the webpage, the status at the top lists as STOPPED. If I click on this and try and start this, it appears to make changes but never changes the status and no error appears in the httpd logs. The stranger thing is, zoneminder is actually working, I have 1 monitor ser up and I can access it. Any ideas anyone?

Cheers,

Lee.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

FC4 is using PHP5 and MySQL4, You need to configure php to be capatable with the zend1 engine.
Regards,
Cordel
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
proxorp
Posts: 9
Joined: Wed Feb 23, 2005 8:43 pm

Post by proxorp »

Thanks Cordel,
Your previous post just solved 4 hrs of agonizing debug. Everything was running perfect on the server side, but client side wouldn't show correct status (Zoneminder Running/Stopped/ etc...).

The simple fix:
Ensure /etc/php.ini has this line set to On.

Code: Select all

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = On
FYI, I'm running:
Fedora Core 4 2.6.14-1.1637_FC4
MySQL version 4.1.11
Apache 2.0.54
ZM v1.21.4

Hopefully others will find the post sooner than I did.
David.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for letting us know. This sort of thing is useful for when people do searches before asking, which does happen sometimes :lol:

Phil
Locked