The mod-perl tag has no wiki summary.
0
votes
1answer
18 views
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 ...
0
votes
0answers
35 views
glob in perl doesn't work on RHEL 6.2 webserver
here's a very simple script:
[root@poker cgi-bin]# cat globtest.pl
#!/usr/bin/perl -w
my $foo="/tmp/*";
my @glob=glob($foo);
my $size=scalar(@glob);
print "Content-type: text/html\n\n";
print ...
0
votes
1answer
158 views
mod_perl (2.0.x) on apache 2.2.x on Windows - abandoned?
mod_perl2 on Windows?
It's sometimes beneficial (at least for me) to have a
recent Apache http server plus mod_perl2 (and PHP)
running on the development (desktop) box to try out
some ideas.
This ...
0
votes
0answers
57 views
DBD::Pg fails to initialize after yum updated libnss3
After yum updated openldap and libnss, a Perl webapp that used DBD::Pg stopped working, with the following error in the logs:
Fri Nov 04 00:57:04 2011] [error] install_driver(Pg) failed:
Can't load ...
0
votes
0answers
18 views
mod_perl disable html wrapper
Is it possible to disable html wrapper of mod_perl? Just so it outputs the output, without the DOCTYPE and html tags and whatnot. I get this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
0
votes
2answers
115 views
Apache2 won't start due to locate-error
I am running Apache/2.2.9 on SLES 10 and want to use Apache2::REST.
I installed it using cpan and added the Handler and the configuration stuff.
When I try to start Apache (apache2ctl start), it ...
0
votes
0answers
45 views
Make apache forward requests with mod_perl fallback when forward request 404's
I am looking for information on which modules to use, and what documentation I should seek out on this requirement.
Currently my team maintains a very old mod_perl application. We are looking to use ...
0
votes
0answers
66 views
apache 2.2 children W states because of hanging DBD::Oracle connection to Oracle 11g SE
we have apache 2.2 with mod_perl2 connecting to an oracle SE 11g db, the problem is that on apache restart we sometimes get a lot of W states on all the children and for a long time (from 1 minute to ...
2
votes
1answer
94 views
How do I configure httpd.conf so that scripts inside <perl></perl> only get run if there's a flag parameter in the querystring?
mod_perl provides a way to run perl scripts in httpd.conf:
<perl>
...scripts goes here...
</perl>
How do I configure httpd.conf so that scripts inside <perl></perl> only get ...
0
votes
0answers
70 views
How do I make mod_rewrite.c work with mod_perl.c?
Basically I want to do this:
RewriteCond %{QUERY_STRING} (^|&)t=
RewriteRule .* - [E=tag:name]
But the E only works with CGI ,I need to use something like this to work in mod_perl:
PerlSetEnv ...
0
votes
1answer
143 views
Apache 1.3 load increases until restart/graceful on CentOS/EC2. CPU usage climbs, and memcached access speed drops
When running a large mod_perl application on EC2, we've noticed that the CPU usage on the instance climbs gradually between restarts or graceful restarts.
Current setup: CentOS 5.4, m2.4xlarge ...
0
votes
0answers
117 views
Random white screen when loading any page on my website
I encounter a problem I'm not familiar with, and I would like your help to diagnose the problem.
The problem:
Sometimes when loading any page on my website, it will only load a white blank screen. If ...
1
vote
2answers
195 views
How to disable mod_perl on xampp for linux 1.7.4?
I could not find any perl config in /opt/lampp/etc/httpd.conf.
0
votes
1answer
139 views
How to timeout in mod_perl?
I'm looking for a server-wide setting for timeout with mod_perl scripts under Apache 2.2, similar to max_execution_time in php.
Timeout can be done with $SIG{ALRM} but it requires modification to ...
1
vote
2answers
83 views
Memory management in Apache+Perl
I have a web farm that uses Apache 2.2.15 and mod_perl-2.0.4. I need to know if there is a comparable perl module to Apache::GTopLimit for mod_perl-2.x.
I have searched Google and other sites, and ...
0
votes
1answer
154 views
OpenWebmail on Debian 5 (Perl 5.10)
I've upgraded server running OpenWebmail from Debian 4.0 to Debian 5.0. Perl was upgraded to 5.10 as well. I have issues with some functions of OpenWebmail (attachments are 0 bytes size, ...
1
vote
1answer
169 views
Apache mod_perl vs. mod_cgi: How do I decide which to use?
What factors should I consider when deciding whether to use Apache's mod_perl or mod_cgi, when configuring an existing web application?
0
votes
2answers
436 views
Install mod_perl2 on Apache 2.2.14 (Ubuntu10.04)
I have installed via synaptic package ibapache2-mod-perl2.
I tried this line in httpd.conf:
"LoadModule perl_module modules/mod_perl.so"
Apache tells me when I reload the server :
"[warn] module ...
1
vote
1answer
108 views
Which version of mod_perl should I install on IHS 7
We have a IHS box that requires me to install mod perl.
I'm trying to work out if I should install mod_perl 1 or 2.
apachectl -v returns:
Server version: IBM_HTTP_Server/7.0.0.11 (Unix)
Server ...
-1
votes
4answers
214 views
0
votes
1answer
448 views
Why does apache return a 404 response for a file that exists?
I have an apache server whose main purpose is to handle RPC requests. All such requests hit a url that begins with a fixed prefix (e.g., /rpc) I use a Location directive to set the handler for this ...
3
votes
4answers
333 views
What is the easiest way to get mod_perl and mod_dav_svn integrated into Apache on Solaris 10
I've written some software that uses Perl code running inside Apache (using mod_perl) to work with (amongst other things) subversion (using the mod_dav_svn module).
I'm currently writing some how-to ...
0
votes
1answer
1k views
getting mod_perl working on a plain ubuntu 10.04 server install,
I am attempting to enable mod_perl on a fresh install of Lucid Lynx (ubuntu 10.04).
I have the libapache2-mod-perl2 installed, but I can't seem to get the .pl file to run instead of being downloaded.
...
1
vote
1answer
318 views
mod perl in apache 2.2 not parsing perl scripts
I've set up a fresh Apache 2.2.15 server on windows server 2008 R2 with mod_perl (mod perl v2.0.4 / perl v5.10.1). Mod_perl and Perl 5.10 has been installed and loaded without problems. However, ...
0
votes
2answers
241 views
How can I install both mod-perl2 and mod-php5 on Ubuntu?
From Ubuntu's package libary, I find the two modules I need. However:
mod-perl2 requires apache2-mpm-worker
mod-php5 requires apache2-mpm-prefork
The two apache modules are mutually exclusive and ...
1
vote
1answer
60 views
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 ...
3
votes
1answer
146 views
Set top level directory to be handled by Perl?
I have an Apache server set up to use mod_perl. I have it set up to handle all requests using a Perl module MyModule. Here is part of my httpd.conf:
LoadModule perl_module modules/mod_perl.so
...
4
votes
1answer
362 views
Dynamic subdomains, mod_python and trac
I'm going to be running multiple subdomains, eventually too many to be able to each have their own config files. I have the vhosts working how I want them so each subdomain has their own folder eg ...
2
votes
3answers
621 views
apache2-worker + cgi-perl vs apache2-prefork + mod_perl - what’s faster? what takes less resources?
Hiya. I', using Gentoo linux. it seems that i cannot emerge/install mod_perl with a threaded apache2 so i would like to know what's the pros and cons of using the worker module of apache2 with ...
1
vote
1answer
96 views
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 ...
0
votes
1answer
266 views
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. ...
0
votes
1answer
448 views
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 ...
0
votes
2answers
59 views
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 ...
2
votes
4answers
140 views
Multiple Developers, One Apache (with mod_perl)
I have multiple developers on one server, each with their own copy of the same perl codebase checked out of SVN.
I want each developer to have their own subdomain pointing to their own copy of the ...
1
vote
2answers
90 views
Ideal Dev Environment
We have a linux based development server which we connect to from our windows based desktops (via ssh, scp, samba (mapped network drive), etc)
We're doing web development in perl, using apache2, ...
0
votes
3answers
359 views
finding out server-status from apache2 when at MaxClients
Im trying to debug why an app server of ours all of its apache children lockup and stop serving requests. These are mod_perl app servers.
The problem is that to find out what the current requests are ...
0
votes
3answers
163 views
Dynamically generating <Location /> constructs in Apache using mod_perl
I need to have my Apache web-server serve a lot of sites through <Location /> structures. The last thing I want is a massive file with every single <Location /> structure for every single ...