Hi!

I have an AxKit server running on RedHat-7.2. I need to move it to
RedHat Enterprise Linux 3 WorkStation. I've been trying several days,
but I was unable to get axkit running. I also tried with my Fedora Core
1 PC without success.

RHEL3 RPMS:

gcc-3.2.3-24
glibc-2.3.2-95.6
perl-5.8.0-88.4
libxml2-2.5.10-6
libxslt-1.0.33-1

FEDORA CORE 1 RPMS:

gcc-3.3.2-1
glibc-2.3.2-101.1
perl-5.8.1-92
libxml2-2.6.6-3
libxslt-1.0.33-2

I built apache-1.3.29 with mod_ssl-2.8.16 and mod_perl-1.29 the same on
both linux boxes:

--
# cd mod_ssl-2.8.16-1.3.29
# ./configure --with-apache=../apache-1.3.29
# cd ../apache_1.3.29
# ./configure \
        --with-layout=RedHat \
        --enable-module=all \
        --enable-shared=max \
        --disable-rule=WANTHSREGEX \
        --disable-rule=EXPAT \
        --enable-rule=EAPI \
        --enable-shared=ssl \
        --disable-module=auth_db
# make -s 
# make install
# cd ../mod_perl-1.29
# perl -w Makefile.PL \
        EVERYTHING=1 PERL_USELARGEFILES=0 \
        USE_APXS=1 WITH_APXS=/usr/sbin/apxs \
        CCFLAGS="-O2 -fPIC"
--

Apache is working, with mod_ssl and mod_perl.

--
# telnet localhost www
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.0
 
HTTP/1.1 200 OK
Date: Thu, 15 Apr 2004 22:50:25 GMT
Server: Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7a mod_perl/1.29
Last-Modified: Wed, 08 Oct 2003 00:00:20 GMT
ETag: "add0-b4a-3f835394"
Accept-Ranges: bytes
Content-Length: 2890
Connection: close
Content-Type: text/html
 
Connection closed by foreign host.
--

From /etc/httpd/conf/httpd.conf

--
<IfModule mod_perl.c>
    Alias /perl /var/www/perl
    <Directory /var/www/perl>
        SetHandler perl-script
        PerlHandler Apache::Registry
        Options +ExecCGI +Indexes
    </Directory>
#Include "conf/axkit.conf"
</IfModule>
--


I tested mod_perl with a simple program /var/www/perl/test.cgi

--
use CGI;
 
my $z=new CGI;
 
print $z->header(-type=>'text/plain');
 
foreach(sort keys %ENV) {
  print "$_=$ENV{$_}\n";
}
--

Finally, I added the AxKit config file (and uncommented httpd.conf):

--
#
# axkit.conf
#
PerlModule AxKit
 
Alias /xml/ /var/www/xml/
<Directory /var/www/xml>
  Options -Indexes +MultiViews
  DirectoryIndex index.xsp index.xml
  SetHandler perl-script
  PerlHandler AxKit
  AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
  AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript
  AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP

  AxCacheDir /var/www/xmlcachedir
  AxDebugLevel 10
</Directory>
--

But something goes wrong:

--
telnet localhost www
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.0
 
Connection closed by foreign host.
--

Same happens when I try to access http://localhost/xml/.
/var/log/httpd/error_log says:

--
[Thu Apr 15 17:17:46 2004] [notice] Apache/1.3.29 (Unix) AxKit/1.62 mod_ssl/2.8.16 
OpenSSL/0.9.7a mod_perl/1.29 configured -- resuming normal operations
[Thu Apr 15 17:17:46 2004] [notice] suEXEC mechanism enabled (wrapper: 
/usr/sbin/suexec)
[Thu Apr 15 17:17:46 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Apr 15 17:17:46 2004] [notice] child pid 15224 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:46 2004] [notice] child pid 15225 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:46 2004] [notice] child pid 15226 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:46 2004] [notice] child pid 15227 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:46 2004] [notice] child pid 15228 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:46 2004] [notice] child pid 15229 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:47 2004] [notice] child pid 15230 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:47 2004] [notice] child pid 15231 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:47 2004] [notice] child pid 15232 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:48 2004] [notice] child pid 15233 exit signal Segmentation fault (11)
[Thu Apr 15 17:17:48 2004] [notice] child pid 15234 exit signal Segmentation fault (11)
[Thu Apr 15 17:40:23 2004] [notice] child pid 15235 exit signal Segmentation fault (11)
[Thu Apr 15 17:48:13 2004] [notice] child pid 15236 exit signal Segmentation fault (11)
[Thu Apr 15 17:48:24 2004] [notice] child pid 15237 exit signal Segmentation fault (11)
--

I try http://localhost/xml/test.xml (the dromedaries sample). I get a 500 Internal 
Server Error.
/var/log/httpd/error_log says:

--
[Thu Apr 15 17:10:42 2004] [error] _get_config: Unexpected per_dir_config = NULL at 
/etc/httpd/lib/perl/Apache/AxKit/ConfigReader.pm line 43.
--

Same happens on both machines (RHEL3 and FC1). I really apreciate your
advice. My webmaster really loves AxKit, and we don't want to move to
java-based RH-WAF.

Perhaps I missed something. You can check my config at
<http://milli.cie.unam.mx/config/>

Regards.

-- 
Ing. Héctor Daniel Cortés González <[EMAIL PROTECTED]>  | Don't take
antes 'Aztec Eagle' Turbo <[EMAIL PROTECTED]>           | the name of
http://www.cie.unam.mx/xml/sacad/uc/hdcg/               |    root
Linux User #13086.                                      |  in vain.
------------------------------------------------------------------------
perl -wle '(1 x $_) !~ /^(11+)\1+$/ && print while ++ $_'

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to