perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amiribarksdale <amiribarksd...@gmail.com>
Subject Re: Segfault Help!?!?
Date Tue, 03 Jun 2008 20:44:49 GMT


Fred Moyer wrote:
> 
> Can you post your httpd.conf and startup.pl?
> 
> Are you using transactions?
> 

I am not using transactions--I don't have any InnoDB tables, either.

Here is my httpd.conf:

ServerType standalone
ServerRoot "/usr/local/apache"
PidFile /usr/local/apache/logs/httpd.pid
ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5 
MaxSpareServers 10
StartServers 5
MaxClients 100 
MaxRequestsPerChild 500
Listen *.*.*.*:80

ExtendedStatus On
Port 80

User nobody
Group nobody

ServerName  *.com
ErrorDocument 404 /errors/404.html
ErrorDocument 403 /errors/403.html

FileETag none

CoreDumpDirectory /tmp

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<LocationMatch "(\.ml|dhandler|autohandler)$">
    SetHandler perl-script
</LocationMatch>

UseCanonicalName On

DefaultType text/html

HostnameLookups Off

ErrorLog /usr/local/apache/logs/error_log

LogLevel debug 

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" PID:
%P" combined

CustomLog /usr/local/apache/logs/access_log combined

ServerSignature On

### Section 3: Virtual Hosts
NameVirtualHost *.*.*.*:80

<VirtualHost *.*.*.*:80>
    ServerAdmin webmaster@*.com 
    DocumentRoot /home/web/htdocs
    ServerName *.com
    ServerAlias www.*.com

    PerlSetVar site prod

<Location /admin>
	SetHandler perl-script
	AuthType corp::*::Apache
	PerlAuthzHandler corp::*::Apache->authz_handler
	PerlAuthenHandler corp::*::Apache->authen_handler
	require group admin
</Location>

</VirtualHost>

SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

<IfModule mod_ssl.c>
Listen 443
NameVirtualHost *.*.*.*:443
Include conf/ssl.conf
</IfModule>

PerlModule Apache::DBI

PerlSetEnv AUTO_FIRST_ICAPS 1
PerlSetEnv corp_USER_COOKIE au
PerlSetEnv corp_USER_SES_COOKIE sau
PerlSetEnv corp_COOKIE_DOMAIN *.com
PerlSetEnv corp_PROD_DOMAIN http://*.com
PerlSetEnv corp_SSL_DOMAIN https://*.com

PerlRequire /usr/local/mason/handler.pl
PerlHandler HTML::Mason
AddHandler perl-script .imhtml
AddHandler perl-script .mhtml
AddHandler perl-script .ml
AddHandler perl-script .html
AddHandler perl-script .mjs
AddHandler perl-script .mcss

Here is my handler.pl:

package HTML::Mason;

use strict;
use warnings;

use HTML::Mason;
use HTML::Mason::ApacheHandler;

$Apache::DBI::DEBUG = 2;

{
   package HTML::Mason::Commands;

    use corp::*;
    use corp::*::Apache;
    use Apache::Request;

    use *::Utilities;
    use *::Statistics;
    use *::MusicProcessing;
    use *::Blogs;
    use *::Invite;
    use *::Notifications;
    use *::Merch;
    use MIME::Lite;


    use vars qw(
        $_basedir
        $_adminbase
    );

   $_basedir   = '';
   $_adminbase = '/admin';
}

my %ah = (
   prod   => HTML::Mason::ApacheHandler->new(
      comp_root => [
         [ prod_root => '/home/web/htdocs' ],
         [ generic   => '/home/web/generic/htdocs' ],
         [ common    => '/home/web/common/htdocs' ],
      ],
      data_dir   => '/usr/local/mason/data',
      error_mode => 'output',
      allow_globals => [ qw( $User ) ],
      args_method => 'mod_perl',
   ),
 
   secure => HTML::Mason::ApacheHandler->new(
      comp_root => [
         [ sec_root => '/home/web/secure/htdocs' ],
         [ generic  => '/home/web/generic/htdocs' ],
         [ common   => '/home/web/common/htdocs' ],
      ],
      data_dir   => '/usr/local/mason/data',
      error_mode => 'output', 
      allow_globals => [ qw( $User ) ],
      args_method => 'mod_perl',
   ),
);

sub handler {
   my $r = shift;
   $ah{$r->dir_config('site')}->handle_request($r);
}

1;
-- 
View this message in context: http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17633171.html
Sent from the mod_perl - General mailing list archive at Nabble.com.


Mime
View raw message