Chris Brooks wrote:
> Good morning all,
>
> I recently began to host a website with the hosting company addr.com.
> On the good side, they run Apache / mod_perl and they only cost $10 /
> month. On the bad side, they don't _support_ mod_perl, and they don't
> allow access to the error_logs.
I'd try to re-open STDERR in BEGIN block to a file that you can read:
package My::Log;
BEGIN{
open STDERR, '>', "~/logs" or die "$!";
}
1;
I don't think you have to remember the old fd.
Now in all your perl code include first thing on the top:
use My::Log;
> 4. I set the Apache directives in hello/.htaccess to be the same as
> those on my home machine:
>
> <FilesMatch "world.htm">
> PerlRequire /usr48/home/cbrooks/public_html/OCF/Hello.pm
> PerlHandler OCF::Hello
> </FilesMatch>
But you didn't tell Apache to run this as modperl!!! You miss:
SetHandler perl-script
seeing that, you probably want to reread the configuration docs :)
> Can anyone point me either to alternative directives to try,
> configuration questions for their support team, or bugs in my code?
>
> Thanks for your help.
> -Chris
>
--
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/