15
votes
8answers
6k views

What Perl RESTful framework do you recommend? [closed]

Hi I'm looking for a Perl RESTful framework that have to : work under apache2/mod_perl2 be simple be elegant be light be flexible Am I just dreaming or can I avoid the 'Roll our own' approach? ...
9
votes
5answers
2k views

How do I ignore the Perl shebang on Windows with Apache 2?

I have set up a local Perl web environment on my Windows machine. The application I'm working on is originally from a Linux server, and so the shebang for source .pl files look like so: ...
7
votes
1answer
177 views

I cannot get Apache::VMonitor working in Apache2

I am moving from Apache 1.3 to Apache 2.063 and am having trouble getting Apache::VMonitor working. I tried a setup like this, similar to how I had it setup in my old Apache: <Perl> use ...
6
votes
2answers
817 views

Example for several (fastcgi/uwsgi/scgi/proxy_pass) Mojolicious apps in the same nginx virtual host?

I have some Mojolicious-based apps which happily run under Apache2 with mod_cgi and mod_fastcgi. The urls are for example: http://example.org/oneapp/path/info?foo=bar ...
4
votes
4answers
2k views

How can I serve unbuffered CGI content from Apache 2?

I would like to be able to allow a user to view the output of a long-running GCI script as it is generated rather than after the script is complete. However even when I explicitly flush STDOUT the ...
4
votes
2answers
595 views

Modify POST request in mod_perl2

Does anyone know how to access/modify the POST request data using mod_perl2. IN GET method one can get/set the request QUERY string: $args = $r->args(); $prev_args = ...
4
votes
1answer
391 views

How do you handle multiple files in a form submission using Apache2::Upload?

I'm writing a small web application using Perl, HTML::Mason and Apache. I've been using Mason's usual <%args> method for receiving 'normal' form parameters, and Apache2::Upload for receiving ...
4
votes
2answers
601 views

Restarting apache as www-data using perl

I'm working on a webpage, which after certain events, needs to restart the apache server that it's running on to update some files. I tried adding www-data to the sudoers file: www-data ALL=(ALL) ...
3
votes
3answers
7k views

Execute a .cgi file in Ubuntu

I am running Apache/PHP under Ubuntu When I run the .cgi file, by going at http://localhost/mycgi.cgi, the browser will display the code instead of running it. How do I make the browser execute ...
3
votes
3answers
366 views

Why does my Perl CGI program return a server error?

I recently got into learning cgi and I set up an Ubuntu server in vbox. The first program I wrote was in Python using vim through ssh. Then I installed Eclipse on my Windows 7 station and created the ...
3
votes
3answers
733 views

Intra-process coordination in mod_perl under the worker MPM

I need to do some simple timezone calculation in mod_perl. DateTime isn't an option. What I need to do is easily accomplished by setting $ENV{TZ} and using localtime and POSIX::mktime, but under a ...
3
votes
1answer
179 views

What is the right way to serve dynamically generated images using Apache and mod_perl?

I have an Apache2/mod_perl2 system up and running. I'm using GD to create an image on the fly, and I'm then printing it like this: $r->content_type('image/png'); binmode STDOUT; print ...
3
votes
1answer
146 views

What is the guaranteed uniqueness in the identifiers generated by the APR::UUID module

The documentation of Data::UUID states that A UUID is 128 bits long, and is guaranteed to be different from all other UUIDs/GUIDs generated until 3400 CE. The documentation for APR::UUID ...
3
votes
1answer
909 views

How do you debug a mod_perl2 module without restarting?

Environment: Apache/2.2.11 (Win32) mod_apreq2-20051231/2.6.2-dev mod_perl/2.0.4-dev Perl/v5.10.0 Situation very similar to what's described in this discussion list post, except for being on win32. I ...
3
votes
2answers
139 views

Why are my shared variables getting cleared out between PerlChildInitHandler and PerlResponseHandler in mod_perl?

I am trying to load a configuration file into a hash during my PerlChildInitHandler and then access the values from PerlResponseHandler. However, even though the process number is the same, it seems ...
2
votes
2answers
514 views

Apache2 mod_perl Last-Modified header ignored

I have a perl generated page. The contents of this page change every 30 minutes, so I'm setting $r->set_last_modified() to the time the contents last changed. That all works well and I can see the ...
2
votes
1answer
135 views

What do these numbers before and after mason responses mean?

I am using mod_perl 2, mason, and apache 2.2 on Ubuntu 10.10 (x86) (standard packages from apt). When I send a HTTP request to my server, I get the following: $ nc localhost 80 < ...
2
votes
2answers
3k views

Installing mod_perl-2.0.7 on Apache httpd-2.4.2

I am having an infuriating time trying to get an install of apache with perl. I am following the instructions on the mod_perl site located here: ...
2
votes
2answers
2k views

How can I run a long background process from a Perl CGI program?

I have a problem with a long running CGI and the timeout error: Timeout waiting for output from CGI script The client side is a form programmed in jQuery. The user input some data and receives ...
2
votes
1answer
114 views

Why is my catalyst application running Apache+FastCGI not serving dynamic content?

I am trying to run my first Perl Catalyst application using Apache and fastcgi. Starting the server is fine, I can see the application's main page. All images/javascripts are loaded correctly (so, I ...
2
votes
1answer
291 views

How do I use mod_perl2 and Apache Bucket Brigades?

I'm writing an application to do proxying and rewriting of webpages on the fly and am pretty settled on using mod_perl2 - there is an existing implementation using mod_perl (v1) that I'm working from. ...
2
votes
1answer
53 views

How to run a background process with mod perl

I am using perl to return data sets in XML. Now I have come across a situation where I need to run some clean up after sending a dataset to the client. But some where, in the chain of mod perl and ...
2
votes
1answer
402 views

Apache mod_perl processes hang in futex_wait state

I run a fairly popular browser-based web game, running under Apache (worker) and mod_perl. During peak times, when the server is handling about 4200 requests per minute, once every 3-15 minutes or so ...
2
votes
1answer
53 views

How can one see all warnings under mod_perl

How can I make sure that I see all of Perl's warning and error messages when running a script under mod_perl? (Apache/2.2.16 (Debian) [...] mod_perl/2.0.4 Perl/v5.10.1) I feel like I have done ...
2
votes
1answer
616 views

Error installing Perl CGI module from cpan

I get the following results when doing cpan install CGI on Ubuntu 10.4. Test Summary Report ------------------- t/tmpdir.t (Wstat: 0 Tests: 9 Failed: 0) TODO passed: 3, 6, 8 t/url.t ...
1
vote
2answers
299 views

Perl piped log script only running every 2 hits

I am using this script for a piped log setup in Apache 2: #!/usr/local/bin/perl $|=1; # Use unbuffered output while (<STDIN>) { if (<STDIN> =~ ...
1
vote
3answers
287 views

google maps api keys to be set webserver-wide, (as env var? inside apache?)

I have a web site with many virtual hosts and each registered with several domain names (ending in .org, .de), site1.mysite.de, site2.mysite.org Then I have different templating systems based on ...
1
vote
2answers
78 views

How can I determine PerlLogHandler performance impact?

I want to create a custom Apache2 log handler, and the template that is found on the apache site is: #file:MyApache2/LogPerUser.pm #--------------------------- package MyApache2::LogPerUser; use ...
1
vote
2answers
411 views

Perl-Starman (PSGI) + PHP = Apache2 proxy setup? - How to do?

How to run together: PSGI and PHP? I have Perl/PSGI application (running under pure perl Starman server). Now, for some reason need run one PHP application too ;(, so (probably) need Apache2. ...
1
vote
1answer
319 views

Apache won't execute CGIs with Macports Perl5.8.9

I'm trying to get perl running under on my Apache 2 macports install. I'm hoping an experienced perl geek can help me out. I've... Got Apache running just dandy. Macports installed it with perl5 ...
1
vote
1answer
515 views

Loading iframe from bookmarklet on 3rd party sites kills CakePHP Session

I am trying to pop up an iframe from a bookmark whose contents are from my test app. The test app doesn't do much but let me log in and set some session vars. First I developed this using Perl's ...
1
vote
1answer
157 views

How do I configure PerlSections in mod_perl2?

I'm trying to use a [PerlSection][1] to get the server name and then use it to configure some RewriteCond-RewriteRule pairs and some other things. It seems I can't get very far. It says you can do ...
1
vote
2answers
211 views

Why Apache PerlModule directive doesn't set custom environment variables?

I am building a mod_perl website, and I need to set an environment variable that will be used in the Perl code. Until now I was using the PerlSetEnv directive to set this variable: PerlSetEnv ...
1
vote
2answers
830 views

How do you enable Perl on Ubuntu with Apache2 [closed]

I have installed ubunutu witha apache on my pc and everything works great except: I don't know how to enable perl, everything I have tried either gave me a server error or gave me a 403 for the perl ...
1
vote
1answer
674 views

PSGI application with Apache2 using Plack::Handler::Apache2 results in 'not found'

first time poster, long time lurker here. Im using a tiny PSGI application in plackup, but id like to switch to Apache2 for subdomains. I run the application with 'plackup ...
1
vote
2answers
821 views

How do I suppress the default apache error document in mod_perl?

I'm developing a RESTful API and I wrote a mod_perl2 handler that takes care of the request. My handler deals with error codes by setting $r->status($http_code) and return $http_code; Everything ...
1
vote
1answer
51 views

SOLVED Apache2 Returns 404 on Perl Script

[SOLVED] After managing to get the server to throw 500's I then had to relocate the line; to a different location within the .pl script. ;-) I have located this article VIA SO: Why does my Perl CGI ...
1
vote
1answer
118 views

How do I get my Poet web site running under Apache2?

If I currently have a Poet web site running under the standalone plackup server (via run.pl), how do I configure Apache2 to host this Poet web site? Searches for "+apache2 +poet" retrieve plenty of ...
1
vote
1answer
132 views

Spawn external process from a CGI script

I've searched and found several very similar questions to mine but nothing in those answers have worked for me yet. I have a perl CGI script that accepts a file upload. It looks at the file and ...
1
vote
0answers
262 views

perl Apache2::Request errors using param() and upload() methods simultaneously

I'm coding in a mod_perl environment and using the Apache2::Request module to get posted data. This works fine, except for when I also use the Apache2::Request object also to upload a file/get the ...
1
vote
2answers
200 views

How do I tell mod_perl2 to find my Perl modules?

I just installed my system with Oracle 64-bit Linux5.4 running Apache Server version: Apache/2.2.3 and mod_perl 2. Now, I have my Perl libraries set in a specific path: /my/perl/libs and I have ...
1
vote
2answers
291 views

How can I access the Apache server configuration in a BEGIN block in mod_perl?

I've been trying to switch from using PerlSetEnv to using custom configuration directives. I have my configuration module with a copy of set_val from the docs: sub set_val { local our ($key, ...
0
votes
2answers
2k views

Can't locate Connection.pm in @INC (@INC contains: /usr/local/lib/perl/5.14.2 /etc/perl /usr/local/share/perl/5.14.2 …) at ./select.cgi at line

I am trying my hands for the first time in -> Apache - Perl (CGI) on Ubuntu. The Apache server is working fine in the folder /var/www for the default index.html file. But since I want to run a CGI ...
0
votes
1answer
72 views

Is Apache::Request (old perl/apache) the same as HTTP::Request (new perl/Apache)?

Hello Perl warriors. I'm totally new to the language and have been placed on a interesting project of porting an application that was originally written for Apache 1.3 (and the older Perl), to RHEL ...
0
votes
1answer
550 views

How do I specify the Perl include path for a Catalyst fastcgi process?

i have installed all my dependencies for Catalyst in ~/perl5/lib/perl5 using local::lib I want to run my app under Apache2 using mod_fcgid, but the fastcgi perl script cannot find the modules in my ...
0
votes
3answers
270 views

Strange Apache2::Cookie error under Strawberry Perl and mod_perl2

I have a set of scripts that run under ActivePerl 5.10. However, under Strawberry Perl 5.10, I get a strange error message: Can't locate object method "cookie_class" via package "MyCookie" (perhaps ...
0
votes
1answer
144 views

method not found Apache2::RequesUtil->request

i have a small problem whith SOAP::Lite, When i try to run the following code, i have this error (Can’t locate object method “request” via package “Apache2::RequesUtil” at b.pl line 3) : ...
0
votes
1answer
185 views

Errors running Perl CGI scripts under PerlRun

I am trying to run a Perl CGI web application under mod_perl 2.0 using PerlRun. After making a few simply changes to the scripts everything seems to work. However, the Apache error_log is getting ...
0
votes
1answer
128 views

Error while loading mod_perl.so

I have installed perl-5.8.9, mod_perl-2.0.7, Embperl-2.3.0 and httpd-2.2.22. And while starting apache, I get the error like the following (broken into multiple lines for readability): httpd: Syntax ...
0
votes
1answer
34 views

Gitweb Apache Output Different Than Terminal

Apache is configured like so: Alias /git /var/www/gitweb Alias /gitweb /var/www/gitweb <Directory "/var/www/gitweb"> AllowOverride None Options +ExecCGI +Indexes Order allow,deny Allow ...

1 2
15 30 50 per page