httpd not starting
Grahame Jordan
gbj at theforce.com.au
Fri Dec 27 10:06:55 PST 2002
Hi!
I have configured freeside to run by itself using a normal httpd.conf on
a RH7.3 machine.
I have changed:
DocumentRoot /var/www/freeside
User freeside
Group freeside
Added lines:
PerlModule HTML::Mason
<Directory /var/www/freeside/masondocs>
<Files ~ (\.cgi)>
AddHandler perl-script .cgi
PerlHandler HTML::Mason
</Files>
<Perl>
require "/etc/httpd/conf/handler.pl";
</Perl>
PerlSetVar Global /usr/local/etc/freeside/masondata/
AuthName Freeside
AuthType Basic
AuthUserFile /etc/httpd/conf/htpasswd.freeside
require valid-user
</Directory>
Set configurables in handler.pl to:
my $interp = new HTML::Mason::Interp (parser=>$parser,
comp_root=>'/var/www/freeside/masondocs',
data_dir=>'/usr/local/etc/freeside/masondata',
out_mode=>'stream',
);
However when I try to start httpd it does not start. /etc/init.d/httpd
start does sday "OK" but it dies on the fork().
Using strace it ends like this:
strace -f httpd -DHAVE-PERL
open("/etc/httpd/logs/access_log", O_WRONLY|O_APPEND|O_CREAT, 0644) = 4
fcntl64(4, F_DUPFD, 15) = 16
close(4) = 0
chdir("/") = 0
fork() = 17582
[pid 17582] getpid() = 17582
[pid 17582] setsid() = 17582
[pid 17582] close(0) = 0
[pid 17582] open("/dev/null", O_RDONLY) = 0
[pid 17582] close(1) = 0
[pid 17582] open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 1
[pid 17582] getpid() = 17582
[pid 17582] time(NULL) = 1041012784
[pid 17574] _exit(0) = ?
[pid 17582] close(16) = 0
[pid 17582] rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
[pid 17582] rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
.
.
.
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
--- SIGSEGV (Segmentation fault) ---
What am I doing wrong here??????
Thanks
Grahame Jordan
More information about the freeside-users
mailing list