I am switching to mod_perl. I have installed it on the server, and I have changed the httpd.conf file.
There was no perl startup file, so I created one with this in it:
use lib '/usr/local/etc/httpd/cgi-bin/links/admin';
use Links::mod_perl;
use lib '/usr/local/etc/httpd/cgi-bin/gforum/admin';
use GForum::mod_perl;
I included reference to it in the httpd.conf file, just after the line about mod_perl
PerlRequire /usr/local/etc/httpd/conf/startup.pl
I got this error, so I have commented out that line in the httpd.conf file:
Server Configuration Error
Syntax error on line 37 of /usr/local/etc/httpd/conf/httpd.conf: Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/5.6.1/i386-freebsd /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.00503/i386-freebsd /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl . /usr/local/etc/httpd/ /usr/local/etc/httpd/lib/perl) at /usr/local/etc/httpd/cgi-bin/links/admin/Links/mod_perl.pm line 21. BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/Links/mod_perl.pm line 21. Compilation failed in require at /usr/local/etc/httpd/conf/startup.pl line 4. BEGIN failed--compilation aborted at /usr/local/etc/httpd/conf/startup.pl line 4. Compilation failed in require at (eval 2) line 1.
Any ideas how I can get mod_perl working properly?
There was no perl startup file, so I created one with this in it:
use lib '/usr/local/etc/httpd/cgi-bin/links/admin';
use Links::mod_perl;
use lib '/usr/local/etc/httpd/cgi-bin/gforum/admin';
use GForum::mod_perl;
I included reference to it in the httpd.conf file, just after the line about mod_perl
PerlRequire /usr/local/etc/httpd/conf/startup.pl
I got this error, so I have commented out that line in the httpd.conf file:
Server Configuration Error
Syntax error on line 37 of /usr/local/etc/httpd/conf/httpd.conf: Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/5.6.1/i386-freebsd /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.00503/i386-freebsd /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl . /usr/local/etc/httpd/ /usr/local/etc/httpd/lib/perl) at /usr/local/etc/httpd/cgi-bin/links/admin/Links/mod_perl.pm line 21. BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/Links/mod_perl.pm line 21. Compilation failed in require at /usr/local/etc/httpd/conf/startup.pl line 4. BEGIN failed--compilation aborted at /usr/local/etc/httpd/conf/startup.pl line 4. Compilation failed in require at (eval 2) line 1.
Any ideas how I can get mod_perl working properly?