Can't start from interface.
Posted: Sun Aug 17, 2003 3:08 am
I just solved a problem that has been nagging me for weeks and would like to share it with the forum.
I'm running ZoneMinder v0.9.15 on a Debian Testing installation, kernel 2.4.20-686. My web server is thttpd 2.23beta1.
Everything was working just fine with one exception. I was unable to start ZM from the browser interface.
I could start it from the command line, then open the browser and sign on. The browser would show the correct status for all the cameras and all the links worked.
I could stop it from the browser. All the services would end, the window would refresh and again everything would show the correct status,links etc.
However, if I clicked (start) at this point, I could see all the services starting
via ps -l , but the browser would hang. My only recourse would
be to close the browser, re-open it and sign on again. Then, just like above, everything would be fine until I attempted to re-cycle ZM from the browser.
If I commented out session_start() I didn't have this problem. Of course, I also didn't have any way to authorize my users, but it pointed towards the php session handler as the problem.
I found the answer at www.php.net/manual/en/function.exec.php
I put a session_write_close() immediately before packageControl( 'start' )
in zm_html.php. Worked right off.
I don't know if this is a problem unique to Debian or a result of
my own setup. Hope it helps someone else.
Anyway, I have been very happy with ZoneMinder since I discovered it at v0.9.11.
It just keeps getting better.
I'm running ZoneMinder v0.9.15 on a Debian Testing installation, kernel 2.4.20-686. My web server is thttpd 2.23beta1.
Everything was working just fine with one exception. I was unable to start ZM from the browser interface.
I could start it from the command line, then open the browser and sign on. The browser would show the correct status for all the cameras and all the links worked.
I could stop it from the browser. All the services would end, the window would refresh and again everything would show the correct status,links etc.
However, if I clicked (start) at this point, I could see all the services starting
via ps -l , but the browser would hang. My only recourse would
be to close the browser, re-open it and sign on again. Then, just like above, everything would be fine until I attempted to re-cycle ZM from the browser.
If I commented out session_start() I didn't have this problem. Of course, I also didn't have any way to authorize my users, but it pointed towards the php session handler as the problem.
I found the answer at www.php.net/manual/en/function.exec.php
I put a session_write_close() immediately before packageControl( 'start' )
in zm_html.php. Worked right off.
I don't know if this is a problem unique to Debian or a result of
my own setup. Hope it helps someone else.
Anyway, I have been very happy with ZoneMinder since I discovered it at v0.9.11.
It just keeps getting better.