Questions tagged [mod-perl]
57 questions
1
vote
1 answer
Are there ways to write php/python code to run as hooks in the Apache Request Processing pipeline?
Does anybody know of any modules that provide the functionality to write python or PHP code to run as hooks in the Apache request processing pipeline? For instance, mod_perl lets me write PerlModules, which can contain handlers for the header…

SB.
- 156
- 4
1
vote
1 answer
Mixing scrips and static content with location tags in apache
I am trying to configure Apache to send most URI's to my mod_perl application with the exception of a few files, which I want to serve using the default handler. (send a static file)
I want all http://myserver.com/xxxxx to go to the mod_perl with /,…

Chris Huang-Leaver
- 315
- 1
- 3
- 10
1
vote
1 answer
apache error "no macro defined before Use"
REVISED
I inherited this apache server from a Perl shop that I now work. When this web server was on ubuntu 14.04, I had no issues starting apache. I upgraded the server to ubuntu 18.04 and now apache does not start, here is the error
apache2:…

BioRod
- 303
- 4
- 13
0
votes
1 answer
Perl can't find Multicast.pm
[root@newserver Socket]# /root/scripts/filetest testfile.txt
Can't locate loadable object for module IO::Socket::Multicast in @INC (@INC
contains: /usr/local/lib64/perl5/IO/Socket /usr/local/lib64/perl5…

rahrahruby
- 587
- 6
- 12
- 21
0
votes
1 answer
Changing apache config with mod_perl, doesnt work!
This script supposedly should take * out of *.domain.com, assign it to $subdomain variable, and $subdomain should be put to AssignUserId.
However, no matter how hard I try, I can't get this to work. I've been working on this for days, and am really…

Devrim
- 1,187
- 4
- 16
- 29
0
votes
1 answer
Using URL within Vhost container with mod_perl dynamically
We want to retrieve URL and use it inside our vhosts, realtime.
To demonstrate my case, I placed random numbers on ServerAdmin directive,
$ServerAdmin = int(rand(100))."loko\@koko.com";
As you may know, this random number is assigned only when you…

Devrim
- 1,187
- 4
- 16
- 29
0
votes
1 answer
automatic dedicated access_log for each client using ip in naming
We have an internal app and I want to have the apache httpd server create new log files based on each of the client ips. In the documentation I see you can have multiple logs.
http://httpd.apache.org/docs/2.2/logs.html
LogFormat "%h %l %u %t \"%r\"…

jbrahy
- 168
- 10
0
votes
2 answers
Cpanel: putting a custom directory in /etc/httpd
I need some custom filters for Apache, so I wrote a mod_perl module MyFilter and put this in /etc/httpd. However, 24 hours later, cpanel seems to remove all 'unkown' directories from /etc/httpd. How do I prevent this from happening?
Thanks!

CharlesS
- 229
- 1
- 7
0
votes
1 answer
Perl Section in Apache config don't work
I have installed mod_perl on my server via yum to make use of Perl sections in the Apache config. I'm running Apache 2.2 on CentOS 6. I installed the necessary Perl modules (DB2 driver mainly) via cpan.
This is the script:
#!/usr/bin/perl
#
#…

Martin Müller
- 139
- 1
- 8
0
votes
1 answer
Installing mod_perl 2 on Apache2 fails
I'm trying to install mod_perl 2.0.8 on a fresh installation of Apache 2.2.27 / RHEL 7.
Apache was built from source and installed to /usr/local/apache2. I then installed mod_perl with MP_APXS=/usr/local/apache2/bin/apxs. I edited my httpd.conf to…

BIfrost
- 11
- 2
- 2
- 7
0
votes
1 answer
Shared Bugzilla with SSL and mod_perl has login cookie issues
I've managed to set up a shared mod_perl Bugzilla environment using the PROJECT variable, and it works perfectly.
Now I'm trying to do the same thing on a different server, with the same basic setup, except that the hosts sharing Bugzilla are…

boot13
- 185
- 1
- 1
- 9
0
votes
1 answer
Apache: set aside specific number of servers for a single "high priority" script
I have a bunch of scripts, but some of them are higher priority than…

Disco
- 375
- 2
- 4
- 12
0
votes
1 answer
Mod_Perl AddType .pl execution on apache
I've recently been using PHP via mod_php, and I assumed that getting mod_perl running properly was going to require a similar setup:
AddType application/x-httpd-php .php
unfortunately this does nothing with mod_perl using:
AddType…

Hawken
- 295
- 1
- 2
- 12
0
votes
1 answer
Can't install Perl module Apache::SizeLimit on CentOS
On a CentOS machine I have installed mod_perl:
yum install mod_perl
...
Package mod_perl-2.0.4-10.el6.i686 already installed and latest version
Ok, now I want to install the Perl module Apache::SizeLimit, so I do (and get):
yum install…

Matthias
- 302
- 4
- 16
0
votes
2 answers
apache2, perl and directory access
I have a perl script that wants to get a list of file in a directory using either opendir/readdir OR glob. It works fine if that directory is below the one the perl script is in OR /tmp. For any other directory it says it's empty!
Am I missing…

Mark J Seger
- 161
- 1
- 6