Women in Technology

Hear us Roar



Article:
  Build Your Own Apache Server with mod_perl
Subject:   can't run scripts with Apache::Registry
Date:   2003-10-10 18:11:53
From:   dstone27
Ok, I've followed this tutorial and seem to have it all working. I can run the perl-status script. It brings up several links. I click on 'Loaded Modules' and then it brings up a list Apache::Connection, Apache::Constants and quite a few others. If I click on any of those it says: Please install Devel::Symdump which I loaded via -MCPAN -e install 'Devel::Symdump' and it still returns the same: Please install etc.


Then I try using Apache::Registry following another tutorial (http://www.osxfaq.com/man/3/Apache--Registry.wsc) by placing the following in my httpd.conf:

#----------------------------------------
Alias /perl/ /usr/local/apache/perl/


<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>


#--------------------------------------
and making the appropriate directory and loading a test "hello world" test script. I restart the server and hit http://localhost/perl/test1.pl (the name of the script) and it won't work. I get 'page can't be found' error from my browser. I've set permissions on the file to 755 and 777 for the /perl directory and restarted the server but no luck. I know there are security issues with my perm settings but will twek those later. I'd also like some info on how to change the user running apache, currently it is running as root which I've heard is also a security issue. Any guidance would be great as I'd love to start developing my site. Thanks

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • David Wheeler photo can't run scripts with Apache::Registry
    2003-10-24 16:17:26  David Wheeler | O'Reilly Author [View]

    Try loading Devel::Symdump in your httpc.conf:



    PerlModule Devel::Symdump


    Not sure what's up with your Apache::Registry script; it sounds right to me. But I can tell you that Apache is supposed to start up as root. But it then forks off its children and assigns them to the user "nobody", which should reduce security issues.



    HTH,



    David