You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ray Licon <fb...@prodigy.net> on 2005/07/06 21:26:50 UTC
Can't get simple ModPerl::Registery test page working
> Hello -
>
> I can't get the simple ModPerl::Registry test page
> to
> run.
>
> I complied everything from scratch using gcc3.4.2
> on
> Solaris 2.8. The server starts and the error_log is
> clean before and after I attempt to run my test
> page.
>
> From apache error_log:
> [Wed Jul 06 11:26:52 2005] [notice] Apache/2.0.54
> (Unix) DAV/2 mod_perl/2.0.1 Perl/v5.8.6 configured
> -- resuming normal operations
> [Wed Jul 06 11:26:52 2005] [info] Server built: Jun
> 28
> 2005 18:24:19
>
> in the httpd.conf:
>
> PerlModule ModPerl::Registry
>
> Alias /perl/ "/www/apache2.54/perl/"
> <Location /perl/>
> SetHandler perl-script
> PerlResponseHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> </Location>
>
> LoadModule access_module modules/mod_access.so
> LoadModule auth_module modules/mod_auth.so
> LoadModule auth_anon_module modules/mod_auth_anon.so
> LoadModule auth_dbm_module modules/mod_auth_dbm.so
> LoadModule ext_filter_module
> modules/mod_ext_filter.so
> LoadModule include_module modules/mod_include.so
> LoadModule log_config_module
> modules/mod_log_config.so
> LoadModule log_forensic_module
> LoadModule modules/mod_log_forensic.so
> LoadModule env_module modules/mod_env.so
> #LoadModule mime_magic_module
> modules/mod_mime_magic.so
> #LoadModule cern_meta_module
> modules/mod_cern_meta.so
> #LoadModule expires_module modules/mod_expires.so
> #LoadModule headers_module modules/mod_headers.so
> #LoadModule usertrack_module
> modules/mod_usertrack.so
> LoadModule unique_id_module modules/mod_unique_id.so
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule mime_module modules/mod_mime.so
> LoadModule dav_module modules/mod_dav.so
> LoadModule status_module modules/mod_status.so
> LoadModule autoindex_module modules/mod_autoindex.so
> LoadModule asis_module modules/mod_asis.so
> LoadModule info_module modules/mod_info.so
> #LoadModule cgid_module modules/mod_cgid.so
> LoadModule dav_fs_module modules/mod_dav_fs.so
> LoadModule vhost_alias_module
> LoadModule modules/mod_vhost_alias.so
> LoadModule negotiation_module
> LoadModule modules/mod_negotiation.so
> LoadModule dir_module modules/mod_dir.so
> LoadModule imap_module modules/mod_imap.so
> LoadModule actions_module modules/mod_actions.so
> #LoadModule speling_module modules/mod_speling.so
> LoadModule userdir_module modules/mod_userdir.so
> LoadModule alias_module modules/mod_alias.so
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule perl_module modules/mod_perl.so
>
> and my test page is in
> "/www/apache2.0.54/perl/rock.pl"
> ----
> #!/usr/local/bin/perl
> print "Content-type: text/plain\n\n";
> print "mod_perl 2.0 rocks!\n";
> ----
>
> When I ask for the page from the server, it merely
> attempts to download the text of the page.
>
> Any ideas?
>
> -thanks
> Ray Licon
>
Re: Can't get simple ModPerl::Registery test page working
Posted by Stas Bekman <st...@stason.org>.
Ray Licon wrote:
>>Hello -
>>
>> I can't get the simple ModPerl::Registry test page
>>to
>>run.
>>
>> I complied everything from scratch using gcc3.4.2
>>on
>> Solaris 2.8. The server starts and the error_log is
>>clean before and after I attempt to run my test
>>page.
>>
>>>From apache error_log:
>>[Wed Jul 06 11:26:52 2005] [notice] Apache/2.0.54
>>(Unix) DAV/2 mod_perl/2.0.1 Perl/v5.8.6 configured
>>-- resuming normal operations
>>[Wed Jul 06 11:26:52 2005] [info] Server built: Jun
>>28
>>2005 18:24:19
>>
>>in the httpd.conf:
>>
>>PerlModule ModPerl::Registry
>>
>>Alias /perl/ "/www/apache2.54/perl/"
>><Location /perl/>
>> SetHandler perl-script
>> PerlResponseHandler ModPerl::Registry
>> PerlOptions +ParseHeaders
>> Options +ExecCGI
>></Location>
[...]
>>LoadModule perl_module modules/mod_perl.so
Are you sure this is your config file? You can't use mod_perl directives
before loading mod_perl. Have you compiled it statically?
>>and my test page is in
>>"/www/apache2.0.54/perl/rock.pl"
>>----
>>#!/usr/local/bin/perl
>>print "Content-type: text/plain\n\n";
>>print "mod_perl 2.0 rocks!\n";
>>----
>>
>>When I ask for the page from the server, it merely
>>attempts to download the text of the page.
It smells like your config file has more in it and it resets /perl/ to
something else. Besides, how did you issue the request? (what's the url?)
Also please submit a complete bug report as explained here:
http://perl.apache.org/bugs/
Thank you.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Can't get simple ModPerl::Registery test page working
Posted by Stas Bekman <st...@stason.org>.
Perrin Harkins wrote:
> On Wed, 2005-07-06 at 12:26 -0700, Ray Licon wrote:
>
>>>When I ask for the page from the server, it merely
>>>attempts to download the text of the page.
>
>
> Is the file marked executable?
It's no longer the case. registry in mp2 doesn't check the exec bit since
it had problems with acl-based filesystems and it is not executed anyway.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Can't get simple ModPerl::Registery test page working
Posted by Perrin Harkins <pe...@elem.com>.
On Wed, 2005-07-06 at 12:26 -0700, Ray Licon wrote:
> > When I ask for the page from the server, it merely
> > attempts to download the text of the page.
Is the file marked executable?
- Perrin