Dirtbag's Blog

Using the perl MCPAN shell with wget behind a proxy

[ link: ftp_proxy | tags: firewall perl ftp linux | updated: Fri, 17 Apr 2020 12:12:08 -0400 ]

I like using the perl CPAN shell for installing perl modules on redhat boxes. I ran into an instance where I had to install some perl modules on a server that was in a lab and had no direct internet access. Read on to find out how I got around this by setting up a ftp proxy.

[Read More]

appropriate Inline DIRECTORY

[ link: inline_directory | tags: perl linux apache | updated: Fri, 17 Apr 2020 12:12:08 -0400 ]

I was installing this vimblog software and ran into an issue where I was getting the following error in my apache httpd error logs.
[error] [client X.X.X.X] Couldn't find an appropriate DIRECTORY for Inline to use.

I was able to fix this by inserting the following into the "blog.pl" before the use statements.


BEGIN {
        $ENV{'PERL\_INLINE\_DIRECTORY'} = '/var/www/localhost/htdocs/blog/.data';
      }

This tells perl_inline where to write its compiled data. This directory must be owned by the user your webserver is running as.

-db

Like this article? Buy me a beer!