473,388 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

beginners Q: configuring apache - php on XP

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
2 2811
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeff | last post by:
Could someone walk me step by step on how to install and get JpGraph running on a Windows 2000+Apache+PHP+MySql server? -Thanks Jeff
0
by: Vikram | last post by:
Hello All, Unable to run php files on Linux . php-4.2.2 is preinstalled on RHL 9 .Whenever I run a .php file in the webbrowser(Mozilla) the HTML source code of the file is being displayed...
1
by: =?iso-8859-7?B?zd/q7/I=?= | last post by:
Hello iam trying to install php v5.2.1 with apache support so i can run .php scripts ddirectly on my browser instead of command line but when i try to http://localhost/phpinfo.phpi get na...
1
by: RoyScripts | last post by:
Hi All.. I really need help configuring PHP with GD support. I am running Fedora 6, Apache and PHP 5.1.6, i have downloaded the gd-2.0.35 file and unpacked it under the directory...
3
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory...
12
by: patelxxx | last post by:
My cgi script is not being seen by Apache. I have no idea what to do, 1) I have read the httpd file in my conf folder and still no luck. 2) I have placed my CGI place in C:/Program...
3
tolkienarda
by: tolkienarda | last post by:
hi all, i have been having problems with mamp and i have decided that it probably isn't worth the trouble. problem being that i was relying on that to run a small stupid php mysql program on a mac...
3
by: vishnumahendra | last post by:
Hi all, I am from Madurai,Tamil Nadu, India. I have started running Tux Web Server . I have tried few searches, but no answers. But I do not know how to run PHP on Tux Web Server. If you could...
2
by: asrinivas1234 | last post by:
need help for rails with apache web server configuration in development machine and production machine also.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.