DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th June 2008
erehwon erehwon is offline
Port Guard
 
Join Date: May 2008
Location: Cascadia
Posts: 34
Thanked 0 Times in 0 Posts
Default Has anyone installed mod_perl

...and had it work successfully with the stock 1.3.29 Apache?

Like so?

Code:
Alias /perl/ /home/httpd/perl/
  PerlModule Apache::Registry
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options ExecCGI
    allow from all
    PerlSendHeader On
  </Location>
Reply With Quote
  #2   (View Single Post)  
Old 20th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,686
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by erehwon View Post
...and had it work successfully with the stock 1.3.29 Apache?
No, I've never used that particular application, but I'm replying because you might find FAQ 10.16 is applicable to your situation.
Reply With Quote
  #3   (View Single Post)  
Old 20th June 2008
erehwon erehwon is offline
Port Guard
 
Join Date: May 2008
Location: Cascadia
Posts: 34
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
No, I've never used that particular application, but I'm replying because you might find FAQ 10.16 is applicable to your situation.
Thanks; I have been able to get cgi-bin scripts to run (using mod_cgi of course) and have copied over Perl and required libraries so that I do not need to use httpd -u, but to no avail yet.
Reply With Quote
  #4   (View Single Post)  
Old 22nd June 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

Have you been able to run a simple perl script (blah.pl) from /var/www/cgi-bin ? I realize you say you have using mod_cgi, but I got this following script running with just the vanilla install of mod_perl... am I missing something from your description?

I did the following-

Code:
# pkg_add mod_perl-1.30p1
# apachectl stop
# /usr/local/sbin/mod_perl-enable
# apachectl start
# cd /var/www/cgi-bin/
# nano mp-rules.pl
Then... here's the contents of mp-rules.pl
Code:
#!/usr/bin/perl
print "Content-type: text/plain\r\n\r\n";
print "mod_perl rules!\n";
Then... back at the command prompt...

Code:
# chmod 777 mp-rules.pl
... And finally loaded http://myserverip.domain/cgi-bin/mp-rules.pl in my browser and it worked.

Are you not getting the same love?
__________________
Network Firefighter

Last edited by ai-danno; 22nd June 2008 at 06:45 PM.
Reply With Quote
  #5   (View Single Post)  
Old 23rd June 2008
erehwon erehwon is offline
Port Guard
 
Join Date: May 2008
Location: Cascadia
Posts: 34
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ai-danno View Post
Have you been able to run a simple perl script (blah.pl) from /var/www/cgi-bin ?
Haven't tried that; I created my own modperl directory, assuming that anything in the cgi-bin would automatically be processed by mod_cgi with no choice. When I use my own modperl directory, it displays as plain text, despite making the .pl file executable, etc.

Did you also add .pl to the 'AddHandler cgi-script' section in your httpd.conf? Curious how this could work. I've tried 'AddHandler perl-script .pl' in addition to the directory 'SetHandler perl-script', but nothing.
Reply With Quote
  #6   (View Single Post)  
Old 23rd June 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

I didn't add that personally... perhaps the pkg_add installation script did...

since doing that I installed Mason, which promptly broke the script that was executing above... lol. I can take a look when I get home (server at home) to see if that was, in fact, added to httpd.conf.
__________________
Network Firefighter
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre-installed Groups: What are they for? Greg_Morgan OpenBSD General 5 11th October 2009 01:05 AM
Listing of installed packages cyril OpenBSD Packages and Ports 2 9th June 2009 01:24 AM
How to copy FBSD installation from one which is already installed on a HDD? padmanabh FreeBSD Installation and Upgrading 2 7th October 2008 04:09 AM
Installed 4.3 & No GUI warriors OpenBSD General 24 14th August 2008 11:28 AM
mod_perl and others daemon-dd FreeBSD General 0 25th June 2008 10:34 AM


All times are GMT. The time now is 04:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick