Zoneminder console

Support and queries relating to all previous versions of ZoneMinder
Locked
keyzer_soze
Posts: 5
Joined: Sat May 01, 2004 2:56 am

Zoneminder console

Post by keyzer_soze »

First...Thanks to Phillip for a great Linux CCTV solution.

Here is the problem:

I just finished installing Zoneminder on a Redhat9 Disto. Followed the instructions in the README and everything went relatively smooth. Usually able to solve most issues by checking this forum or doing a google search.

I'm at the point where it is now telling me to "point my browser to zm.php and off you go" Well...i'm not off the ground yet.

When I point my browser to this location all I get is a blank page. No ZM console. I have PHP installed. Using browser Mozilla 1.4.2

How can I be sure that the Zoneminder services are running? I'm a bit of a Linux newbie, forgive me if I'm missing something completely obvious.

Thanks for your help.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

A couple of things to try

1) Although the page looks blank, try doing a 'view source' on it, you might find there's something hidden there.

2) Try going to the ZM directory and just doing 'php zm.php' (assuming your php can run fromt he command line). See what, if anything, emerges.

Phil,
keyzer_soze
Posts: 5
Joined: Sat May 01, 2004 2:56 am

Post by keyzer_soze »

I was able to to view the page source as well as do a 'PHP zm.php' from the ZM directory.

Here is what emerged:

When running PHP zm.php it said on one line: "<script language="JavaScript">"

Could it be as simple as having java installed and enabled? If so...oops.

If I'm way off base I find out in a bit....thanks
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You do not need Java for most of ZM, aside from streaming on IE, JavScript is something else entirely and will normally be enabled.

What do you see when you view source or run it from the command line?
keyzer_soze
Posts: 5
Joined: Sat May 01, 2004 2:56 am

Post by keyzer_soze »

This is what I see when I run zm.php from the command line:

X-Powered-By: PHP/4.2.2
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Sat, 01 May 2004 20:16:56 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html

<html>
<head>
<title>ZM - Console</title>
<link rel="stylesheet" href="zm_styles.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="image/ico" href="favicon.ico">
<script language="JavaScript">
window.resizeTo( 720, 540 );
function newWindow(Url,Name,Width,Height)
{
var Name = window.open(Url,Name,"resizable,width="+Width+",height="+Heig
ht);
}
function scrollWindow(Url,Name,Width,Height)
{
var Name = window.open(Url,Name,"resizable,scrollbars,width="+Width+",he
ight="+Height);
}
function configureButton(form,name)
{
var checked = false;
for (var i = 0; i < form.elements.length; i++)
{
if ( form.elements.name.indexOf(name) == 0)
{
if ( form.elements.checked )
{
checked = true;
break;
}
}
}
form.delete_btn.disabled = !checked;
}
function confirmDelete()
{
return( confirm( 'Warning, deleting a monitor also deletes all events an
d database entries associated with it.\nAre you sure you wish to delete?' ) );
}
window.setTimeout( "window.location.replace('')", 300000 );
</script>
</head>
<body scroll="auto">
<table align="center" border="0" cellspacing="2" cellpadding="2" width="96%">
<tr>
<td class="smallhead" align="left">Sat 1st May, 2:16pm</td>
<td class="bighead" align="center"><strong><a href="http://www.zoneminder.com" t
arget="ZoneMinder">ZoneMinder</a> Console - <a href="javascript: newWindow( '?vi
ew=state', 'zmState', 300, 120 );">Stopped</a> - <a href="javascript: newWindow(
'?view=version', 'zmVersion', 320, 140 );">v1.19.2</a></strong></td>
<td class="smallhead" align="right">Load: 0.27 / Disk: 14%</td>
</tr>
<tr>
<td class="smallhead" align="left">
0 Monitors</td>
<td class="smallhead" align="center">Configured for&nbsp;<a href="javascript: ne
wWindow( '?view=bandwidth', 'zmBandwidth', 200, 90);">low</a> bandwidth</td>
<td class="smallhead" align="right"><a href="javascript: newWindow( '?view=optio
ns', 'zmOptions', 760, 480 );">Options</a></td>
</tr>
</table>
<table align="center" border="0" cellspacing="2" cellpadding="2" width="96%">
<form name="monitor_form" method="get" action="" onSubmit="return(confirmDelete(
));">
<input type="hidden" name="view" value="console">
<input type="hidden" name="action" value="delete">
<tr><td align="left" class="smallhead">Id</td>
<td align="left" class="smallhead">Name</td>
<td align="left" class="smallhead">Function</td>
<td align="left" class="smallhead">Source</td>
<td align="right" class="smallhead">Events</td>
<td align="right" class="smallhead">Hour</td>
<td align="right" class="smallhead">Day</td>
<td align="right" class="smallhead">Week</td>
<td align="right" class="smallhead">Month</td>
<td align="right" class="smallhead">Archive</td>
<td align="right" class="smallhead">Zones</td>
<td align="center" class="smallhead">Mark</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="Refresh" class="form" onClick="javascript: location.
reload(true);">
</td>
<td colspan="2" align="center">
<input type="button" value="Add New Monitor" class="form" onClick="javascript: n
ewWindow( '?view=monitor', 'zmMonitor', 360, 300);">
</td>
<td align="right" class="text"><a href="javascript: scrollWindow( '?view=events&
page=1&filter=1&trms=1&attr1=Archived&val1=0', 'zmEvents', 720, 480 );">0</a></t
d>
<td align="right" class="text"><a href="javascript: scrollWindow( '?view=events&
page=1&filter=1&trms=2&attr1=Archived&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&
val2=-1+hour', 'zmEvents', 720, 480 );">0</a></td>
<td align="right" class="text"><a href="javascript: scrollWindow( '?view=events&
page=1&filter=1&trms=2&attr1=Archived&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&
val2=-1+day', 'zmEvents', 720, 480 );">0</a></td>
<td align="right" class="text"><a href="javascript: scrollWindow( '?view=events&
page=1&filter=1&trms=2&attr1=Archived&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&
val2=-1+week', 'zmEvents', 720, 480 );">0</a></td>
<td align="right" class="text"><a href="javascript: scrollWindow( '?view=events&
page=1&filter=1&trms=2&attr1=Archived&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&
val2=-1+month', 'zmEvents', 720, 480 );">0</a></td>
<td align="right" class="text"><a href="javascript: scrollWindow( '?view=events&
page=1&filter=1&trms=1&attr1=Archived&val1=1', 'zmEvents', 720, 480 );">0</a></t
d>
<td align="right" class="text">0</td>
<td align="center"><input type="submit" name="delete_btn" value="Delete" class="
form" disabled></td>
</tr>
</form>
</table>
</body>
</html>
keyzer_soze
Posts: 5
Joined: Sat May 01, 2004 2:56 am

Post by keyzer_soze »

Sorry Philip...it was something completely obvious.

I created a test.php file and dumped it into the DocumentRoot to make sure apache and PHP were working. The test php file worked perfectly. That's when I realized I did not edit the httpd.conf file to tell it where the ZM files are.

Zoneminder is up and running perfectly now.
Locked