Hi Per, I get the msg: 'The document contained no data' when I try to load my home.html from my server using my browser. When I comment out the AddModule mod_perl.c then my home page appears.
I am including my httpd for any advise: relevant portions of httpd.conf ------------------------------- <IfDefine SSL> LoadModule ssl_module libexec/libssl.so LoadModule php4_module libexec/libphp4.so LoadModule webapp_module libexec/mod_webapp.so LoadModule perl_module libexec/libperl.so </IfDefine> <Ifmodule mod_perl.c> Include conf/mod_perl.conf </Ifmodule> <Perl> </Perl> ClearModuleList #AddModule mod_perl.c mod_perl.conf ------------- conf/mod_perl.pl PerlFreshRestart On <Location /hello/world> SetHandler perl-script PerlHandler Apache::Hello </Location> Alias /perl/ /home/httpd/perl/ PerlModule Apache::Registry <Location /perl> SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options ExecCGI </Location> /home/httpd/perl/hello.pl ------------------------- #!/usr/local/perl print "Content-type: text/html\n\n"; print <<END; <head> <title>Mod_perl </title> </head> <body> <center>Mod-Perl</center> </body> END Also, when I try to load the page /odin/perl/hello.pl (/odin is my server) the page displays as text only, not as an html page. Any advice would be greatly appreciated. Thanks. John Kolvereid --- Per Einar Ellefsen <[EMAIL PROTECTED]> wrote: > At 23:31 24.03.2002, John Kolvereid wrote: > >Hi Dan, > > You are correct when you refer to > > 'this somewhat convoluted load/clear/add' > >My httpd.conf has > > LoadModule perl_module libexec/libperl.so > > AddModule mod_perl.c > >When I leave alone and check the error_log, Apache > AND > >mod_perl are loaded. However, I cannot view any > web > >pages; instead I get the msg: > > 'The document contained no data' > >(what document I do not know) > > > >When I comment out the AddModule I can view all my > web > >pages, but the error_log claims that only Apache is > > What do you mean by 'view all your web pages'? What > are these web pages: > perl programs, or static content? > > >loaded - mod_perl is not. This may be fine, it may > be > >a DSO (I don't know) but I cannot view a .pl file > as > >outlined in Apache Modules w/ Perl & C, pp 41-45. > It > >displays text only, as if the Options ExCGI were > not > >present. > > > > I am trying to pay close attention to the guide > and > >all the other literature on the subject. > Obviously, > >it the installation works correctly the first time, > >then it is understandable, otherwise, (I think) it > is > >very confusing. > > There must be something wrong with your > configuration: could you please > post your httpd.conf here so taht we can see if > you're doing anything wrong? > (only post the most relevant parts, so as not to get > a too large entry, but > please post *all* the relevant parts, as there might > be some small detail > making it fail). > > >--- Dan Riley <[EMAIL PROTECTED]> wrote: > > > Ged Haywood <[EMAIL PROTECTED]> > writes: > > > > > According to the mod_perl Reference Guide > the > > > line > > > > > AddModule mod_perl.c > > > > > should be added to my httpd.conf, otherwise > > > mod_perl > > > > > is not activated. > > > > > > > > I think you'd better have a more careful look > at > > > that Guide. You only > > > > need that in your config if you have mod_perl > > > built as a DSO (Dynamic > > > > Shared Object) which means that Apache starts > > > without trhe mod_perl > > > > module and then loads it later when it reads > the > > > line > > > > > > > > AddModule mod_perl.c > > > > > > > > in httpd.conf. > > > > > > I think you've confused LoadModule and > AddModule. > > > If you follow the > > > recommended apache configuration, which does all > the > > > LoadModules > > > followed by a ClearModuleList and a bunch of > > > AddModules, you don't > > > need the LoadModule for mod_perl (since it is > built > > > in), but you do > > > need the AddModule since *all* the module > entries > > > get cleared by the > > > ClearModuleList. > > > > > > I believe the point of this somewhat convoluted > > > load/clear/add > > > procedure is for the static modules to end up in > the > > > right spots in > > > the module list relative to all the DSOs, rather > > > than all bunched up > > > at one end, since the order does matter (a lot). > > > -- > > > Dan Riley > > > [EMAIL PROTECTED] > > > "Mr. Ellison is presently the sole member of > the > > > Plan Committee. The > > > Plan Committee did not meet during fiscal year > > > 2001, and during that > > > same period, acted 46 times by unanimous > > > written consent." > > > > > >__________________________________________________ > >Do You Yahoo!? > >Yahoo! Movies - coverage of the 74th Academy > Awards® > >http://movies.yahoo.com/ > > -- > Per Einar Ellefsen > [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/