Stas,

See my comment below, following yours.

At 11:31 PM 6/19/04 +0300, Stas Bekman wrote:
>David Arnold wrote:
>> I wrote the file Rocks.pm as on
>> http://perl.apache.org/docs/2.0/user/intro/start_fast.html. I put it here
>> with these permissions.
>> 
>> [EMAIL PROTECTED] MyApache]$pwd
>> /home/darnold/httpd/httpd-2.0/perl/MyApache
>> 
>> [EMAIL PROTECTED] MyApache]$ll
>> total 4
>> -rwxr-xr-x    1 darnold  darnold       296 Jun 19 11:23 Rocks.pm
>> 
>> I put a startup.pl here:
>> 
>> [EMAIL PROTECTED] perl]$pwd
>> /home/darnold/httpd/httpd-2.0/perl
>> 
>> [EMAIL PROTECTED] perl]$ll
>> total 8
>> drwxrwxr-x    2 darnold  darnold      4096 Jun 19 11:23 MyApache
>> -rwxr-xr-x    1 darnold  darnold        51 Jun 19 11:25 startup.pl
>> 
>> Startup.pl has this content:
>> 
>> [EMAIL PROTECTED] perl]$cat startup.pl
>> use lib qw(/home/darnold/httpd/httpd-2.0/perl);
>> 1;
>> 
>> I put this in httpd.conf and restarted the server.
>> 
>> PerlRequire /home/darnold/httpd/httpd-2.0/perl/startup.pl
>> 
>> <Location /rocks>
>>         SetHandler perl-script
>>         PerlResponseHandler MyApache::Rocks
>> </Location>
>> 
>> But I still get this error when I try to access the file with
>> http://localhost/rocks
>> 
>> [Sat Jun 19 11:42:02 2004] [notice] Graceful restart requested, doing
restart
>> [Sat Jun 19 11:42:04 2004] [notice] Digest: generating secret for digest
>> authentication ...
>> [Sat Jun 19 11:42:04 2004] [notice] Digest: done
>> [Sat Jun 19 11:42:04 2004] [notice] Apache/2.0.49 (Unix) mod_perl/1.99_14
>> Perl/v5.8.4 mod_ssl/2.0.49 OpenSSL/0.9.7d DAV/2 configured -- resuming
>> normal operations
>> [Sat Jun 19 11:42:38 2004] [error] failed to resolve handler
`MyApache::Rocks'
>> [Sat Jun 19 11:42:38 2004] [error] [client 127.0.0.1] Can't locate
>> MyApache/Rocks.pm in @INC (@INC contains:
>> /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi/Apache2
>> /home/darnold/httpd/httpd-2.0/perl
>> /usr/lib/perl5/5.8.4/i686-linux-thread-multi /usr/lib/perl5/5.8.4
>> /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.6.1
>> /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .
>> /usr/local/apache2/ /usr/local/apache2/lib/perl) at (eval 7) line 3.\n
>> 
>> 
>> It seems like I am following all of the directions. Any suggestions? 
>
>Is the path /home/darnold/httpd/httpd-2.0/perl readable by the user/group
you 
>run the Apache under? (hint: grep httpd.conf for User and Group). e.g. move 
>that file into /tmp and everything should work just fine.

My settings in httpd.conf are:

User apache
Group apache

And I have set up a user named apache with group apache. What would I do to
make the path /home/darnold/httpd/httpd-2.0/perl readable by my apache
user? 

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to