By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,911 Members | 1,186 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,911 IT Pros & Developers. It's quick & easy.

beginners Q: configuring apache - php on XP

P: n/a
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

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
P.Hill <go******@xmission.com> wrote:
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" [snip] 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?
You forgot the most important bit, whats in the file that is generating
the error!
Can anyone help? Let's talk.


Learn to help yourself. You should have taken a look at the PHP
reference and should have spotten the (runtime) configuration section...
http://nl.php.net/manual/en/configuration.changes.php
<q>
When using PHP as an Apache module, you can also change the
configuration settings using directives in Apache configuration files
(e.g. httpd.conf) and .htaccess files (You will need "AllowOverride
Options" or "AllowOverride All" privileges)
</q>

Guess what, you are not running PHP as a module! So no htaccess stuff
for you :)

But maybe the windows registry section can be of some help to you.

--

Daniel Tryba

Jul 17 '05 #2

P: n/a
Daniel Tryba wrote:
[...]Invalid command 'php_value',[...]
You forgot the most important bit, whats in the file that is generating
the error!


Well, I thought it was pretty obvious from the error message that the offending
line was a 'php_value' declaration.
Learn to help yourself. You should have taken a look at the PHP
reference and should have spotten the (runtime) configuration section...
Thanks for the reference, I will definitely look into it more, yet the quote you
give only says it is possible to do such things using the "AllowOverride All".
Obviously I thought that was the case otherwise I wouldn't have been trying it,
nor would I have shown where I had thought I had done that in my ini file.
Guess what, you are not running PHP as a module! So no htaccess stuff
for you :)
Thanks for this. This is the most useful fact. Now I see the
beginners error. I did configure my PHP, but I did the wrong type of
configuration. Oops.
But maybe the windows registry section can be of some help to you.


I think the right information I need is:
http://us3.php.net/install.apache2
http://us3.php.net/manual/en/install...windows.manual
which comes down to getting the DLLs in place and defining a LoadModule
instead of an Action.

thanks for the comments,
-Paul

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.