RE: Still not talking!
Hi, These are my 5 cents to the problem :) In the error log is a error code 10061 (Which stands for connection refused) this means that the application cannot even open a connection to the mysql server. Maybe you should also provide the DSN with a port number. Or try to use 127.0.0.1 instead of localhost. Greetings Guido Moonen -Original Message- From: Jonathan M. Hollin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 3:38 AM To: [EMAIL PROTECTED] Subject: Still not talking! Okay... Rebooting the computer made no difference whatsoever. So I built a minimal script as follows: #!perl print (Content-type: text/html\n\n); use strict; use vars qw($query $dsn $driver $db_username $db_password $dbh); require 5.006; $| = 1; ($0 =~ m,(.*)/[^/]+,) unshift (@INC, $1); ($0 =~ m,(.*)\\[^\\]+,) unshift (@INC, $1); use CGI qw(:standard); use CGI::Carp 'fatalsToBrowser'; $CGI::POST_MAX = (1024 * 0); $CGI::DISABLE_UPLOADS = 1; $query = new CGI; use DBI(); $driver = mysql; $dsn = DBI:$driver:database=shapeshifter;host=localhost; $db_username = ; $db_password = ; warn Before DBI-connect(): [$$]; $dbh = DBI-connect($dsn, $db_username, $db_password, {'RaiseError' = 1}) or die sprintf Error: %s.\n, DBI-errstr; warn After DBI-connect() [$$]; my $sth = $dbh-prepare(SELECT * FROM frontpage); $sth-execute(); while (my $ref = $sth-fetchrow_hashref()) { print qq~Found a row: id = $ref-{'serial_number'}, name = $ref-{'position'}BR~; } $sth-finish(); $dbh-disconnect(); if ($ENV{'MOD_PERL'}) { print Mod_perl is installed on this server: $ENV{'MOD_PERL'}brbr\n; } else { print Mod_perl is not installed on this serverbrbr\n; } When running this I get a 200 OK message in the browser as follows: OK The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -- -- Apache/1.3.19 Server at localhost Port 80 The error.log file (Apache) contains the following: [Tue May 22 02:35:03 2001] nul: Before DBI-connect(): [500] at e:/pad/htdocs/internet/system/db_test.cgi line 20. [Tue May 22 02:35:03 2001] [error] DBI-connect failed: Can't connect to MySQL server on 'localhost' (10061) at e:/pad/htdocs/internet/system/db_test.cgi line 21 Now I'm completely stumped. Can anyone spot anything obvious from this? FYI, I have attached my httpd.conf in its entirety in case that helps. Kindest regards, Jonathan M. Hollin Digital-Word.com
FW: Problem: Number after header
Sorry if you receive this message twice!!! -Original Message- From: Guido Moonen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 07, 2000 10:20 AM To: Mason Subject: Problem: Number after header Hi All, I have a little problem with my Mason site: IEplore doesn't have a problem accessing the site, But when i use Netscape Communicator i have a problem accessing the page and i get only the html-source of the web site. I found that the problem is that Mason sends a Number of some sort at from of the html (after the response header) but i cannot find where the number gets printed to the output stream. Does anybody have any hints in how to find this? eg: ** Request ** GET /PHIKNPC1/EN/index.html HTTP/1.1 Host: cb.clickly.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 95) Connection: Keep-Alive ** Response ** HTTP/1.1 200 OK Date: Tue, 07 Nov 2000 10:13:13 GMT Server: Apache/1.3.12 (Unix) mod_perl/1.24 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain 2b89 html !-- HTML part -- !-- HTML part -- table width="100%" border="0" cellspacing="0" cellpadding="0" tr td valign="middle" etc... The Problem is the "2b89" I have: - Mason 0.87 (same problem with 0.89) - Apache 1.3.12 - Mod_Perl 1.24 == Guido Moonen Software Engineer Clickly.com Van Diemenstraat 206 1013 CP Amsterdam THE NETHERLANDS Tel:+31 20 6934083 Fax:+31 20 6934866 E-mail: [EMAIL PROTECTED] web:http://www.clickly.com Get Your Software Clickly! ==
RE: FW: Problem: Number after header
Hi, Sorry but i cannot find the e-mail you are describing, could you please point to me wich e-mail you referring to? Greetings, Guido Moonen -Original Message- From: G.W. Haywood [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 07, 2000 1:04 PM To: Guido Moonen Cc: Modperl Subject: Re: FW: Problem: Number after header Hi there, On Tue, 7 Nov 2000, Guido Moonen wrote: I found that the problem is that Mason sends a Number of some sort at from of the html (after the response header) but i cannot find where the number gets printed to the output stream. Something very similar was mentioned on the List a few weeks ago. Can't for the life of me remember what the thread was, but if you do a case-insensitive context grep of the messages for html then you'll probaly find it. Maybe somebody else can remember? 73, Ged.
Problem: Number after header
-Original Message- From: Guido Moonen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 07, 2000 10:20 AM To: Mason Subject: Problem: Number after header Hi All, I have a little problem with my Mason site: IEplore doesn't have a problem accessing the site, But when i use Netscape Communicator i have a problem accessing the page and i get only the html-source of the web site. I found that the problem is that Mason sends a Number of some sort at from of the html (after the response header) but i cannot find where the number gets printed to the output stream. Does anybody have any hints in how to find this? eg: ** Request ** GET /PHIKNPC1/EN/index.html HTTP/1.1 Host: cb.clickly.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 95) Connection: Keep-Alive ** Response ** HTTP/1.1 200 OK Date: Tue, 07 Nov 2000 10:13:13 GMT Server: Apache/1.3.12 (Unix) mod_perl/1.24 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain 2b89 html !-- HTML part -- !-- HTML part -- table width="100%" border="0" cellspacing="0" cellpadding="0" tr td valign="middle" etc... The Problem is the "2b89" I have: - Mason 0.87 (same problem with 0.89) - Apache 1.3.12 - Mod_Perl 1.24 == Guido Moonen Software Engineer Clickly.com Van Diemenstraat 206 1013 CP Amsterdam THE NETHERLANDS Tel:+31 20 6934083 Fax:+31 20 6934866 E-mail: [EMAIL PROTECTED] web:http://www.clickly.com Get Your Software Clickly! ==
RE: [Mason] Problem: no-Content.
Oops my mistake the i do not have a problem accessing the '/' of the site but only when i try to access the "/mason" part of the site... PS. I have got the same problem with 0.87 (Bit i saw it had some installation problems) (I have not installed Version 0.88): # make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5. 6.0/sun4-solaris -I/usr/local/lib/perl5/5.6.0 -e 'use Test::Harness qw(runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/01-syntax.ok t/02-sections...ok t/03-mc.ok t/04-misc...ok t/05-requestUse of uninitialized value in join at /clickly/compbst/HTML- Mason-0.87/test/data/request/obj/shared/check_error line 18. t/05-requestok 6/6FAILED test 5 Failed 1/6 tests, 83.33% okay t/06-parser.ok t/07-interp.ok t/08-ah.ok t/09-component..ok t/10-cache..NOK 3FAILED tests 1-3 Failed 3/3 tests, 0.00% okay t/11-inheritok Failed Test Status Wstat Total Fail Failed List of failed --- t/05-request.t61 16.67% 5 t/10-cache.t 33 100.00% 1-3 Failed 2/11 test scripts, 81.82% okay. 4/74 subtests failed, 94.59% okay. *** Error code 29 make: Fatal error: Command failed for target `test_dynamic' HTML::Mason is your perlhandler in the /mason request space, so what's supposed to handle a root object "/" request? Do a simple setup for one virtualhost and make sure your choices of documentroot, alias settings and component_root settings agree before broadening the solution for multiple virtualhosts. Also, back down to Mason 0.87 until 0.89 is released. -Ian Hello all, -- The Problem -- When i try try retrieve http://www.clickly.com/index.html (Test-Site: not the real clickly.com) i get a blank return and i mean a real blank content return (tried it with telnet to port 80 and the server only sends back the headers of the web-page?) Does anybody know what the problem is? I'va tried all sorts of things but nothing worked. Thanks in advance, Guido Moonen -- The Stuff i have -- * Solaris V 2.6 op Sun ultrasparc. * perl, v5.6.0 built for sun4-solaris * Server version: Apache/1.3.12 (Unix) Server built: Sep 6 2000 14:51:05 * mod_perl-1.24 * Mason v. 0.88 -- Handler.PL -- SNIP my (%parsers, %interp, %ah); foreach my $site qw(www modified management) { $parsers{$site} = new HTML::Mason::Parser(allow_globals = [qw($dbh %session)]); $interp{$site} = new HTML::Mason::Interp (parser=$parsers{$site}, comp_root="/clickly/html/$site/", data_dir="/clickly/masonhq/$site/", system_log_events="ALL"); $ah{$site} = new HTML::Mason::ApacheHandler(interp=$interp{$site}); chown (scalar(getpwnam "nobody"), scalar(getgrnam "nobody"), $interp{$site}-files_written); } sub handler { my ($r) = @_; my $site = $r-dir_config('site'); return -1 if $r-content_type $r-content_type !~ m|^text/|i; my $status = $ah{$site}-handle_request($r); return $status; } SNIP -- httpd.conf -- SNIP # www.clickly.com (Default) VirtualHost 192.168.0.210 ServerAdmin [EMAIL PROTECTED] DocumentRoot /clickly/html/www ServerName www.clickly.com PerlSetVar site 'www' Directory "/clickly/html/www" Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride None Order allow,deny Allow from all /Directory alias /mason /clickly/html/www Location /mason SetHandler perl-script PerlHandler HTML::Mason /Location /VirtualHost SNIP == Guido Moonen Clickly.com Van Diemenstraat 206 1013 CP Amsterdam THE NETHERLANDS Mob: +31 6 26912345 Tel: +31 20 6934083 Fax: +31 20 6934866 E-mail: [EMAIL PROTECTED] http://www.clickly.com Get Your Software Clickly! ==
[Mason] Problem: no-Content.
Hello all, -- The Problem -- When i try try retrieve http://www.clickly.com/index.html (Test-Site: not the real clickly.com) i get a blank return and i mean a real blank content return (tried it with telnet to port 80 and the server only sends back the headers of the web-page?) Does anybody know what the problem is? I'va tried all sorts of things but nothing worked. Thanks in advance, Guido Moonen -- The Stuff i have -- * Solaris V 2.6 op Sun ultrasparc. * perl, v5.6.0 built for sun4-solaris * Server version: Apache/1.3.12 (Unix) Server built: Sep 6 2000 14:51:05 * mod_perl-1.24 * Mason v. 0.88 -- Handler.PL -- SNIP my (%parsers, %interp, %ah); foreach my $site qw(www modified management) { $parsers{$site} = new HTML::Mason::Parser(allow_globals = [qw($dbh %session)]); $interp{$site} = new HTML::Mason::Interp (parser=$parsers{$site}, comp_root="/clickly/html/$site/", data_dir="/clickly/masonhq/$site/", system_log_events="ALL"); $ah{$site} = new HTML::Mason::ApacheHandler(interp=$interp{$site}); chown (scalar(getpwnam "nobody"), scalar(getgrnam "nobody"), $interp{$site}-files_written); } sub handler { my ($r) = @_; my $site = $r-dir_config('site'); return -1 if $r-content_type $r-content_type !~ m|^text/|i; my $status = $ah{$site}-handle_request($r); return $status; } SNIP -- httpd.conf -- SNIP # www.clickly.com (Default) VirtualHost 192.168.0.210 ServerAdmin [EMAIL PROTECTED] DocumentRoot /clickly/html/www ServerName www.clickly.com PerlSetVar site 'www' Directory "/clickly/html/www" Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride None Order allow,deny Allow from all /Directory alias /mason /clickly/html/www Location /mason SetHandler perl-script PerlHandler HTML::Mason /Location /VirtualHost SNIP == Guido Moonen Clickly.com Van Diemenstraat 206 1013 CP Amsterdam THE NETHERLANDS Mob: +31 6 26912345 Tel: +31 20 6934083 Fax: +31 20 6934866 E-mail: [EMAIL PROTECTED] http://www.clickly.com Get Your Software Clickly! ==