Can't select "Add new monitor" tabs with lighttpd

Forum for questions and support relating to the 1.24.x releases only.
Locked
johncolby
Posts: 9
Joined: Thu Feb 24, 2011 7:10 pm

Can't select "Add new monitor" tabs with lighttpd

Post by johncolby »

ZM is working great under Apache2 and php5. However, I'm trying to switch over to using lighttpd and am getting a problem. The ZM interface looks fine, and the tabs in the Options window work fine (I am able to turn on authentication and change/save other options etc.). When I go to add a new monitor, though, I am unable to select any of the tabs. If I copy/paste the url into a new browser window and explicitly add something like "&tab=source", it will display the tab but then I still cannot select another. I believe my php/fastcgi is set up ok, as Dokuwiki is running just fine under lighttpd. There are no php errors in the log either. Any ideas would be fantastic. -John

Ubuntu 10.10, php 5.3.3, lighttpd 1.4.26, ZM 1.24.2
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Post by PacoLM »

Hi,

I had the same problem and I updated all the packages (sudo apt-get update, then sudo apt-get upgrade). Some packages related to apache, mysql or php5 were updated and the problem was solved.

Regards,

PacoLM
johncolby
Posts: 9
Joined: Thu Feb 24, 2011 7:10 pm

Post by johncolby »

Hi Paco. Thanks for the idea. I updated/upgraded and then restarted, but I'm still getting the same behavior. I also noticed that in addition to not being able to select the different tabs in the "add new monitor" window, when I click the "mark" button next to an already-existing monitor, ZM fails to highlight the row and fails to make the "edit" or "delete" buttons clickable. Again, if I switch back to Apache everything works fine.


I tried setting $debug = true; at the top of ZM's index.php (not sure if this the correct way to do it), and now I'm getting this in the log:

Code: Select all

2011-02-24 12:18:39: (mod_fastcgi.c.2711) FastCGI-stderr: PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/share/zoneminder/index.php:27) in /usr/share/zoneminder/index.php on line 77
PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/index.php:27) in /usr/share/zoneminder/includes/functions.php on line 97
PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/index.php:27) in /usr/share/zoneminder/includes/functions.php on line 98
PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/index.php:27) in /usr/share/zoneminder/includes/functions.php on line 99
PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/index.php:27) in /usr/share/zoneminder/includes/functions.php on line 100
PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/index.php:27) in /usr/share/zoneminder/includes/functions.php on line 101
Is that helpful?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Post by PacoLM »

Hi,

I answered your post so quick, but now I realize that I was not running lighttpd. Why are you using it instead of mysql?. If there's no real need, try to switch to mysql, works fine.

Regards,

PacoLM
baraboom
Posts: 3
Joined: Wed Mar 09, 2011 2:04 pm

Post by baraboom »

I too am considering trying out lighttpd as apache2 seems to regularly crash, requiring a restart. Anyway, I know this thread is a couple weeks old but I just wanted to add a couple pieces of info:

@Paco, Lighttpd is an alternative HTTPD server to use instead of apache - it has nothing to do with mysql, which would still be providing the database on the backend

@John, your lighttpd php-fastcgi configuration is probably using a different php.ini file than apache. Locate the correct php.ini and then find the output_buffering setting and change it from "off" or "4096" to On.

Hope this helps and I look forward to participating more in these forums as zm seems like a pretty cool open-source offering.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Post by PacoLM »

baraboom wrote:I too am considering trying out lighttpd as apache2 seems to regularly crash, requiring a restart. Anyway, I know this thread is a couple weeks old but I just wanted to add a couple pieces of info:

@Paco, Lighttpd is an alternative HTTPD server to use instead of apache - it has nothing to do with mysql, which would still be providing the database on the backend

@John, your lighttpd php-fastcgi configuration is probably using a different php.ini file than apache. Locate the correct php.ini and then find the output_buffering setting and change it from "off" or "4096" to On.

Hope this helps and I look forward to participating more in these forums as zm seems like a pretty cool open-source offering.
You're right, I was confused, I meant apache2 not mysql! Please, post how to switch to lighttpd, I would be also interested as my guruplug will control 3 cameras instead of 2, so any free cpu load will be helpful.

Regards & welcome to the forum!
Locked