httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spartanicus <>
Subject [users@httpd] Apache + Perl and PHP
Date Mon, 06 Nov 2006 20:47:26 GMT
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 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
    DocumentRoot c:/documents/web_sites/pan-europe

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?


(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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message