can't get zm working

Support and queries relating to all previous versions of ZoneMinder
Locked
JoeyF
Posts: 8
Joined: Tue Jun 22, 2004 11:13 am

can't get zm working

Post by JoeyF »

Hi, it's me again.

Why am I not able to get zm working?
I'm shure it's my fault but ... let's start from the beginning:

I configured and installed zm without any error message.
When I call "localhost/zm" in my browser I get following result:

"Fatal error: Call to undefined function: session_start() in /srv/www/htdocs/zm/zm_html.php on line 34"

Has anyone an idea what I made wrong?
Thanks for your help

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

Post by zoneminder »

Hi,

What version of php do you have? The session_start function should be present in all versions from 4 onwards.

Phil,
JoeyF
Posts: 8
Joined: Tue Jun 22, 2004 11:13 am

Post by JoeyF »

Hi Phil,

I have
Apache 2.0.49
PHP 4.3.4
MySQL 4.0.18
ZM 1.19.4
installed.

Do you need any further info?

Josef
pchan
Posts: 50
Joined: Thu Jan 15, 2004 9:38 pm

Post by pchan »

Is Apache setup to respond to PHP files?
JoeyF
Posts: 8
Joined: Tue Jun 22, 2004 11:13 am

Post by JoeyF »

Hi pchan,

I can select other php sites without any problem.
I can select PHPMyAdmin.
How can I check if Apache setup to respond to PHP files?
I haven't worked with apache or mysql before.

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

Post by zoneminder »

Can you create a small file, called say debug.php and just put the following lines in it

<?php
phpinfo();
?>

then put the file into the ZM web directory and access it. Perhaps you could initially have a look and make sure nothing odd appears and then maybe post what you see, if it's not too big and doesn't have anythign sensitive in it.

Phil,
JoeyF
Posts: 8
Joined: Tue Jun 22, 2004 11:13 am

Post by JoeyF »

Hi Phil,

I'm at work now, but as soon as I'm on my computer I will do as you told me.

Josef
JoeyF
Posts: 8
Joined: Tue Jun 22, 2004 11:13 am

Post by JoeyF »

Hi Phil,

I wasn't even able to get debug.php to work. I only received the source code. After reinstallation of php and rebooting it finally worked. Now I can get zm working. At the moment I still have a problem with

Jun 29 13:54:01 josef zmu[8563]: ERR [Can't shmget: Invalid argument]
Jun 29 13:54:04 josef zmc-d0[8567]: INF [Debug Level = 0, Debug Log = ]
Jun 29 13:54:04 josef zmc-d0[8567]: ERR [Can't shmget: Invalid argument]
Jun 29 13:54:05 josef zma-m1[8569]: INF [Debug Level = 0, Debug Log = ]
Jun 29 13:54:06 josef zma-m1[8569]: ERR [Can't shmget: Invalid argument]
Jun 29 13:54:12 josef zmu[8571]: ERR [Can't shmget: Invalid argument]

but I hope I can figure it out. As you mentioned in the Troubleshooting section it should be a shared memory problem.

Thank's for your help
Josef
Locked