Re: [EMAIL PROTECTED] Apache + Perl and PHP

2006-11-07 Thread Spartanicus
Stefano Sasso [EMAIL PROTECTED] wrote:

you have to add
AddHandler cgi-script .pl
to your apache config file.

Thanks, that did the trick.

-- 
Spartanicus

(email whitelist in use, non list-server mail will not be seen)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Perl via CGI vs mod_perl

2006-11-06 Thread Spartanicus
Ref: local dev setup of Apache 2.0x and ActivePerl 5.x on W98SE.

I have Perl working via CGI, I wanted to use mod_perl to avoid the
alleged lag associated with CGI (I'm not sure that it matters on a dev
only machine, but anyway).

I followed the installation procedure for Windows, I used Randy Kobes'
script. I have mod_perl.so in c:\Apache2\modules, and mod_perl2.pm in
c:\Perl\site\lib.

In my httpd.conf I have:
LoadFile C:/Perl/bin/perl58.dll
LoadModule perl_module modules/mod_perl.so

No errors on startup.

How can I test that Perl is now operating via mod_perl?

I thought that I should no longer load mod_cgi.so when trying to use
mod_perl, but when I comment it out I get the source code instead of the
script being executed.

-- 
Spartanicus

(email whitelist in use, non list-server mail will not be seen)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Apache + Perl and PHP

2006-11-06 Thread Spartanicus
For a localhost dev server I tried to get both PHP and Perl to work on
Apache 2.0x so that I can try out different forum software packages
without having to restart Apache, I can only get one to work at a time.

I'm using the Apache PHP module, Perl uses CGI.

This is the relevant bit of my config:
(the domain pan-europe.eu is mapped to localhost using my host file)

ScriptInterpreterSource registry
LoadModule php4_module c:/php/php4apache2.dll
PHPIniDir C:/php
AddType application/x-httpd-php .php
AccessFileName .htaccess
DocumentRoot c:/Documents/web_sites
Directory c:/Documents/web_sites
Options None
AllowOverride All
Order allow,deny
Allow from all
/Directory
NameVirtualHost 127.0.0.1
VirtualHost 127.0.0.1
ServerName pan-europe.eu
DocumentRoot c:/documents/web_sites/pan-europe
/VirtualHost

A path to a Perl forum is: c:/Documents/web_sites/pan-europe/forum/eblah
A path to a PHP forum is: c:/Documents/web_sites/pan-europe/forum/punbb

My .htaccess in c:/documents/web_sites/pan-europe/eblah contains:

Options ExecCGI

With this config only .php files execute, .pl files are shown as source.

To get Perl to work I have to use a ScriptAlias directive in my
VirtualHost container, this in turn thwarts PHP.

Where am I going wrong?

-- 
Spartanicus

(email whitelist in use, non list-server mail will not be seen)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Allowing negotiated content to be cached

2006-10-31 Thread Spartanicus
I'm experimenting with multiviews to get more user friendly URLs, and so
that I can change foobar.htm to foobar.cgi without causing problems
or requiring a fix.

Consequently normally the document returned should be the same so I
added CacheNegotiatedDocs On for HTTP/1.0 requests.

What is the best way to allow these types of negotiated documents to
be cached as if they weren't negotiated for HTTP/1.1 requests?

-- 
Spartanicus

(email whitelist in use, non list-server mail will not be seen)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Options Indexes in specified directories only

2006-10-24 Thread Spartanicus
The web document dir structure on my local dev machine is something like
this:

Document root
|- site one
|- site two
|- site three
|- test

I want Options Indexes for the Document root and test folder, not
for the other folders and without having to specify a config to disable
Indexes in site one, site two, etc. so that I don't have to worry
about Indexes being enabled by default if I add a site four.

What is the best way to do this?

I thought about using a regex to target subdirs of my document root to
specify Options -Indexes, but since Directory containers using a regex
are evaluated last afaics this doesn't allow me to enable Indexes for
test.

-- 
Spartanicus

(email whitelist in use, non list-server mail will not be seen)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]