I'm hoping someone can help, I've been struggling to get my freenas install of zoneminder up and running for a few days now. Most stuff is there; cams, recording, etc. but I can't get the api working (which I figured out was broken when I couldn't get zmeventnotification working!)
I'm running 1.32.3 on apache and when I go to http://server/api (I don't have the /zm in my path) I get this;
Fatal error: Uncaught FatalErrorException: [CakeSessionException] Unable to configure the session, setting session.use_trans_sid failed. #0 /usr/local/www/zoneminder/api/lib/Cake/Model/Datasource/CakeSession.php(732): CakeSession::_configureSession() #1 /usr/local/www/zoneminder/api/lib/Cake/Model/Datasource/CakeSession.php(219): CakeSession::_startSession() #2 /usr/local/www/zoneminder/api/lib/Cake/Model/Datasource/CakeSession.php(248): CakeSession::start() #3 /usr/local/www/zoneminder/api/lib/Cake/View/Helper/SessionHelper.php(134): CakeSession::check('Message.flash') #4 /usr/local/www/zoneminder/api/app/View/Layouts/error.ctp(46): SessionHelper->flash() #5 /usr/local/www/zoneminder/api/lib/Cake/View/View.php(971): include('/usr/local/www/...') #6 /usr/local/www/zoneminder/api/lib/Cake/View/View.php(933): View->_evaluate('/usr/local/www/...', Array) #7 /usr/local/www/zoneminder/api/lib/Cake/View/View.php(546): View->_render('/usr/local/www/...') #8 /usr/local/www/zoneminder/api/lib/Cake/View/View.php(481): View->renderL in /usr/local/www/zoneminder/api/lib/Cake/Error/ErrorHandler.php on line 138
I was wondering if it was something to do with my apache config which is;
Code: Select all
DocumentRoot "/usr/local/www/zoneminder/"
Alias /cache "/var/cache/zoneminder"
Alias /zm "/usr/local/www/zoneminder/"
<Directory "/var/cache/zoneminder">
Options -Indexes +FollowSymLinks
AllowOverride None
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
<Directory "/usr/local/www/zoneminder">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ScriptAlias /cgi-bin "/usr/local/www/zoneminder/cgi-bin"
<Directory "/usr/local/www/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
<Directory /usr/local/www/zoneminder/api>
AllowOverride All
</Directory>
Thanks in advance!
Jon