Here is how to install Perl in Fedora Linux, including the latest version of mod_perl with Apache (HTTPD) to run dynamic web pages/handlers in Perl.
-> How to install Perl in Fedora Linux
seen from United States
seen from Belarus
seen from Iraq
seen from Italy
seen from United States
seen from Yemen
seen from Russia

seen from Malaysia

seen from United States
seen from United States
seen from China
seen from Spain
seen from United Kingdom

seen from Lithuania

seen from United States
seen from United States
seen from France

seen from United States
seen from Germany
seen from Azerbaijan
Here is how to install Perl in Fedora Linux, including the latest version of mod_perl with Apache (HTTPD) to run dynamic web pages/handlers in Perl.
-> How to install Perl in Fedora Linux
Multiple mod_perl apps under a single code base
… specifically I’m trying to run multiple copies of a Catalyst application under the same Apache server with different config files.
Does anyone have any strategies for running the same set of perl modules against an arbitrary external file?
ITmedia エンタープライズ:LAMP vs. LAMP──mod_perlとmod_phpのパフォーマンス比較
Net::SSH::Perl running under mod_perl2
Earlier I posted a problem noting that i couldn't getNet::SSH::Perl to work in mod_perl2. It turns out that it is possible. Basically there is a problem with STDIN and STDOUT in mod_perl when using sub-processes that expect these to be normal. (explained better than I can here: http://perl.apache.org/docs/2.0/api/Apache2/SubProcess.html)
The solution is to redirect STDIN and STDOUT to /dev/null for the command. Adapting the code on the above page (because it uses features unavailable in mod_perl2 and unnecessary in current version of perl) simply replace:
my ($out, $err, $exit) = $ssh->cmd($cmd);
with
my ($out, $err, $exit); warn "executing: $cmd"; { my $nullfh; open $nullfh, '>/dev/null' or die "Can't open /dev/null: $!"; local *STDOUT = $nullfh; ($out, $err, $exit) = $ssh->cmd($cmd); close $nullfh; }
Net::SSH::Perl running as a user without a home directory
So I have been doing a bit of coding using Net:SSH::Perl and have come up against a problem. When connecting to a new host, I get this error:
[error] mkdir /nonexistent: Permission denied at /usr/local/lib/perl5/site_perl/5.12.4/Net/SSH/Perl/Util/Hosts.pm line 92\n
Now the application is running as the www user (FreeBSD 8.1) and /nonexistent is set to be the home directory for that user. Looking at that line it is trying to create a known_hosts file in there, which is failing as it is an invalid directory and the www user does not have permissions to create it.
I didn't want to change the home directory of this user, So eventually found the solution was to add this command:
$ssh->config->set('user_known_hosts', "$base/known_hosts");
(where $base is a variable containing the path to a writeable directory)
Of course now I discover that Net::SSH::Perl doesn't seem to work with mod_perl anyway, so have to rewrite everything anyway.
Any sufficiently advanced science is indistiguishable from friendship.