1

I'm using PHP5.3 as module for Apache2.2(Windows). For one virtual host i need use PHP4 as CGI for .php files. This is my config

<VirtualHost *:80>
DocumentRoot "E:\projects\php\wp\dev"
ServerName wp.dev4

AddHandler php4-script .php
Action php4-script "E:\server\bin\php-4.4.9\php.exe"
<Directory "E:\projects\php\wp\dev">
  Options ExecCGI
  AllowOverride All
  Order deny,allow
  Allow from all
</Directory>

But I get error

The requested URL /server/bin/php-4.4.9/php.exe/test.php was not found on this server.

What's the problem?

2
  • How does test.php related to what you're doing?
    – Chris Ting
    May 30, 2011 at 5:15
  • Im just runing wp.dev4/test.php.
    – Kein
    May 30, 2011 at 7:06

1 Answer 1

0

It looks like you're missing a Directory block to give permissions to access the directory your PHP CGI is in: E:\server\bin\php-4.4.9

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .