Posted on April 28th, 2008 by linux
Here is a perl script example how to create temporary directory on the file system:
#!/usr/bin/perl
use File::Temp qw/ tempdir /;
my $perl_temporary_directory = tempdir();
Filed under: Linux, Perl, Programming | No Comments »
Posted on February 4th, 2008 by linux
Apache complains on the restart:
/etc/init.d/apache2 restart
Forcing reload of web server (apache2)…Syntax error on line 48 of /etc/apache2/sites-enabled/000-default:
Invalid command ‘PerlHandler’, perhaps misspelled or defined by a module not included in the server configuration
failed!
Have a look what perlhandler it is in apache config file. In this case apache was missing : ModPerl::Registry .
Solution to this is to [...]
Filed under: Administration, Debian, Linux, Perl | No Comments »
Posted on February 4th, 2008 by linux
Debian Apache will not start and it complains in log file:
[error] Can’t load Perl module Apache::DBI for server exiting…
This is because it can not find perl module which apache will use to connect DBI database. Solution for this is to install package:
libapache-dbi-perl – Connect apache server to database via perl’s DBI
apt-get install libapache-dbi-perl
Filed under: Administration, Debian, Linux, Perl | No Comments »