httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spartanicus <spartanicu...@ntlworld.ie>
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 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message