Page 1 of 1

Cannot connect first time

Posted: Thu May 12, 2005 1:14 am
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.

Posted: Thu May 12, 2005 8:56 am
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

Posted: Thu May 12, 2005 9:45 pm
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!