beginners Q: configuring apache - php on XP

From: P.Hill (goodhill_at_xmission.com)
Date: 04/30/04


Date: Thu, 29 Apr 2004 16:04:37 -0600

I was just trying to install Apache and php on an XP box for test of a PHP
website I built last year. It was my first and only, so I am now rusty about
the little I did learn last year.

I get the following error in my log after I think I have I configured apache and php

"[Thu Apr 29 15:31:19 2004] [alert] [client 127.0.0.1]
C:/Websites/matrixcsbsju/html.test/matrix.htaccess: Invalid command 'php_value',
perhaps mis-spelled or defined by a module not included in the server configuration"

I am running:
PHP 4.1.2
Apache 2.0.47

The apache
conf/httpd.conf contains the follow extra bits:

# My local copy of bunch of files that make up the site.
DocumentRoot "C:/Websites/matrixcsbsju/html.test"
[...]

# left over from a previous configuration of this site, but we are still
# using this name, so I'll keep it for now.
AccessFileName matrix.htaccess

[...]
# A directory element for my little website
<Directory "C:/Websites/matrixcsbsju/html.test">
[...]
     AllowOverride All
[...]
#
DirectoryIndex index.html index.html.var index.php index.htm
[...]
# And directing all php to the php module
ScriptAlias /php/ "C:/dev/tools/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
Action application/x-httpd-php "/php/php.exe"

Is there anything else? It seems to be saying it doesn't know about
php in the error message?
Can anyone help? Let's talk.

TIA,
-Paul



Relevant Pages

  • Re: philosophical question
    ... > I have a RH 7.0 website that I am trying to upgrade to use latest PHP ... In order to use another program on my website. ... Did you installed the Apache from source or from RPM? ...
    (RedHat)
  • Help with php5 install under windows
    ... This includes moving php from the ... Enable the PHP scripting language engine under Apache. ... or per-virtualhost web server configuration file. ... The PHP directives register_globals, ...
    (php.general)
  • Re: Apache, php?
    ... on the command line doing `php index.php` works. ... The only difference is that I'm using 1.3 and not 2.x of Apache. ... DirectoryIndex index.php index.php3 index.html ... AddType application/x-httpd-php .php ...
    (freebsd-questions)
  • RE: Virtual hosts and PHP "downloads": php5 and apache22 on FreeBSD6.1-STABLE
    ... Apache web server. ... Subject: Virtual hosts and PHP "downloads": php5 and apache22 on ...
    (freebsd-questions)
  • Re: PHP portability
    ... > Apache 2 running on windows XP. ... > If I write a big website on my computer that has XP and I use PHP, ... is a native system, not on windows. ...
    (comp.lang.php)