Cannot connect first time

Support and queries relating to all previous versions of ZoneMinder
Locked
tinker
Posts: 3
Joined: Thu May 12, 2005 12:27 am
Location: Tampa

Cannot connect first time

Post by tinker »

My problem is that after running make and make install, I get the following error when trying to connect the localhost browser to the web interface.

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

My installation is a SUSE 9.2 distro, with the ZM dependencies resolved. It is running Apache2. My installation is as follows, as advised in an article by Joe Barr:

./configure --with-mysql=/usr/bin --with-webdir=/srv/www/htdocs --with-cgidir=/srv/www/cgi-bin --with-webuser=wwwrun --with-webgroup=www

perl zmconfig.pl


I set up the users and passwords, and confirmed the tables exist in the zm database, by re-running zmschema a second time.

\. db/zmschema.sql
...
grant all on zm.* to wwwrun@localhost identified by password;
grant select on zm.* to www@localhost identified by password;
quit;

Then I exited su mode and reran the ZoneMinder config script to add the database information to the configuration that wasn't available earlier. I ran zmconfig.pl a second time, this time adding an argument of -noi to the command line. To finish the build process, I ran make and make install.

I can see and edit the zm.php file, but cannot figure out how to get to the next step of configuration via the HTTP access. Any help would be appreciated.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

What version of php do you have, session start is a php function (see http://uk.php.net/manual/en/function.session-start.php). I don't know why you wouldn't have it though.

Phil
tinker
Posts: 3
Joined: Thu May 12, 2005 12:27 am
Location: Tampa

Post by tinker »

php4

The system went stupid - and I ended up doing the reinstall over the existing. Now the browser connects to the control - I am trying to add monitors etc. The only difference is that I did not apply the SUSE system upgrade patches on this install. I will reply again after I do this.

Thanks for the help!
Locked