Gossamer Forum
Home : Products : Gossamer Links : Discussions :

LSQL + Apache + debug problem

Quote Reply
LSQL + Apache + debug problem
I've an LSQL v2.1.1 and Apache HTTPd v1.3.43 installed under Windows (XP).

Everything works fine until I turn on 'debug_level' => '1' in ConfigData.pm.
From that time, I get error 500, and following
Premature end of script headers: z:/work/cgi-bin/lsql/page.cgi
GT::SQL::Driver::MYSQL::sth (2480): Executing query:
SELECT COUNT(*) FROM links_CatLinks etc... etc...
Basically I get the debugging messages into the Apache error log,
and the Perl.exe process continues running in the memory, until I kill it.

Is this known problem by anybody?

I used OmniHTTPd webserver v2.10 until now, and I had no such problem.
If I stop Apache and start OmniHTTPd, the same page is displayed correctly, and the SQL debugging commands are displayed at the end of the page, correctly. No 500 error.

This is the corresponding virtualhost part of httpd.conf,
NameVirtualHost *

# Virtual host: localhost
<Virtualhost *>
DocumentRoot "Z:/Work"
ServerName localhost
<IfModule mod_dir.c>
DirectoryIndex index.html
AddType text/html .html
AddHandler cgi-script .cgi
AddHandler server-parsed .html
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

<Directory "Z:/Work">
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
<IfModule mod_alias.c>
ScriptAlias /cgi-bin "Z:/Work/cgi-bin"
<Directory "Z:/Work/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
ErrorLog Z:/Work/stats/error_log.txt
CustomLog Z:/Work/stats/access_log.txt combined

I'm not Apache junkie, so it is possible that there config is not correct.
Anybody knows the problem?

Best regards,

Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...